News for hackers. Stuff that matters.
Re:What's new in Ruby 3.1? by cpursley on Tuesday January 25, 2022 @11:55AM (#30074214)
Other than existing code bases, what's the advantage of using Ruby for new projects these days when better tools exist? For example, Elixir - ergonomics of Ruby but cleaner functional approach, distributed and much faster for typical web apps.
Re:What's new in Ruby 3.1? by silentprog on Tuesday January 25, 2022 @02:57PM (#30077161)
Elixir certainly has its use case, but so does Ruby. Things like the huge amount of available gems and a big community, especially combined with a proven framework like Rails really makes it easy to build applications.

Elixir is well suited for a lot of things Ruby is but also has some shortcomings. For instance, the albeit growing community and available libraries is just not on the same level as Ruby. Furthermore the amount of available engineers knowing elixir can be a problem when hiring (ofcourse these can be trained internally) but in general hiring will be a tad bit harder.

Whilst I agree with you on the technical side (language is cleaner and obviously more performant) I do not agree on the statement dat Elixir is a better tool, as with a lot of things in software it depends.

Re:What's new in Ruby 3.1? by Nuzzerino on Tuesday January 25, 2022 @05:28PM (#30079016)
I've had professional gigs spanning Ruby, Elixir, JS, C#, F#, and Python. I've found that Ruby is the most enjoyable to work with and has the easiest learning curve. It's a language that doesn't feel pretentious or dysfunctional, and most importantly of all, I can get shit done with it.
Re:What's new in Ruby 3.1? by herbst on Tuesday January 25, 2022 @12:32PM (#30074830)
> better

Better is a very personal thing :) I like the ecosystem of ruby, always did and never had a reason to change.

Re:What's new in Ruby 3.1? by cpursley on Tuesday January 25, 2022 @02:11PM (#30076510)
Better is server bills that are 1/5 the cost, response times that are 3x faster and reduced complexity (no need for cache or background job servers). Don't get me wrong, I still really like and cut my teeth on Ruby, but there are better options for new projects now.
Re:What's new in Ruby 3.1? by weatherlite on Thursday January 27, 2022 @04:00AM (#30097995)
That's better performance, not better. Server bills is a pretty ridiculous metric to judge by; most of our server bills are due to the development kubernetes cluster (!), e.g our developers cost more in servers than our whole production setup. So what - should we go back to a monolith running locally then? Why use Elixir and not Go or Rust then if it's only performance you care about, Go has great concurrency and better general performance.
Re:What's new in Ruby 3.1? by mega-tux on Friday January 28, 2022 @10:10AM (#30115521)
...and let's not forget that performance could be improved in newer versions so it's a bit tricky to say that A is faster than B, period. Particularly, in this new 3.1 version there is a new JIT (YJIT from Shopify guys) that shows up to 22% on railsbench, 39% on liquid-render. And there are alternative implementations like JRuby or GraalVM with diff. in performance.
Re:What's new in Ruby 3.1? by cpursley on Thursday January 27, 2022 @09:05AM (#30100696)
That's why I said "other alternatives like Elixir". Go is one. Elixir syntax is comfortable (and productive) for Ruby devs and Phoenix for Rails folks. Use what you like.
Re:What's new in Ruby 3.1? by weatherlite on Thursday January 27, 2022 @10:35AM (#30101758)
> Use what you like

May I? Thanks!

Re:What's new in Ruby 3.1? by weatherlight on Friday January 28, 2022 @03:41PM (#30120078)
I agree. I love ruby, it's my first love. I'd probably reach for Elixir/Phoenix for any new web app projects though.

At TuneCore we've already replaced a lot of our micro-services with Elixir/Phoenix/Broadway or Go and we've saved quite a bit of cash of server costs.

Re:What's new in Ruby 3.1? by weatherlite on Sunday January 30, 2022 @06:23AM (#30136021)
Wow at TuneCore, really? This is big.
Re:What's new in Ruby 3.1? by weatherlight on Monday January 31, 2022 @10:58AM (#30149428)
We process billions of dollars a year, with 100s of billions of payments where the average payment is under a dollar.

Right tool for the right job and all that jazz.