3 ms·
That's exactly what emscripten does, and is very mature and being used to port massive 3d games to the web. https://github.com/kripken/emscripten https://githu
by jlongster 14y ago
That's exactly what emscripten does, and is very mature and being used to port massive 3d games to the web.
https://github.com/kripken/emscripten https://github.com/kripken/emscripten
See the BananaBread demo: https://developer.mozilla.org/en-US/demos/detail/bananabread https://developer.mozilla.org/en-US/demos/detail/bananabread
- niggler 14y agoYou have to use the command-line `emcc` tool to do this. I'm asking if that tool can be eliminated from the workflow. The ideal solution would be an editor (like codemirror or ace) with a compile+run button that would compile the code down to JS and run it.
- jlongster 14y agoOh, I see. No, not yet, I think the C compilers are complex enough to be difficult to compile with emscripten. I have no evidence for that, but I know they are incredibly complex. The shorter path is something like LLVM, but we could see something like a compiler all in js that can take a large subset of C and compile it. EDIT: see azakai's comment below which provides much better insight into this
- ihsw 14y agoI think what the parent was asking was could libraries be written in C (for example jQuery) where performance is critical.