4 ms·
Given it's written in C, it seems like a direct port to Javascript might be a much better option.
by Tloewald 11y ago
Given it's written in C, it seems like a direct port to Javascript might be a much better option.
- vardump 11y agoAny particular reason for that?
- Tloewald 11y agoA lot of c will translate very simply to JavaScript and any parsing or string manipulation will be insanely easier.
- vardump 11y agoHow can parsing and string manipulation be easier than just compiling C to Javascript using Emscripten? The interpreter already works in C. Wouldn't translating it manually to Javascript be extra effort?
- Tloewald 11y agoParsing and string manipulation are (hugely) easier in Javascript than C. Compiling the interpreter to Javascript via Emscripten is certainly easier than translating to Javascript -- but porting C to Javascript should still be very easy.