You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm hoping Emscripten will provide a WASM build. If that were to happen, we could use Node.js easily to compile C/C++ to WASM without having to install and build the toolchain. No other really good tools for compiling C/C++ seem to be available on npm right now. The webassembly module requires the user to download binaries, only for Windows and Linux for now, which wouldn't work with Mac users of course. WASM will provide a portable solution to his, requiring no building on the user's machine
Some people have started work on this. Everything is still early and experimental, but hopefully I can use one of these projects, and perhaps they will get picked up by the community and become well-supported:
Also, regular compilers such as gcc or g++ will probably get a Wasm compilation target eventually. This should really help as well, for example this project seems like it allows access to gcc or g++ with a JS API in Node.js...hopefully it also installs the binaries locally in node_modules: https://www.npmjs.com/package/gnucc
The end-all-be-all would be a Wasm binary for a C compiler, which would make it extremely simple to distribute...but until then, if the compilers and toolchains at least give us binaries for the different architectures, we should be able to create scripts to load them locally
I'm hoping Emscripten will provide a WASM build. If that were to happen, we could use Node.js easily to compile C/C++ to WASM without having to install and build the toolchain. No other really good tools for compiling C/C++ seem to be available on npm right now. The webassembly module requires the user to download binaries, only for Windows and Linux for now, which wouldn't work with Mac users of course. WASM will provide a portable solution to his, requiring no building on the user's machine
See here: emscripten-core/emscripten#5774
And here: emscripten-core/emscripten#6015
The text was updated successfully, but these errors were encountered: