Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
Ask HN: Why don’t JavaScript compilers generate web assembly? | Better HN
Ask HN: Why don’t JavaScript compilers generate web assembly?
2 points
trestenhortz
5y ago
3 comments
Share
3 comments
default
newest
oldest
rauschma
5y 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.
[1]
https://www.assemblyscript.org/
pestatije
5y ago
You mean the client? That'd be an intermediate step to metal. If you want speed, the fewer intermediate steps the better.
Otherwise I don't understand the question.
johncoltrane
5y ago
Why would they?
j
/
k
navigate · click thread line to collapse