Pogoscript – a compile-to-JS language that emphasises concurrency, readability
pogoscript.org
pogoscript.org
I actually think generators + co is a really strong model. Async/await gives you a slight bit of sugar, but I've realized that if you stick with generators, you can wrap your generators to allow you to `yield` more than just promises, effectively giving you something like (untyped) scoped continuations [4].
[1] https://maxtaco.github.io/coffee-script/
[3] http://masnun.com/2015/11/11/using-es7-asyncawait-today-with...
[4] http://blog.paralleluniverse.co/2015/08/07/scoped-continuati...
Couldn't agree more, very interesting solution you've come up with!
https://github.com/srikumarks/cspjs
Have been using it in a production system for a year now.
Why, if I had a nickel every time I was forced to turn down a client who demanded the project be done in Clojure, Scheme, Haskell, Pogoscript, or Brainfuck... I would have zero cents.
But a boss shouldn't _force_ something this immature onto their devs.
My shell session: http://codepad.org/xWoOrHpe
How do I fix this?
What you're talking about is parallelism, which is the property that more than one task may execute at the same time. That is what Web Workers achieve.