Hacker News new | ask | show | jobs
by atmosx 1163 days ago
True. But nowadays, zig is the new rust!
3 comments

Aside from using Rust as a Python developer with extensive outdated C/C++ experience, I'm really tempted to dive into Zig for all what it's praised for, but nim's hot code reloading [0] feature is so very tempting to me, that I'm not sure if choosing Zig would be a mistake. I do this constantly in Python and would love Rust to have this included in some easy to handle way.

In any case, I'm totally happy with Rust, and apart from the missing hot code reloading, it's so enjoyable to code in.

[0] https://nim-lang.org/docs/hcr.html

As I am completely and unapologetically biased, Zig hits me the wrong way when in it's default help output it mentions "exe" and "dll". barf.
If that's your main issue with the language then Zig is probably awesome. Makes me want to try it in a simple tool.
Hah, yeah. I'm silly that way. I don't like that it doesn't have macros. It's not something I need to look into at the moment anyway. I'd probably never find a use case for it.
Except that zig is really really really not production ready. It has major bugs pretty much everywhere and fundamental stuff breaks/changes every other month.

comptime is cool, and I see a future for zig or its ideas, but not in less than 5 years.