jprendes / emception

Run Emscripten in the browser
Other
302 stars 36 forks source link

If I'm running emception in node.js, it should be theoretically possible to passtrough node itself as a command right? (in contrast of QuickJS) #21

Open rafi16jan opened 1 year ago

rafi16jan commented 1 year ago

Hi, this is a great project and it would theoretically revive my current obsolete project that have been broken on recent upstream of emcc/clang. Running old emscripten still worked but I can't afford to build everything from source just to run my project, making a static version of emception for my project would be a great solution for this problem. But even though this project will just run as is on node with the QuickJS compiled down, would it be faster to directly passtrough node command to the environment and if possible, to turn off Asyncify/Emterpreter so the whole compiling process will be much faster (but the latter is I guess, more complex than swapping out QuickJS, since I red somewhere in this repo that before you are actually have make a simple passtrough to the browser's JS, it would be beneficial to re-use that capability on node right?)

rafi16jan commented 1 year ago

I came accross this commit, it appears that you already turn off asyncify, is the whole process seems to be faster after that?