|
|
|
|
|
by Ygg2
1377 days ago
|
|
> So basically rust imposes a lot of limitations on how you can structure your program relative to something like Zig or C. I don't see it imposing that much of a limit. If there is code you know is correct and Rust can't reason about it, do it in unsafe block. And ECS is not just possible in Rust, but due to mutability guarantees you can make your ECS schedule systems in such way to maximize multi threading. See Bevy ECS. |
|
And how does rust allow you to "maximize multi-threading" over what's possible in other languages? Anything you can express in rust can be expressed in C or Zig as well. The only difference is the implementation you reach will come with static guarantees about memory ownership (so long as you don't use unsafe). So the set of all rust programs is a essentially a subset of all C/Zig programs.