top | item 8080841

What's the most popular Ruby standard library?

82 points| timr | 11 years ago |omniref.com | reply

18 comments

order
[+] bubblicious|11 years ago|reply
I'm really impressed by test_unit hitting #2. Most people who wander off into ruby bring back their TDD enthusiasm to the other languages they use. That's quite an impact for the entire industry when you think about it. Kudos to all involved for that :)
[+] ntalbott|11 years ago|reply
Thanks! The name's "test/unit", but I won't hold it against you ;-). It's pretty sweet that people have gotten so much mileage out of code I wrote, and if it's helped us as a profession - even a little bit - to write better code, I'm thrilled.
[+] TylerE|11 years ago|reply
I wouldn't read that much into it. That will get pulled in as a dep for most packages, including Rails.
[+] treystout|11 years ago|reply
Nice write-up. I find this sort of thing fascinating. When are you guys thinking of tackling more languages? Maybe something that lends itself to static analysis a bit more?

Also how long did that regex take to run on 5.0e8 lines of ruby?

[+] montanalow|11 years ago|reply
About 2 hours. The regex is IO bound, on a text column with 87GB + 68GB postgres toast. It's on a new 1TB 3k iops EC2/EBS ssd volume, which seems to be able to sustain about 20MB/s.
[+] tsigo|11 years ago|reply
If I'm not mistaken, requiring the "date" stdlib wasn't required until Ruby 1.9, so that might account for its low spot on the list. I'm not sure but the same might be true for "time".
[+] InAnEmergency|11 years ago|reply
A little backwards. In 1.9 you don't need to require "date" to use the basic Date class.
[+] lhm|11 years ago|reply
Very interesting. I'm now wondering if Travis CI is collecting any code usage statistics? I'd imagine that they would have a more application-centric view on the rubygems ecosystem. Also, since they are actually executing code, they could potentially collect data on constants and method calls, I believe.
[+] Igglyboo|11 years ago|reply
I think the title is a tad bit misleading, I saw this and immediately thought "Why would anyone even ask? It's obviously rails" then I checked the link and saw that they meant the Standard Library.
[+] dang|11 years ago|reply
Thanks for pointing that out. We added "standard" to the title.