News for hackers. Stuff that matters.
Re:Async-await on stable Rust by mratsim on Friday November 08, 2019 @07:42AM (#21481699)
Haskell avoids state.

When I say state I meant "shared state" is the bane of multithreading. Amdahl's law show that if 95% of your code is parallel you limit your speedup to 20x even with thousands of cores, any shared state contribute to those 5%.

Re:Async-await on stable Rust by jstimpfle on Friday November 08, 2019 @02:49PM (#21486018)
> Haskell avoids state.

That's a myth. You need state for computation. It's not a language issue. You need just as much state in Haskell as you need in other languages. In Haskell you just specify each little component as a function which takes as a parameter what is effectively global state.

Which, by the way, is usually a bad idea because it causes so much boilerplate. Plus, it makes it unclear how many instances of a given concept can actually exist in a running program.