3 ms·
I wonder if the compiler could be adapted to target other platforms, such as desktop, mobile, WebAssembly, or WASI? TypeScript is a wonderful language to devel
by Humphrey 3y ago
I wonder if the compiler could be adapted to target other platforms, such as desktop, mobile, WebAssembly, or WASI?
TypeScript is a wonderful language to develop in, and it would be awesome to be able to build TypeScript code down to small apps that don't need a JS Runtime to execute. I'd definitely be up for sacrificing some of the dynamic part of JS for being to build small native executables.
- dolmen 3y agoThe DeviceScript project already provides a WebAssembly VM: https://microsoft.github.io/devicescript/api/vm https://microsoft.github.io/devicescript/api/vm
- qbasic_forever 3y agoAssemblyScript might be what you're interested in, it's a typescript-like language that compiles to WASM code: https://www.assemblyscript.org/ https://www.assemblyscript.org/