4 ms·
Is OCaml lazy? I'm not an expert, but if you want ultra high throughput, you might not want lazy. If I understand correctly, in Haskell some nonobvious things
by AnimalMuppet 1y ago
Is OCaml lazy? I'm not an expert, but if you want ultra high throughput, you might not want lazy. If I understand correctly, in Haskell some nonobvious things can slow you down because of the laziness.
- sestep 1y agoNo, OCaml is not lazy.
- KiranRao0 1y agoOCaml is not lazy. src: https://signalsandthreads.com/future-of-programming/ https://signalsandthreads.com/future-of-programming/
- teiferer 1y agoHow does laziness cause a slowdown? It merely reorders work done, it doesn't necessarily create more work.
- dev_hugepages 1y agoTo do lazyness, you need to accumulate "intermediate computation objects" called thunks. These take space and time to store. See: https://wiki.haskell.org/index.php?title=Thunk https://wiki.haskell.org/index.php?title=Thunk https://wiki.haskell.org/index.php?title=Performance/Strictness https://wiki.haskell.org/index.php?title=Performance/Strictn...