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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The road to a more standards-compliant Workers API

2 点作者 arete超过 2 年前

1 comment

rektide超过 2 年前
It&#x27;s so wild &amp; weird how the official language keeps providing so little, but there&#x27;s more and more expectations &amp; standard library that&#x27;s expected. The extreme divergence is pretty incredible.<p>I think of, for example, &quot;promise cancellation&quot;, which was a long long long running saga of topics discussed in the old es-discuss mailing list. Today there is AbortSignal and AbortController, but these are actually specs from the DOM, even though they don&#x27;t really depend on any other DOM technology &amp; even though they are widely used as &quot;the&quot; way to do promise cancellation. Trying to evolve the language was just too hard. Also a lot of those ideas from back then were kind of not as good- we learned a lot &amp; AbortController kind of works decently, with what we&#x27;ve got (that said, AbortSignal is <i>core</i> proof that promises being async only was kind of bone headed- we immediately had to go invent an async+sync alternative, someplace a couple miles away, to make promise cancellation something doable in a reasonable fashion! (yet that &quot;Signal&quot; sync+async tech remains a single-use one-off!! eek!!)).<p>So we have a wider distributed set of folks doing &quot;standards&quot; in different places. Almost nothing gets folded back in to the langauge. Instead of having processes &amp; eventual growth of the language, taking the things that have in fact won &amp; bringing them in, there&#x27;s a very rag-tag acceptance. Governance is split up across a couple major entities. Changes percolate at varying rates to downstream specifications. WinterCG is interesting as like, the first people to get together to say, here&#x27;s what things from the sea-of-standards we should agree on. It&#x27;s the first union. Which has power to embrace, but still, has little power right now to shape &amp; influence the upstream standards, from a wide body of places, that it is consuming&#x2F;blessing. Wild stuff.