Hacker News new | ask | show | jobs
by ENTP 2755 days ago
Does anyone know the pros/cons of zig vs nim?
2 comments

I think that's nothing anyone can say for sure. You need to compare them for yourself and deside if you "need" the one or the other tool for that purpose. Something like a perfect language for all things to do does not exist.
Well, for one thing, zig apparently has no built-in memory allocator?
Kinda, Zig has a small selection of allocators in the standard library, but it would be true to say that it has no "default" allocator. Idiomatic Zig code that requires allocation accepts the allocator interface as a parameter, so that the programmer is free to choose whatever implementation suits their needs.
Worth mentioning that one allocator in the std-library is wrapping malloc.

Here some more details:

[1] https://www.youtube.com/watch?v=WLJ_7lpBhys

Thanks all