Re:Jane Street and the OCaml Compiler (2018) [video]
by throwaway720348 on Thursday March 26, 2020 @05:34AM
(#22691881)
You 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).
[ Parent
| on HN ]
Re:Jane Street and the OCaml Compiler (2018) [video]
by zerr on Thursday March 26, 2020 @05:39AM
(#22691905)
What about multicore? :)
Nowadays Rust seems to cover all those features with zero-cost abstractions.
Re:Jane Street and the OCaml Compiler (2018) [video]
by p_l on Thursday March 26, 2020 @06:09AM
(#22692076)
You 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)
Re:Jane Street and the OCaml Compiler (2018) [video]
by throwaway720348 on Thursday March 26, 2020 @06:38AM
(#22692218)
Ah you're right, I forgot about OCaml's ass-tier multicore support. Rust is definitely better there.