News for hackers. Stuff that matters.
Re:Ruby 3.1 by sandstrom on Saturday December 25, 2021 @08:56AM (#29683377)
"The following default gems are now bundled gems." Great to see slow removal (or carve out) of rarely used stdlib stuff.

Ruby would benefit from a trimmed down stdlib, where effort could be spent keeping a smaller footprint stdlib more polished than it is today. Turning them into opt-in gems is a good first step.

A few examples:

- `rss` to parse RSS documents/streams

- `win32ole` for Microsoft Windows OLE Automation

- `dbm` for DBM databases

- `abbrev` for finding the shortest unique abbreviation amongst many strings

This page has more details: https://stdgems.org/

Re:Ruby 3.1 by nerdponx on Saturday December 25, 2021 @10:19AM (#29683953)
Python has a similar issue, with lots of so-called "dead batteries" in the standard library.

https://discuss.python.org/t/pep-594-removing-dead-batteries...

Re:Ruby 3.1 by Eric-Guo on Saturday December 25, 2021 @10:29AM (#29684039)
Ruby 3.2 will having much shorter default gem list

https://github.com/ruby/ruby/blob/master/NEWS.md

Just waiting another year!

Re:Ruby 3.1 by nfm on Saturday December 25, 2021 @04:10PM (#29686976)
Re:Ruby 3.1 by jupp0r on Saturday December 25, 2021 @04:26PM (#29687088)
I was always under the impression that the quality of stdlib was much better than other languages (especially the documentation).
Re:Ruby 3.1 by ljm on Saturday December 25, 2021 @05:30PM (#29687612)
Enumerable alone is enough to outclass many stdlibs. Easily one of my fave things about Ruby, compared to dealing with different types of iterable interfaces (and conversions between them) in other languages.