News for hackers. Stuff that matters.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by yusukesuzuki on Friday August 30, 2019 @08:20PM (#20843897)
JSC's async-await is constructed on the generator's mechanism so that high performance generator is critical for all the web code using async functions. Not sure how SpiderMonkey is doing.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by littlestymaar on Friday August 30, 2019 @11:50PM (#20844522)
As the gp said, async/await is rarely used in hot loops, so it would probably never get jit-ed in a real webpage.
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by yusukesuzuki on Saturday August 31, 2019 @08:16AM (#20845859)
I don’t agree given that async iterator can be iterated. But I’m ok if SpiderMonkey folks thinks so ;)
Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by littlestymaar on Saturday August 31, 2019 @12:04PM (#20847111)
Async is mainly useful for asynchronous operations, like network requests if file system access. If used in this context, the loop cannot be "hot"…

Maybe there are people (ab)using the async stuf do do something else, but at least it's not really common.

Re:The Baseline Interpreter: A Faster JavaScript Interpreter... by pcwalton on Saturday August 31, 2019 @01:23PM (#20847587)
I'm sure SM will get around to jitting that stuff at some point. All I'm saying is that Baseline Interpreter gives users bigger wins right now.