Does async/await solve a real problem?

C. Scott Ananian ecmascript at cscott.net
Thu Sep 11 14:54:11 PDT 2014


On Thu, Sep 11, 2014 at 5:27 PM, Bruno Jouhier <bjouhier at gmail.com> wrote:
> If async/await is baked into the language VM implementers will be able to
> choose between different strategies: callbacks, single frame continuations,
> deep continuations, ...

...and transactional speculation.  Or at least, that was the project I
was hacking on in Rust/Turtlescript for a while
(https://github.com/cscott/rusty-turtle) when I was fishing for a job
at Mozilla.

The idea is that you actually execute all ready-to-execute tasks in
(true multithreaded, multiprocessor) parallel, relying on the
programmer's explicit atomicity boundaries and transactional memory to
clean things up in order to preserve the appearance of atomic in-order
execution.
  --scott


More information about the es-discuss mailing list