4 ms·
How was experience using Go routines? And how would you compare it with Java? I am sure Java would have something similar
by avinassh 6y ago
How was experience using Go routines? And how would you compare it with Java? I am sure Java would have something similar
- pjmlp 6y agoIt had green threads in the early day, than concurrency packages, finally project Loom with virtual threads.
- blandflakes 6y agoThey (Go routines) mostly get out of the way and provide some abstraction over what I've typically used things like Future for in Scala. As pjmlp mentioned, The concurrency package is pretty nice to know, and offers functionality to chain work or fire off an async task or enqueue stuff to be done as messages, but it's not as trivial as marking a function async. Clojure and Scala have more direct paths to this sort of convenience. Loom will be interesting!