News for hackers. Stuff that matters.
Re:RubyLLM: A delightful Ruby way to work with AI by Multiplayer on Saturday March 15, 2025 @12:12AM (#43369914)
Saw this gem of a gem on reddit earlier today and there were some trollish comments about no one using ruby anymore blah blah blah which quietly bummed me out. Surprised and Delighted to see it as #1 here on HN tonight!
Re:RubyLLM: A delightful Ruby way to work with AI by adamtaylor_13 on Saturday March 15, 2025 @01:11AM (#43370142)
There’s a lot of folks who get immense schadenfreude talking about things they know nothing about to strangers on the internet who also don’t know anything.

Don’t let it bum you out.

Re:RubyLLM: A delightful Ruby way to work with AI by someothherguyy on Saturday March 15, 2025 @02:02AM (#43370345)
> some trollish comments about no one using ruby anymore

It is somewhat objectively true:

https://octoverse.github.com/2022/top-programming-languages

https://github.blog/wp-content/uploads/2024/10/GitHub-Octove...

It doesn't mean much, and this library can be reproduced in any of those top 10 languages from what I can tell.

Re:RubyLLM: A delightful Ruby way to work with AI by simonask on Saturday March 15, 2025 @03:59AM (#43370859)
Ruby will always have a special place in my heart. I cut my teeth as a young programmer on that language, and I learnt its value (as well as the value of using something else) along the way.

Ruby code can be downright poetic, for better or worse. There's a certain kind of magic to the kind of code it enables. That's not always good, but it _is_ beautiful.

I encourage everybody to read the venerable "Why's Poignant Guide to Ruby" [1] to see what I'm talking about.

I wish Ruby was cross-platform. It still only works on Windows using the MSYS2 emulation layer, and the only reason as far as I can tell is that it committed hard and early to `fork()` as the main way to use multiple cores.

[1]: https://poignant.guide/

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.

Re:RubyLLM: A delightful Ruby way to work with AI by speleding on Saturday March 15, 2025 @02:40PM (#43374386)
Over the last 10 years the number of programmers has grown enormously. So ruby dropping in position does not necessarily imply the absolute number of ruby programmers went down.
Re:RubyLLM: A delightful Ruby way to work with AI by Lio on Saturday March 15, 2025 @03:32AM (#43370721)
It's worth remembering that the trolls that complain about Ruby do so because they care about it.

You'll often see the same names coming back on every post to angrily insist that no one is interested in Ruby

...apart from them obviously because if they didn't they would be busy trolling something else. :P

Re:RubyLLM: A delightful Ruby way to work with AI by bmacho on Saturday March 15, 2025 @04:40AM (#43371022)
> It's worth remembering that the trolls that complain about Ruby do so because they care about it.

I don't think so. I mean there are complains about stuff you care about like people complaining about Healthcare. (edit: there are other forms of caring, see my grandchild comment)

Dissing on Ruby is definitely not this, they are not Ruby users wanting Ruby to be better. They don't even know Ruby apart from dissing on it is socially accepted, and makes them feel good.

Re:RubyLLM: A delightful Ruby way to work with AI by mosselman on Saturday March 15, 2025 @04:57AM (#43371123)
Usually people get huffed up about stuff they care about. Caring doesn’t mean wanting it to be better, it could also mean get worked up about.

Surely a one-off comment about nobody using Ruby doesn’t mean you “care”, but if it is true that it is the same people who keep commenting, they obviously care.

Is it because they are jealous of the beauty of Ruby/Rails, as a Rubyist I’d think so, but who is to say really. Maybe they worked at a company where they replaced whatever their favourite stack is with Rails and they have hated Ruby ever since. It could be anything.

You wouldn’t keep responding to stuff you don’t care about at some level.

Re:RubyLLM: A delightful Ruby way to work with AI by bmacho on Saturday March 15, 2025 @05:00AM (#43371133)
Equating caring and wanting it to be better was a mistake on my part. It made my comment not true, and it made you worked-up. Sorry for that.

All in all, I don't think that other forms of caring apply either. I think that parroting "Ruby is dead" doesn't mean that they care about Ruby, it's just a thing people like to parrot, without the meaning realizing in their heads. A form of bonding, a form of distraction, a form of opening to a social interaction, a form of self-reassurance etc. It is lot of things, and caring about Ruby at all is usually not among those (IMO).

Re:RubyLLM: A delightful Ruby way to work with AI by mosselman on Saturday March 15, 2025 @06:16AM (#43371466)
Haha I am not worked up. I just care it seems.

I agree. Parroting some meme isn’t caring per se. But I was working under the assumption that the statement that it was the same names who keep doing it. If you say “Ruby is dead” 5 times a year it isn’t necessarily “caring” if it becomes 100 times a year there is something else at play.

Re:RubyLLM: A delightful Ruby way to work with AI by IshKebab on Saturday March 15, 2025 @06:04AM (#43371407)
I'm not sure what your point is. I care about Ruby and want it to die because I have worked on the Gitlab codebase, which is written in Ruby. It's a bad language and it stopped me being able to understand behaviours and fix bugs.

In contrast I have also worked on VSCode which is similarly huge but written in Typescript. Faaaar easier to work with, enough that I've been able to contribute a couple of medium sized features and several bug fixes.

So when people say "yeay Ruby" I try to discourage them because I don't want more Ruby code in the world that I might have the misfortune of having to interact with in future.

Re:RubyLLM: A delightful Ruby way to work with AI by steve_gh on Saturday March 15, 2025 @07:31AM (#43371832)
I think you are confusing the beauty and elegance of the language with the crap thatpeople write.

My experience is that the sort of folks who misuse Ruby's powerful features are the sort of idiotes who dont realise that because a thing can be done, doesn't mean that it should be done. These are the sort of people who are capable of misusing most languages.

Re:RubyLLM: A delightful Ruby way to work with AI by elif on Saturday March 15, 2025 @07:51AM (#43371919)
Was it really idiomatic ruby that "stopped you from being unable to understand behaviors"? Or was it unorganized monkey patching?

I'm having a hard time thinking that ruby is difficult to understand, particularly compared to its opposites lisp, erlang, Haskell, e.g. languages that are extremely simple to the point where the burden of complexity is shoved into code space.

Re:RubyLLM: A delightful Ruby way to work with AI by IshKebab on Saturday March 15, 2025 @08:01AM (#43371963)
> Was it really idiomatic ruby that "stopped you from being unable to understand behaviors"?

I think so. I'm not an expert but the Gitlab codebase seems like fairly typical Ruby to me.

Re:RubyLLM: A delightful Ruby way to work with AI by bob1029 on Saturday March 15, 2025 @07:01AM (#43371689)
IIRC Github was originally written in Ruby as well.

Now that they use something "far easier to work with", the UX gets to suffer accordingly.

I've never been in a situation where making the customer happy was synonymous with applying best practices to the tech stack or otherwise making it so everyone and their dog can contribute.

Re:RubyLLM: A delightful Ruby way to work with AI by bullfightonmars on Saturday March 15, 2025 @12:18PM (#43373461)
Github is still rails, but they have layered in some react to the UIs, like the file explorer.

It all seems pretty negative value to me though it’s terribly slow.

Re:RubyLLM: A delightful Ruby way to work with AI by IshKebab on Saturday March 15, 2025 @05:30PM (#43375285)
Yeah Codeberg is significantly faster than GitHub, presumably in part because it's Go and not Ruby.
Re:RubyLLM: A delightful Ruby way to work with AI by remoroid on Saturday March 15, 2025 @08:28AM (#43372102)
No, they complain about it because they care about web development... That should be obvious.
Re:RubyLLM: A delightful Ruby way to work with AI by JasserInicide on Saturday March 15, 2025 @06:02PM (#43375428)
Chaotic neutral take: they're Ruby devs that have a vested interest in gatekeeping newcomers from the language so they have better job security
Re:RubyLLM: A delightful Ruby way to work with AI by jstummbillig on Saturday March 15, 2025 @05:00AM (#43371131)
Ruby, specially with Rails, is particularly suited for AI coding, because of how mature it is and convention over configuration: Most of the important stuff is up to date in the model, and the entire thing comes with a fairy comprehensive set of ideas of how to to be used cohesively to built entire apps.