Spidermonkey is one third of the size(LoC) of V8 and has three times more comments.
Spidermonkey is one third of the size(LoC) of V8 and has three times more comments.
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.
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...
In that both utilize JIT compilation or in other ways too?