3 ms·
I see a couple of comment suggesting that go routines will be a problem, or channels, as if these are unique to go and deeply magical. Ruby has Fibers which cou
by aardvark179 5y ago
I see a couple of comment suggesting that go routines will be a problem, or channels, as if these are unique to go and deeply magical. Ruby has Fibers which could easily be used to implement go routines, and Ruby 3 has Fiber scheduling support that would make the job easier, and channels aren’t terribly hard to implement.
I think CRuby’s limit on the total number of Fibrrs would be lower than the number of go routines that can normally be supported, but TruffleRuby using Project Loom’s virtual threads could support vast numbers of Fibers when I prototyped it several years ago.
- vips7L 5y agoNow we just need Loom to be released!
- aardvark179 5y agoIt’s getting closer, and quite a few bits of the supporting work have already been merged into the JDK.