TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

2 pointsby trestenhortzabout 4 years ago

3 comments

rauschmaabout 4 years ago
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>
pestatijeabout 4 years ago
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.
johncoltraneabout 4 years ago
Why would they?