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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Asynchronous IO: the next billion-dollar mistake?

7 点作者 YorickPeterse9 个月前

2 条评论

nyrikki9 个月前
&gt; More specifically, what if instead of spending 20 years developing various approaches to dealing with asynchronous IO (e.g. async&#x2F;await), we had instead spent that time making OS threads more efficient, such that one wouldn&#x27;t need asynchronous IO in the first place?<p>1) Moore&#x27;s law for single cores has been over for a while 2) We are necessarily in a distributed world 3) Amdahl&#x27;s law still applies 4) Concurrent operations would still be needed.
评论 #41467651 未加载
wmf9 个月前
Linux has already optimized threads extensively; AFAIK the overhead is mostly in the CPU at this point (fortunately Intel&#x2F;AMD continue to reduce system call and context switch overhead).<p>Using raw threads also has its own footguns but fortunately we have libraries like j.u.c and TBB to provide safer abstractions over threads. Unfortunately these libraries matured after async so most programmers aren&#x27;t familiar with concepts like fork&#x2F;join.