|
|
|
|
|
by megameter
1708 days ago
|
|
Nim is a little bit more straightforward for writing application code, by dint of simply having more features to throw around. Both languages can be pretty darn fast, enough that I would not rate it as a factor for most applications, including rendering side projects - the speed difference we are talking about really has to do with how detailed your resource allocation methods are, and if you want that form of speed you have to invest time researching memory access patterns for your use case to get beyond educated guessing. So you would have to turn your voxel engine into full-time work to get to the point where it has both usefully broad functionality and top-end performance. Expect some maturity/stability issues with either one. Zig is much earlier in its lifecycle and I have seen showstoppers, but it's also been moving faster. Nim has struggled in the past with stabilizing its high-concept features - use it mostly like C and it's fine. Zig's biggest appeal is in how close it is to a fully bootstrapping environment - low level, clearly defined control over all resources is just what you want if you are writing a kernel. |
|