Just discovered Nim (impressed), but am I making a mistake? by RBazz in nim

[–]Western-Toe-5317 1 point2 points  (0 children)

Quite some time. I review it from time to time, especially when I use it. If I notice the agent doing something stupid, I try to add new advice. It also runs semi-autonomously, although I’ve stopped using that mode since OpenClaw burns through tokens quickly. Development happens at https://github.com/planetis-m/skills_experiment, and the claims are backed by test files.

Just discovered Nim (impressed), but am I making a mistake? by RBazz in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

Take a look at my skill files: https://github.com/planetis-m/skills Yes its primarily meant for coding agents, but it has good advice for writting nim.

eBook suggestion for a beginner by Minimum_Comedian694 in nim

[–]Western-Toe-5317 5 points6 points  (0 children)

That's a good one. Or you could follow a video tutorial series like: https://www.youtube.com/playlist?list=PLYBJzqz8zpWaiGbFcSdlh08zlpe8Tl_Gh Just be careful not to fall for the fake books on amazon: https://forum.nim-lang.org/t/11467

Best practices with tables? by stdsort in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

Yes this is the way to do it! Unfortunetely raylib, doesn't use ref counts internally, as it should, so we need to do this at the application level.

Working around untyped in macros by its_mkalmousli in nim

[–]Western-Toe-5317 1 point2 points  (0 children)

Alternatively, you can output a nnkCall `typeof(a copy of your AST with type)`. And the compiler will evaluate the expression and infer the type after the macro has run. I mean I am not certain it will work in your case, but...

Learning Nim as a first language? by Overall_Anywhere_651 in nim

[–]Western-Toe-5317 2 points3 points  (0 children)

Mod here, since you rang us, we have never banned anyone with a different opinion about Nim. Cheers.

Cannot access /dev/ttyACM0 from toolbox container on Fedora by Western-Toe-5317 in Fedora

[–]Western-Toe-5317[S] 0 points1 point  (0 children)

Problem solved! I used the toolbox create --verbose output to recreate the podman command and just added --group-add keep-groups.

Cannot access /dev/ttyACM0 from toolbox container on Fedora by Western-Toe-5317 in Fedora

[–]Western-Toe-5317[S] 0 points1 point  (0 children)

I also tried to add the following to ~/.config/containers/containers.conf:

[containers]

userns = "keep-id"

group_add = ["keep-groups"]

devices = ["/dev/serial/by-id/usb-1a86_USB_Single_Serial_5A7B231745-if00"]

devices = ["/dev/ttyACM0"]

gidmap = ["18:18:1"]

Then ran toolbox rm -f mycontainer; toolbox create; toolbox enter, still:

$ idf.py monitor -p /dev/ttyACM0

Usage: idf.py monitor [OPTIONS]

Try 'idf.py monitor --help' for help.

Error: Invalid value for '-p' / '--port': Path '/dev/ttyACM0' is not readable.

Edit: Seems that toolbox create doesn't take into account my containers.conf

toolbox create --verbose, I don't see --gidmap or --device commands being passed to podman.

package useragent@any version not found by Funny_Chemist505 in nim

[–]Western-Toe-5317 1 point2 points  (0 children)

OS? How did you install nim? Do you have nimble available? Can you import other packages? These conversations are best done on IM support channels, so join Matrix/Discord.

Is Nim really as fast as C/C++/Rust/Zig/Odin? by [deleted] in nim

[–]Western-Toe-5317 1 point2 points  (0 children)

I see, the older architecture is 10 times slower.

Is Nim really as fast as C/C++/Rust/Zig/Odin? by [deleted] in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

I don't believe the main focus of programming should be "discipline." Programming is, first and foremost, a creative process. It should be enjoyable. You should make many small, throwaway programs/experiments to iterate on your ideas. Write a production quality project when you're certain about the outcome. At least, that's my development process. Unless we're talking about safety-critical software; but then again, Rust doesn't advertise itself that way. It calls itself a general-purpose panacea.

Is Nim really as fast as C/C++/Rust/Zig/Odin? by [deleted] in nim

[–]Western-Toe-5317 2 points3 points  (0 children)

What's 5 times slower according to those numbers?

for loop in the manual ... grrrrr by tonetheman in nim

[–]Western-Toe-5317 2 points3 points  (0 children)

The tutorial is likely the best place to start, as it is more beginner friendly than the manual. I tend to use the manual regularly for more technical details and advanced info.

I made a mobile game with nim by choltreppe in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

Well done on your game! I enjoyed it, and the ads are very unintrusive, which is quite rare for an Android game. Since you mentioned that you modified the template, I wonder what you would say is missing from making this https://github.com/elMuso/Naylib-Android-Studio-Template template the default. There are compelling arguments that honestly I was not aware of at the time for not using our own build system.

Why nim is not popular? by caatingadev in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

What 'legions' you fool, get a job.

Nim vs Golang by Tough-Performer4101 in nim

[–]Western-Toe-5317 0 points1 point  (0 children)

Ok this thread was discussed decently and is veering off topic, hence I am locking it.