News for hackers. Stuff that matters.
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.