Ten years of V8
v8project.blogspot.com
v8project.blogspot.com
What I found most amazing about it is that most of the ideas mentioned in there have persisted and many have made their way into other browsers. Which kind of indicates how many good choices they made at its inception.
Spidermonkey is one third of the size(LoC) of V8 and has three times more comments.
In that both utilize JIT compilation or in other ways too?
The SpiderMonkey team has prototyped some JITs using Rust. The "Holy JIT" (a pun on Oracle's Graal VM name) is a meta-compiler for JITs:
https://blog.mozilla.org/javascript/2017/10/20/holyjit-a-new...
Is that based on https://www.openhub.net/p/spidermonkey?
It says last analyzed two years ago, but the last commit it includes looks like it was in April 2011.
LoC is a silly measure for complexity anyways :) Does it include tests and test runners? Generated files? v8 is in its own repo while spidermonkey is in the main mozilla repo, so it's going to be difficult to compare well.
Knowing why code was originally written can be more important than knowing what it currently does.
Better naming can't justify these head-scratchers. As an implementor all you can do is write a loud! comment! referencing the spec, and add a test or two or a million.
Anything that implements a spec needs copious comments to justify the implementation. clang for example is chock-full of references to the C99 standard.
To think that this in effect means that web browsing on phones and laptops uses much less battery, and that web apps run smoothly and promptly, is very cool.