3 ms·
Why would you do that? Why not use C++? Especially, as you say, when memory management is ignored...
by zerr 7y ago
Why would you do that? Why not use C++? Especially, as you say, when memory management is ignored...
- throwaway720348 7y agoYou can use a language like OCaml without allocating and still capture huge benefits over C++, like a decent type system, ADTs, and better abstractions than templates (modules in OCaml's case).
- zerr 7y agoWhat about multicore? :) Nowadays Rust seems to cover all those features with zero-cost abstractions.
- p_l 7y agoYou still need to write non-consing code to avoid memory allocation/deallocation latency, just as if you were working in Java, Lisp or OCaml. (In fact, GCs can often give you better latency than malloc/free unless you go into custom allocators with object pools... which is part of writing non-consing code in GCed languages)
- throwaway720348 7y agoAh you're right, I forgot about OCaml's ass-tier multicore support. Rust is definitely better there.