Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by matt_kantor on Saturday December 19, 2020 @11:25AM
(#25478415)
I don't have the answer, but I'm really curious what you're building.
[ Parent
| on HN ]
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by wizzwizz4 on Sunday December 20, 2020 @07:19AM
(#25485765)
Just a small education platform that'll likely never see the light of day. AssemblyScript is a simple enough language that non-programmers should be able to use and understand it, and it compiles to WASM (which runs sandboxed) so it's reasonably safe to throw around. I'm using it to describe the educational resources (basically, interactive / generalised flashcards).
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by matt_kantor on Sunday December 20, 2020 @06:49PM
(#25490742)
Sounds cool!
I guess AssemblyScript isn't self-hosted (yet)? Seems like your life might be easier if you could compile the compiler to WASM.
Would a JavaScript interpreter be too slow for your use case? I can find a few of those written in Rust (e.g. https://github.com/boa-dev/boa), although some look abandoned and others seem incomplete.
Re:AssemblyScript: A variant of TypeScript targeting WebAsse...
by wizzwizz4 on Monday December 21, 2020 @11:59AM
(#25496767)
A JavaScript interpreter would be brilliant, but I can't find a complete one written in Rust. NectarJS (mentioned upstream) seems to compile to WASM (by embedding a JavaScript runtime environment), so I'll probably use that for prototyping.