3 ms·
You might be surprised when you try it. Emscripten probably is the most reliable route, and also the most secure (Javascript VM sandboxing, which you don't have
by Ace17 11y ago
You might be surprised when you try it.
Emscripten probably is the most reliable route, and also the most secure (Javascript VM sandboxing, which you don't have with native CGIs). If your C++ code doesn't directly use system APIs (CreateFileA, execvp(), etc.) or extra I/O libraries (OpenGL1.0, SDL2), Emscripten will compile it just fine.
- nice_byte 11y ago> If your C++ code doesn't directly use system APIs or extra I/O libraries That's exactly the case I had in mind. Most C++ code hasn't really been written with Emscripten in mind