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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Computing with JavaScript Web Workers

63 点作者 emontero1将近 16 年前

7 条评论

peregrine将近 16 年前
Javascript just keeps getting cooler and cooler. The more I learn about it the more I find myself loving it.
评论 #717296 未加载
评论 #717452 未加载
axod将近 16 年前
Web Workers look ugly to me :( Sad that they thought of this as a good idea. It's just a horrible hack that'll lead to horrible code.<p>Threads are usually misused. When you add threads and it speeds up your code, you're usually doing something terribly wrong (When #threads&#62;#cores).
评论 #717869 未加载
评论 #717679 未加载
robryan将近 16 年前
So now any website could setup a web worker in the background of pages to massively improve there processing power.<p>Very cool feature though, makes the entry level to distributed processing very low.
huhtenberg将近 16 年前
How long until some high-traffic page owner decides to resell his visitors CPU time ?
gruseom将近 16 年前
I'm rather amazed that this is available in Firefox and Safari today.
评论 #717300 未加载
ohgrayt将近 16 年前
tragedy of the commons. wow, i just can't wait for every amateur web designer to take up the mantle of threaded coding.<p>get used to "kill -9", you're going to be using it to preempt all this amateur-hour worker code people slap together and foist on you
评论 #717561 未加载
TweedHeads将近 16 年前
Why web workers can't take a function or an object?<p><pre><code> myobject={ start: function(){ /* do stuff */ } stop: function(){ /* end worker */ } postMessage:function(){ /* communicate */ } onmessage: function(){ /* receiving data*/ } onerror: function(){ /* handle stuff */ } } myworker = new Worker(myobject); myworker.start(); myworker.postMessage("dostuff"); myworker.stop(); </code></pre> Or something like that...
评论 #717861 未加载
评论 #717803 未加载