4 ms·
So right now it seems like you can replace the thread pool Clojure uses for futures etc with virtual threads and go ham. You could even write an alternative go
by thom 4y ago
So right now it seems like you can replace the thread pool Clojure uses for futures etc with virtual threads and go ham. You could even write an alternative go macro to replace the bits of core.async where you’re not supposed to block. Feels like Clojure could be poised to benefit the most here, and what a delight it is to have such a language on a modern runtime that still gets shiny new features!
- shaunxcode 4y agoYep core async will work as is just use <!! and friends.
- KingMob 4y agoYou wouldn’t need the go macro for anything with vthreads. If you continued to use core.async, you’d switch to the blocking variants, and ignore go entirely.