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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Why don’t JavaScript compilers generate web assembly?

2 点作者 trestenhortz超过 4 年前

3 条评论

rauschma超过 4 年前
AssemblyScript [1] is an example of a subset of JavaScript being compiled to fast WebAssembly. But it is very static code. If you want to run dynamic JavaScript fast, you need the more sophisticated strategies used by modern JavaScript engines.<p>[1] <a href="https:&#x2F;&#x2F;www.assemblyscript.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.assemblyscript.org&#x2F;</a>
pestatije超过 4 年前
You mean the client? That&#x27;d be an intermediate step to metal. If you want speed, the fewer intermediate steps the better.<p>Otherwise I don&#x27;t understand the question.
johncoltrane超过 4 年前
Why would they?