News for hackers. Stuff that matters.
Re:OCaml Programming: Correct and Efficient and Beautiful by teiferer on Monday July 28, 2025 @04:37AM (#44708651)
How does laziness cause a slowdown? It merely reorders work done, it doesn't necessarily create more work.
Re:OCaml Programming: Correct and Efficient and Beautiful by dev_hugepages on Tuesday July 29, 2025 @05:02AM (#44720913)
To 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=Performance/Strictn...