5 ms·
For those who would like a true "from scratch" implementation of JavaScript, Fabrice Bellard's QuickJS [1] is clean, readable and approachable. It's a full impl
by claytongulick 1y ago
For those who would like a true "from scratch" implementation of JavaScript, Fabrice Bellard's QuickJS [1] is clean, readable and approachable. It's a full implementation of modern JavaScript in a straightforward project, not nearly as complex or difficult as V8.
[1] https://bellard.org/quickjs/ https://bellard.org/quickjs/
- thdhhghgbhy 1y agoHe's abandoned it now though.
- hackthemack 1y agoQuickJS is amazing. You can put in javascript code, run it through QuickJS and make little binary utilities to run on their own. Someone took QuickJS and put it in wasm so you can run QuickJS in the browser or in node. https://github.com/justjake/quickjs-emscripten https://github.com/justjake/quickjs-emscripten Fabrice Bellard is on another planet when it comes to programming. He also wrote FFmpeg and QEMU (among other things).
- baudaux 1y agoI put QuickJS in https://exaequos.com https://exaequos.com. You can do graphics app with raylib
- jhgb 1y agoTo be fair, there's no claim being made that this was supposed to be a from-scratch implementation of Javascript. Just an equivalent to Deno/Node which don't have their own implementation of Javascript either.
- ranger_danger 1y ago> there's no claim being made that this was supposed to be a from-scratch implementation of Javascript That is exactly how I interpreted the title of the article.