5 ms·
What impact, if any, would this have on Clojure?
by darkpuma 7y ago
What impact, if any, would this have on Clojure?
- Blackthorn 7y agoIt would basically be a better and much more seamless Pulsar which is awesome.
- didibus 7y agoI had a discussion about this with some other folks recently. Clojure already supports forms of delimited continuations. You can use core.async for example, or cloroutine. That said, it can't yield across stack frames. One problem with that is that if you use a go block for example, calling anything inside it which will block can sabotage your go thread. With Project Loom, all blocking call made within a Fiber will yield it instead of blocking the thread. That would be the big advantage, and possibly something Clojure could leverage as well, so that say making a blocking IO call even indirectly inside a go block would park instead of blocking.