Hacker Newsnew | past | comments | ask | show | jobs | submit | throwmeaway101's commentslogin

It isn't exactly accurate. Rust is more like c++ and Nim is more like python+c+pascal. But yeah "The future looks good."


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.


There is https://github.com/yglukhov/nimpy There are/were others too IIRC.


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.


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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: