4 ms·
I'm not sure about V8, but NodeJS runtime is actually mostly JS, at least according to the GitHub language statistics.
by capableweb 6y ago
I'm not sure about V8, but NodeJS runtime is actually mostly JS, at least according to the GitHub language statistics.
- Cthulhu_ 6y agoProbably all tests, the `src` folder containing the core NodeJS code is at https://github.com/nodejs/node/tree/master/src https://github.com/nodejs/node/tree/master/src. Also keep in mind it builds on top of V8, which is mostly C++: https://github.com/v8/v8 https://github.com/v8/v8.
- infensus 6y agoSignificant part of the standard library (lib folder) is in JS
- capableweb 6y agoSeems you're mostly right (not counting dependencies at least), I ran cloc while excluding the "test" dir and got the following results: $ cloc . --exclude-dir test 16921 text files. 14173 unique files. 7043 files ignored. github.com/AlDanial/cloc v 1.88 T=35.06 s (354.1 files/s, 160714.9 lines/s) --------------------------------------------------------------------------------------- Language files blank comment code --------------------------------------------------------------------------------------- Perl 315 23880 21499 1180347 C++ 1673 139959 140151 962404 Assembly 351 49707 9182 583298 JavaScript 3935 82192 107644 461467 --------------------------------------------------------------------------------------- SUM: 12414 534479 586681 4513827 --------------------------------------------------------------------------------------- The rest of the output I cut off, as there are ~20 more languages used as well.