3 ms·
"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
by sandstrom 5y ago
"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/ https://stdgems.org/
- nerdponx 5y agoPython 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-from-the-standard-library/1704 https://discuss.python.org/t/pep-594-removing-dead-batteries...
- Eric-Guo 5y agoRuby 3.2 will having much shorter default gem list https://github.com/ruby/ruby/blob/master/NEWS.md https://github.com/ruby/ruby/blob/master/NEWS.md Just waiting another year!
- nfm 5y agoFor diff, see: https://github.com/ruby/ruby/commit/a91605c9dafe70a95a1c4a02f265ba8f3280124b https://github.com/ruby/ruby/commit/a91605c9dafe70a95a1c4a02...
- jupp0r 5y agoI was always under the impression that the quality of stdlib was much better than other languages (especially the documentation).
- ljm 5y agoEnumerable 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.