366 points · by felipemesquita · 2y ago · 52 comments
The lack of such contributions -in general- or the speed at which they appear, is what leads me to conclude that the Ruby community is slowing down.
In this case, suddenly there's an awesome library for Ruby. Which is fantastic. An achievement to be very thankful for. But "the community" "produced" this months or years after such libs landed for Python, JS, TS, Rust, Go and so on.
Not just ML/AI, same happens for "gems" (Ruby libs) that deal with any new tech. It used to be that any SAAS or startup would offer official Rubygems from the get-go. Often before offering other platforms or languages. Today, when I want or need to integrate something, from notion to slack to cloudflare: no Ruby option or at least no official one.
This saddens me. Ruby is so much more than Rails (for which I can understand the reluctance or "hate"). Ruby is so much nicer to work in than Python and certainly than JavaScript. Ruby could easily have been what Python is today and tens of thousands of developers would be just a little happier than they are now, I am certain.
It’s also recently on the rise in general.
On the one hand, you praise Ruby, and lament that it gains such libraries so much later than other languages.
On the other hand...if you were paying attention to the "Python, JS, TS, Rust, Go and so on" ecosystems, and noticed the ML/AI work, why didn't you create one for Ruby yourself?
I guarantee that whatever answer you give doesn't matter, because every other Rubyist has their own reply. A "community" begins with one person doing the thing.
The average Ruby dev works at a mid to small sized company, probably a startup, and they are usually contributing to some proprietary SaaS product on top of Rails. Progress is always happening in the Ruby / Rails world but it's really slow.
On the other hand, Python has three popular web frameworks and a huge data tooling ecosystem that just keeps getting better. It's just easier to get things done with Python these days and the gap is so huge that I can understand OP.
k
And a community thrives with many one-persons combining their effort and keep doing so.
I have made many libraries (gems), OpenSource. Some paid, many just for the benefit of this community; your implication that I lament but not put my work and effort up is frankly rather offending.
To continue on this lament: libraries in dynamic languages are rather hard to maintain, due to runtime constraints that progress/change over time. And the one thing I see is a dwindling usage. Less issues filed (good! ;), less downloads, less integrations, less praise, etc etc.
The more I pay attention, the more I see the Ruby community dwindling. I hope this is merely Rails dwindling - I frankly won't mind if Rails is replaced -, but I fear that Ruby = Rails in practicality. And that Ruby is on the way to the COBOL or Perl.
This, I lament, because I think Ruby is, in the niche of dynamic scripting languages, by far the nicest, cleanest and fun to work with. It's tooling and syntax far more consistent and sensible than Pythons. It's concepts far better thought out and much nicer executed than PHPs. And, sorry, everything can be better than JavaScript without much effort.
So, to me it makes no sense to make Ruby the next Python or PHP, because it's already much better, IMO. It's just not used as often. One extra person using it, doesn't change that.
And, it makes even less sense to make Ruby more like Go or Rust, because if I need Rust, I'd pick Rust instead of spending years of my life making Ruby more like Rust (i.e. invest in a type system, some compile stuff etc).
And when I need e.g. WASM runtime (in say serverless functions) or integration of some new fancy SAAS, or LangChain alike tooling, why would I poor months or years of effort into building tooling to compile to WASM, build gems around said SAAS, or help with tools like Transformers for Ruby, when I can pick Go or Rust to compile to wasm today, grab the Typescript package for the SAAS today, or learn, use (and dislike) Langchain in python today as well?
That conclusion was apparent awhile ago.
https://trends.stackoverflow.co/?tags=ruby,python,php,typesc...
I mentioned a few already. Some more that I recently ran into, are in the niche of "verifiable credentials", SSI and DIID. A weird niche, but relevant to my current work.
There's plenty of work, references, implementations, type-systems for TS, Rust, Python and even .net. But nothing significant (a very few experiments at most) in Ruby.
There's little support for WASM, eventhough that's a promising tech to run and manage backend stuff as well as maybe someday client-side stuff already. There's little tooling to manage cloud infra in Ruby (Chef and Puppet still chugging along, but hardly as omnipresent as Ansible etc)
PHP, Python, Typescript: typing is emerging everywhere, albeit "bolted on". Ruby has efforts in this direction, but far behind the ones mentioned above.
There's no practical "frameworks" or libraries to make games. Very few frameworks or tooling to build desktop software. There's little effort around architectural concepts like Event Sourcing, Hexagonal architecture, Actors and so on. They are there, but I suspect overshadowed by Rails and far less used and documented than their counterparts in other ecosystems.
I’m not surprised at all that the ruby ecosystem is dying, people have been complaining about its magic-ness for a decade and it’s still a problem today.
Plus a bunch of other stuff[3].
Maybe he solved AI/ML by himself long ago and is using that to be this productive.
[0] https://github.com/pgvector/pgvector
[1] https://github.com/pgvector/pgvector-ruby
https://github.com/ankane/pretender makes it super easy to impersonate a different user in a rails app
https://github.com/ankane/ahoy is first party analytics for rails
https://github.com/ankane/blazer is BI built into rails
https://github.com/ankane/field_test is A/B testing
This kind of stuff is why rails is so productive for a normal web app. Sure, there are better vendor and point solutions for each of these, but the ability to drop in a gem, do some configuration and have a 80% solution lets you ship so. damn. fast.
I still want to try and combine ahoy with a column store in postgres so that we can run the analytical queries straight onto postgres instead of syncing the events to BigQuery.
I've tried using pg_analytics by Paradedb but they don't support json columns, which is necessary with ahoy. Performance wise that would be ideal though.
- Chartkick, a charting library for Ruby
- Ahoy, a Rails analytics library
- Searchkick, a Rails search library
There are over 370 repos in his Github profile...
If you are looking for anything ML related with Ruby ankane has usually had a look already ...