4 ms·
Haskell 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
by nequo 4y ago
Haskell 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.