Max Graey

Results 346 comments of Max Graey

For async initialization you should defer `log` and wrap it to `main` for example: javascript: ```ts (async () => { const wasmModule = await loader.instantiate(module_wasm, { myConsole: { log(ptr) {...

Hmm, but it works in [playground](https://www.assemblyscript.org/editor.html#IyFvcHRpbWl6ZT1zcGVlZCZydW50aW1lPWZ1bGwKQGV4dGVybmFsKCJteUNvbnNvbGUiLCAibG9nIikKZGVjbGFyZSBmdW5jdGlvbiBsb2coc3RyOiBzdHJpbmcpOiB2b2lkOwoKZXhwb3J0IGZ1bmN0aW9uIG1haW4oKTogdm9pZCB7CiAgbG9nKCJIZWxsbyB3b3JsZCEiKTsKfQojIWh0bWwKPHRleHRhcmVhIGlkPSJvdXRwdXQiIHN0eWxlPSJoZWlnaHQ6IDEwMCU7IHdpZHRoOiAxMDAlIiByZWFkb25seT48L3RleHRhcmVhPgo8c2NyaXB0PgooYXN5bmMgKCkgPT4gewogIGNvbnN0IHdhc21Nb2R1bGUgPSBhd2FpdCBsb2FkZXIuaW5zdGFudGlhdGUobW9kdWxlX3dhc20sIHsKICAgIG15Q29uc29sZTogewogICAgICBsb2cocHRyKSB7CiAgICAgICAgbGV0IHZhbHVlID0gd2FzbU1vZHVsZS5leHBvcnRzLl9fZ2V0U3RyaW5nKHB0cikKICAgICAgICBvdXRwdXQuaW5uZXJUZXh0ICs9IHZhbHVlOwogICAgICAgIGNvbnNvbGUubG9nKHZhbHVlKTsKICAgICAgfQogICAgfQogIH0pOwogIHdhc21Nb2R1bGUuZXhwb3J0cy5tYWluKCk7Cn0pKCk7Cjwvc2NyaXB0Pg==)

@alangpierce It would be nice if `sucrase` has a possibility of type checking for typescript and flow. Without this features `development` is not very useful in my opinion

`fork-ts-checker-webpack-plugin` require rollup or webpack, CI & tests require `tsc`. They both eat up hard disk space. Ideally, it would be nice to have one lightweight tool that could completely...

@alangpierce I think wasm should be faster than js for large dataset with latest AssemblyScript as well. Also if you change `--optimize` to `-O3` [here](https://github.com/alangpierce/sucrase/blob/assemblyscript-prototype/package.json#L16) you could get much better...

Also you should try __prepack__ #269

@MichaReiser in speedy.js you are using custom transform for visitor of AST Walker, right? But what if using someting lower level like this: https://github.com/Microsoft/TypeScript/blob/02547fe664a1b5d1f07ea459f054c34e356d3746/tests/cases/conformance/parser/ecmascript5/parserRealSource11.ts

@MichaReiser so implement for example SyntaxKind.Float32Keyword, and create it as intrinsic type is huge problem?

@winksaville someone told that emscripten or other tool allow optimize wasm files. So we can generate unoptimized wasm and optimize it later if needed.

@liangzeng I don't think it's a good idea. A lot of tools and compile time and we should support 3-4 tools in the same time instead just one