6 ms·
You don't need "monads" (in plural) since GHC provides a runtime where threads are not 1:1 OS threads but rather are managed at the user level, similar to what
by valcron1000 11mo ago
You don't need "monads" (in plural) since GHC provides a runtime where threads are not 1:1 OS threads but rather are managed at the user level, similar to what you have in Go. You can implement async/await as a library though [1]
[1] https://www.cambridge.org/core/services/aop-cambridge-core/content/view/A369E310ADAE4455020C918FC1D47958/S0956796899003342a.pdf/poor_mans_concurrency_monad.pdf https://www.cambridge.org/core/services/aop-cambridge-core/c...
- kaoD 11mo agoWhat do you mean with "in plural"?
- valcron1000 11mo agoIn the sense that you only need to work with the standard IO monad to get the benefits of the runtime.