Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

“Has safety features in place”? I’m sorry, not gonna cut it.

I mean, Nim looks cool, but I’m not sure what it does that is substantially new. Niceties are generally not enough to foster adoption - something real has to be on the table that meaningfully opens up new avenues, unlocks new paths, enables new use cases.

I have the same criticism of Zig.



Nim has one of the most powerful metaprogramming systems out there. Hygienic templates, easy macros, but my favorite is the compile-time functions.

Nim compiler has an embedded VM, so any Nim code (that doesn't rely on FFI) can run at compile time.


I'm sure that's nice, but it's not a game changer. You can do metaprogramming in other languages as well, and maybe those languages get it not quire as right as Nim, but it's not enough to tip the scales.


More powerful than zig's comptime?


Yes, compile-time execution in Nim is very natural, if you mark a variable "const" or use some other ways, you can run almost all pure-Nim code at compile-time without having to modify it.


For me, the killer feature of Nim is that I can just write code without having to constantly fight the language.


You just get to fight now at runtime!


> opens up new avenues, unlocks new paths, enables new use cases.

These are all the same thing.




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

Search: