News for hackers. Stuff that matters.
Re:RubyLLM: A delightful Ruby way to work with AI by nextos on Saturday March 15, 2025 @02:17AM (#43370404)
Is position #10 in https://octoverse.github.com/2022/top-programming-languages bad?

It ranks right after Shell (#8) and C (#9). Ruby is still a mainstream language, and it's fairly easy to find a Ruby job. Compare that to Clojure or Haskell.

Re:RubyLLM: A delightful Ruby way to work with AI by josephg on Saturday March 15, 2025 @03:36AM (#43370746)
Compare that to Rust. For all the hype it has, very few companies are shipping products with it. There are a few, but nowhere near as many as are using Ruby.
Re:RubyLLM: A delightful Ruby way to work with AI by Lio on Saturday March 15, 2025 @03:57AM (#43370851)
I get your point but it's a case of right tool for the job. Every copy of Ruby now includes YJIT written in Rust because Rust is the right tool for that task.

It's easy to forget though that number of lines of code required to do something is also a valid metric and Ruby beats Rust on that.

So if you're shipping CRUD web apps that might be a more important metric than say memory usage or CPU time.

Different job, different tool. More people want to ship web apps than write their own JITs.

Engineering is the art of trade offs.

Re:RubyLLM: A delightful Ruby way to work with AI by simonask on Saturday March 15, 2025 @03:50AM (#43370818)
That's probably true, but also a poor measure of success. I bet there are more companies using Ruby than there are companies using C++, too. They fill different niches, and different types of companies deliver very different products using those languages.

The ratio of people who can code in Python or Ruby to people who can code in Rust or C++ is very high.

Re:RubyLLM: A delightful Ruby way to work with AI by jupp0r on Saturday March 15, 2025 @04:11AM (#43370906)
I don’t know why “number of companies using language X” is a metric that is used here. Wordpress is serving 43% of websites on the internet as of 2025, so we should all be learning PHP!
Re:RubyLLM: A delightful Ruby way to work with AI by jupp0r on Saturday March 15, 2025 @04:06AM (#43370886)
You are probably writing this in a browser with Rust code in it.
Re:RubyLLM: A delightful Ruby way to work with AI by meindnoch on Saturday March 15, 2025 @06:08AM (#43371425)
Safari has Rust?
Re:RubyLLM: A delightful Ruby way to work with AI by WJW on Saturday March 15, 2025 @08:12AM (#43372020)
That's very nice, but not in itself a good argument for language use. If you count using a system written in a language, then almost every programmer uses Ruby daily as both Github and Gitlab are written in Ruby. Similarly you probably interact quite frequently with (banking) systems written in COBOL, but nobody would call COBOL a popular language.
Re:RubyLLM: A delightful Ruby way to work with AI by IshKebab on Saturday March 15, 2025 @06:07AM (#43371423)
Yeah but look at the trajectories - Rust is one of the fastest growing languages and Ruby is one of the fastest declining languages.
Re:RubyLLM: A delightful Ruby way to work with AI by someothherguyy on Saturday March 15, 2025 @02:31AM (#43370478)
It has dropped in popularity and has never regained the popularity it once held.

Of the many developers who used to write Ruby (myself included), I would wager not many of those same people still do.

Re:RubyLLM: A delightful Ruby way to work with AI by vidarh on Saturday March 15, 2025 @08:46AM (#43372193)
It's dropped in relative popularity, but the demand feels like it's still increasing to me (been doing Ruby professionally since 2006), just not as fast as some of the other languages.

Keep in mind the number of developers overall is rising rapidly still.