News for hackers. Stuff that matters.
Re:Ruby Methods Are Colorless by phplovesong on Wednesday July 24, 2024 @01:17PM (#41059374)
Its a bad feature. The thing is it does not matter if its ”obvious” as anything that touches async needs to be async too. Its a bad paradigm, CSP is obviously a better way to do concurrency. As async is usually only IO bound, but how about CPU bound? In the node ecosystem CPU bound tasks are not something you do with async/await.
Re:Ruby Methods Are Colorless by vlucas on Wednesday July 24, 2024 @01:23PM (#41059436)
In node, you generally don't want to do anything CPU bound.
Re:Ruby Methods Are Colorless by lolinder on Wednesday July 24, 2024 @07:40PM (#41063384)
Yep. If you have CPU-bound work then you should use a different language. If you have IO-bound work then explicitly tagged async functions are actually a really nice concurrency model for the only kind of concurrency you need—it's equivalent to having the Haskell IO monad as a first-class language feature.