News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by Gaelan on Tuesday September 24, 2019 @07:34PM (#21065873)
> two sequential lines of code are no longer two truly sequential instructions

How is this different from normal multithreading?

Re:V8 adds support for top-level await by eropple on Tuesday September 24, 2019 @07:41PM (#21065936)
Normal, which is to say preemptive, threading can pause your execution arbitrarily.

You can wedge a NodeJS interpreter by not yielding, but you also have control over when that yielding happens.

Re:V8 adds support for top-level await by _bxg1 on Tuesday September 24, 2019 @07:43PM (#21065953)
I suppose it's not, but it is different from normal JavaScript. I guess in multithreaded languages it's not such a big leap.