How to compare standard libraries by size for different languages
I looked at it on www.ohloh.net/ and it said it was about 30,000 lines of javascript, when I got tired of swirling to wc it said about 5,000 lines (weird inconsistency, maybe test suites, etc.? ).
I thought it wasn't that strange as the javascript from what I've heard has tons of fun dynamic tricks, so you can probably get away with a small library.
But then I thought about other high level languages that have big standard libraries and wondered how big the standards are for python / ruby / haskell / pharo (smalltalk) / * ml / etc. (libraries are not shaken to the extent of its detachable)
Somebody knows? Any details (comments / space / lines of code, lines of test code, lines in language by lines in ffi / bytecode) are appreciated!
edit: ps. ever since I started asking about jQuery as a bonus, if you could list the size of the mega-frameworks, megaframewok provides so much that people using the x-mega-framework in the y language can sometimes refer to programming in xy or even x and then on y (i.e.: qt, jQuery, etc.).
a source to share
In Pharo printing:
|i|
i := 0.
SystemNavigation default allBehaviorsDo: [:each|
each selectors do: [:selector |
i := i+((each sourceCodeAt: selector) lineCount)]].
i.
leads to:
- PharoCore-1.1-11326 updated to 11334: 367231
- Seaside-2.8.4: 473368
- Pharo-1.0 with Suixo base base: 558656
- Seaside 3.0a5: 408019
This includes method comments and I'm not sure what's going on with traits.
a source to share
Perhaps it should be fair to compare JQuery to other javascript libraries like ONLY. I would like to think that this took into account who you are talking about.
jQuery, PRODUCTION (24KB, Minified and Gzipped) or (155KB, Uncompressed Code)
jQuery UI, full Minified 200kb
Prototype, Size: 128kB
Script.aculo.us, Size: 63kB
mootools, Size: 63kB
extJS, Size: 6.6mB FULL, core 130Kb
Yahoo! UI Library (YUI), Size: core minified 17kb, 7kb minified and gzipped, full 379kb minified, 135 minified and gzipped
Mochikit, Size: 380kB
dojo, Size: compressed (27k)
a source to share