|
|
|
|
|
by leshow
2456 days ago
|
|
Zig and Rust both don't have a runtime/GC, they should be on par with performance in C, meaning they are slightly faster than the others (of course this all depends). Go is the only one you listed that doesn't have some kind of parametric polymorphism support (generics). Rust is the only one that will validate your program is memory safe at compile time, they call this 'data race freedom'. I think in the end it's really up to your tastes which you prefer. Have a look at the tenets of each of the languages and see which resonates with you. |
|
Actually you can use just plain (stack) objects and ptr object and you have no GC involved.
Pass the flag -d:useMalloc (or just call your preferred allocator) and you have the full C experience and speed.