Re:Porffor: A from-scratch ahead-of-time JS engine
by ch_sm on Tuesday July 30, 2024 @04:16PM
(#41113677)
Somewhat related to this idea is AssemblyScript https://www.assemblyscript.org
[ Parent
| on HN ]
Re:Porffor: A from-scratch ahead-of-time JS engine
by lerpgame on Wednesday July 31, 2024 @02:12PM
(#41121676)
Yea I came here to say this, actually I was able to transpile a few typescript files from my project into assembly using GPT just for fun and it actually worked pretty well. If someone simply implements a strict typescript-like linter that is a subset of javascript and typescript that transpiles into assemblyscript, I think that would work better for AOT because then you can have more critical portions of the application in AOT and other parts that are non-critical in JIT and you get best of both worlds or something like that. making js backwards compatible and AOT sounds way too complicated.