Max Graey

Results 346 comments of Max Graey

By the way this tools stack in my opinion js -> haxe -> c -> emscripten -> wasm already used in NectarJS and it has a huge bundle size

ts2c is completely unusable. For example it can't transpile this simple example: ```ts class Vec3 { x: number; y: number; z: number; constructor(x: number, y: number, z: number) { this.x...

@liangzeng I think ts -> wasm and optional wasm -> wasm optimization via binaryen

So now we have three ts -> wasm projects with three different approach: - [TurboScript](https://github.com/01alchemist/TurboScript) - [speedy.js](https://github.com/MichaReiser/speedy.js) - [AssemblyScript](https://github.com/dcodeIO/AssemblyScript)

Also it would be very useful to implement `this.constructor` property.

How you bind Math library to Wasm right now? It seems just import from js according this: https://github.com/01alchemist/TurboScript/blob/master/tests/math-wasm.html. ~~One more thing. In declared set of WasmOpcodes are missing f32_fma and...

That's right we definitely need fma command for IEEE-754 (2008) compatible sin, cos, log and etc, but min, max, sqrt, rounding and abs we already has direct equivalents in wasm,...

@nidin Is it possible use wasm's sqrt, clz, ctz, popcount, copysign and etc now?

@winksaville I don't think so build-in operators overloaded but it would be nice. My main message is current expressions must be the operators not ordinal expressions

Has there been any progress in this direction? Unfortunately I'm not too good at parser stuffs, but I think it should not be too difficult