Zeng Liang
Zeng Liang
I think language grammar and typescript the same, while adding new types, and for efficiency do not have to support all the typescript syntax, if all support is better. ```...
I find it https://github.com/jeremyfa/node-ts2hx have help ? Typscript -> c++ -> wasm ?
find it https://github.com/andrei-markeev/ts2c typescript -> c -> wasm ?
ts -> wast -> wasm Whether to reduce the workload?
@nidin good idea . c/c++ also can not use webassembly to achieve all features . javascript + webassembly = c/c++ all features
The real effect of webassembly is loop and recursion ,so first implement. other language features can be added step by step.
Typescript ------compile ---> JavascriptWrap + WebAssembly WebAssembly is preview , the way is flexible .
In the future, can implement the full Typescript features. Typescript / Javascript ------ compile ---> dynamic (javascript) + static (webassembly) Feature Compile life cycle plugins Compile parameters "Use wasm" tag...
test.ts ``` "use wasm"; // compile to javascript export function test(){} // compile to wasm export class User{ constructor(public name:string){} } // compile to js + wasm export { //...