3 ms·
You're thinking Haskell. Rust has mutability all over the place, but it has safeguards against accidentally sharing across threads without synchronization or it
by pornel 4y ago
You're thinking Haskell. Rust has mutability all over the place, but it has safeguards against accidentally sharing across threads without synchronization or iterator invalidation.
- nequo 4y agoHaskell also doesn’t need infinite memory (like parent claimed about Rust). It has immutability but it also has a garbage collector. It tends to use less memory than Java for example (to the extent that the benchmarks game is a useful benchmark): https://benchmarksgame-team.pages.debian.net/benchmarksgame/fastest/haskell.html https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
- igouy 4y agoFor tiny tiny programs that don't need much memory, Java default allocation is obviously larger. For programs that need memory to be allocated less so.