News for hackers. Stuff that matters.
Re:Thoughts on Go vs. Rust vs. Zig by gpm on Friday December 05, 2025 @01:01AM (#46157253)
Not really possible in a systems level programming language like rust/zig/C. There really is only one address space for the process... and if you have the ability to manipulate it you have global variables.

There's lots of interest things you could do with a rust like (in terms of correctness properties) high level language, and getting rid of global variables might be one of them (though I can see arguments in both directions). Hopefully someone makes a good one some day.

Re:Thoughts on Go vs. Rust vs. Zig by tcfhgj on Friday December 05, 2025 @04:08AM (#46158554)
> Not really possible in a systems level programming language like rust/zig/C. There really is only one address space for the process... and if you have the ability to manipulate it you have global variables.

doesn't imply you have to expose it as a global mutable variable