News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Is from Another Dimension by Shorel on Wednesday January 04, 2023 @05:37AM (#34244088)
I'm sorry, I agree it is a beautiful language.

But Ruby is slow. Performance matters. In a world when everything seems to run in cloud servers, efficiency matters.

If you can have 20 times more simultaneous users in the same cloud server by using a different tech stack, there's no reason to keep using Ruby.

For the record, I also think Python is generally slow, but it has improved in the latest version, and the important libraries for Python are written in C++.

Re:Ruby 3.2.0 Is from Another Dimension by chrischattin on Wednesday January 04, 2023 @06:05AM (#34244247)
I guarantee the language is not the limiting factor in a web scaling problem.
Re:Ruby 3.2.0 Is from Another Dimension by berkes on Wednesday January 04, 2023 @07:29AM (#34244768)
Not in the vast majority of practical use-cases anyway.

There'll obviously always be the exceptions like Twitter having to migrate off Ruby (Well rails) because scaling is just too hard. But those are exceptions.

Re:Ruby 3.2.0 Is from Another Dimension by jeltz on Wednesday January 04, 2023 @07:51AM (#34244930)
And Rails back then was extremely slow. There have always been web frameworks for Ruby with way less overhead.
Re:Ruby 3.2.0 Is from Another Dimension by scruple on Wednesday January 04, 2023 @10:18AM (#34246500)
My direct experience with combating scaling issues in Rails applications always comes back to Rails itself. (ab)uses of Active record, specifically. And sometimes they're very hard to detangle. After well over a decade of doing this sort of work I'm simply not interested in seeing yet another Rails mess.
Re:Ruby 3.2.0 Is from Another Dimension by berkes on Wednesday January 04, 2023 @12:50PM (#34248895)
I do agree that Rails is often a cause of bad performance.

Not in the first place because of its own, or Ruby's poor performance, but because it's easy to write horrible code, and hard to write nice code in it. AR is a very leaky abstraction over a DB. A horrible query always a mere has_many, sort or default scope away. It's MVC horribly unsuited to manage and isolate business logic. The result often indeed being code that performs terrible.

Re:Ruby 3.2.0 Is from Another Dimension by yurishimo on Wednesday January 04, 2023 @06:05AM (#34244252)
And then there is PHP... which is also insanely fast now compared to even 5 years ago, it is stateless by default, but you can also run application servers in long threads for even more performance. For 2023, the PHP community is seriously committing resources to making this long running scenario more efficient and performant.

Except for the ML/AI use case, Laravel has more batteries included I would argue than Django. A ton more features when compared to Rails. All of them are first party solutions for things like Auth/Queues/Monitoring/Payments/Testing/Local Development and even some starter kits.

If you're building a new web based company that isn't focused on building the next AI avatar generator, Laravel should be on your radar if you're also considering Rails or Django.

Re:Ruby 3.2.0 Is from Another Dimension by Shorel on Thursday January 05, 2023 @01:34PM (#34264311)
I learned about DB migrations with Laravel. Now I use them everywhere :)
Re:Ruby 3.2.0 Is from Another Dimension by vidarh on Wednesday January 04, 2023 @07:25AM (#34244733)
If anything, the popularity of the major cloud providers is evidence that efficiency in the sense of computing power per dollar matters very little to most, as their pricing is extortionate.
Re:Ruby 3.2.0 Is from Another Dimension by jeltz on Wednesday January 04, 2023 @07:49AM (#34244905)
Ruby is no slower than Python, it is actually often faster. And many of the important Ruby libraries are written in C.
Re:Ruby 3.2.0 Is from Another Dimension by Shorel on Thursday January 05, 2023 @01:37PM (#34264355)
Meanwhile, the world is moving to Rust, Go, Julia, fast compiled languages.

And C++20 is actually very nice to use.

In contrast, these two, Ruby and Python, are slogs.