TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Quick thoughts on concurrent JavaScript execution

12 点作者 bss将近 14 年前

1 comment

skimbrel将近 14 年前
Interesting read. When it comes down to it the answer seems to be that JavaScript needs to have support added for explicit parallelism. But isn't this what we're supposed to get with HTML5 web workers? It shouldn't be hard to write a utility library to implement parallel map, reduce, and so on in terms of spawning workers, falling back to serial execution if the worker API isn't available.<p>In either case, this will require a rewrite of every piece of code that needs it.<p>Speeding up/backgrounding the JIT compilation phase is a transparent optimization that I'm sure some smart people at Apple, Google, and Mozilla are already working on.
评论 #2644318 未加载