3 ms·
An interesting one is http://docs.paralleluniverse.co/quasar/ http://docs.paralleluniverse.co/quasar/ They claim to have "true lightweight" threads. (I am su
by rdtsc 12y ago
An interesting one is
http://docs.paralleluniverse.co/quasar/ http://docs.paralleluniverse.co/quasar/
They claim to have "true lightweight" threads. (I am sure pron if he is a around can jump in and expand on it).
It takes a lot from Erlang even pattern matching.
- pron 12y agoWell, the pattern matching is only in the Clojure API, but yeah, these are true fibers based on continuations implemented with bytecode instrumentation, scheduled by a work stealing scheduler (or any other scheduler of your choice). It lets you write simple blocking code with all its familiarity and advantages (exceptions, thread-local data) but enjoy the performance of async code. The downside is that libraries have to be integrated in order to block gracefully when called on fibers, but we already have a long and growing list of integration modules for popular libraries.