Comment by claytongulick
3 days 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.
QuickJS 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
Fabrice Bellard is on another planet when it comes to programming. He also wrote FFmpeg and QEMU (among other things).
I put QuickJS in https://exaequos.com. You can do graphics app with raylib
To 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.
> 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.
He's abandoned it now though.
Not anymore, https://github.com/bellard/quickjs
Finally he upped his maintainance hat. So we can archive our own github versions from the tarballs, with various patches.