News for hackers. Stuff that matters.

throwmeaway101

Re:Nim 0.20.0 (1.0 RC1) released on Thursday June 06, 2019 @12:44PM (#20116275)
It isn't exactly accurate. Rust is more like c++ and Nim is more like python+c+pascal. But yeah "The future looks good."
Re:Nim 0.20.0 (1.0 RC1) released on Thursday June 06, 2019 @12:43PM (#20116259)
The benefits of Nim over Python are not at the ecosystem level yet, it is at the language level. Nim is not exactly related to Python as TypeScript is to JS.

Nim provides a lot of features like compile-time execution, macros, c/c++/js/obj-c interop, upcoming newruntime, dependency free executable, better performance and lower memory overhead in general (obviously people can write bad code), etc.

So if any of these features matter to you, you should give it a try.

Re:Nim 0.20.0 (1.0 RC1) released on Thursday June 06, 2019 @12:38PM (#20116206)
There is https://github.com/yglukhov/nimpy There are/were others too IIRC.
Re:Nim 0.20.0 (1.0 RC1) released on Thursday June 06, 2019 @12:16PM (#20115969)
The main reason people prefer python is because of the vast ecosystem. Hopefully Nim will reach there someday.

Anyways for a lot of things Nim is pretty good actually and I would recommend people to atleast try it.

Re:Nim 0.20.0 (1.0 RC1) released on Thursday June 06, 2019 @12:12PM (#20115922)
Links for anybody who doesn't know what is being talked about here, https://github.com/nim-lang/Nim/wiki/Destructors,-2nd-editio... and https://github.com/nim-lang/RFCs/issues/144 describes the specification for those changes.

The plan AFAIK is to ship it with v1 but it would not be default and you would need to do `--newruntime` for using these features. As they stabilize over time and things get ported to this new runtime, it would be made the default.