3 ms·
I've been playing around with compiling small subsets of JS to C++, then running it back through emscripten. It works, but you have to keep the subset small, o
by ndesaulniers 12y ago
I've been playing around with compiling small subsets of JS to C++, then running it back through emscripten.
It works, but you have to keep the subset small, otherwise you end up implementing a meta circular interpreter. The problem will be that the subset is never the subset that pleases everyone. When your implementation doesn't support one person's code, it's labeled 'crap', and the negative cheerleading begins.