Live data from Hacker News

Ruby 3.4.0

ruby-lang.org

191–200 of 282 posts

Re: Ruby 3.4.0

#191
post #85

Earlier quoted context omitted.

huh. I'm not sure if I understood you right, do you script and configure those in ruby, or have you written them in ruby from scratch? Are the sources available to read/learn from?

They're written in Ruby from scratch. Some are available, e.g. the window manager is here: https://github.com/vidarh/rubywm Beware that one of the joys of writing these for my own use is that I've only added the features I use, and fixed bugs that matter to me, and "clean enough to be readable for me" is very different from best practice for a bigger project. I'm slowly extracting the things I'm willing to more gener…

thanks! I love ruby but I'd be afraid to do anything but web backends and shell scripting with it. it's people like you who move language adoption!

Re: Ruby 3.4.0

#194

Earlier quoted context omitted.

Use rvm to install ruby. Ruby dev sucks on Windows, mac only.

What sucks about it?

Most gems with native extensions won't work. Gems that listen to filesystem changes like guard can be buggy. I recommend using Mac or Linux for Ruby on Rails development.

Re: Ruby 3.4.0

#195
post #144

Every year-end, I update my Rails app. Lately, it's been stable, and the updates just improve performance, so it's gotten easier.

I haven’t worked in ruby or rails in a few years but both seem like they’re in great spots and I’ll be spinning up a new project with Rails 8 soon. Hype

Sounds good. Rails is still my first choice for personal development (though I've been using Next.js more often recently).

Re: Ruby 3.4.0

#197

Earlier quoted context omitted.

Obviously you meant for the whole infrastructure: ruby / rails workers, Mysql, Kafka, whatever other stuff their app needs (redis, memcache, etc), loadbalancers, infrastructure monitoring, etc.

This is correct! I thought this was clear but I guess not...

It is not because this is the first time I heard about back to back RPS. Which when come to think of it isn't too bad of a metric from a business POV.

We can also infer that into how much saving YJIT provides. At this point Shopify is likely already getting a return of investment from YJIT.

Re: Ruby 3.4.0

#198
post #43

Earlier quoted context omitted.

1. Wondering 3.4 JIT performance vs 3.3 JIT on production rails. 2. Also wondering what upside could Ruby / Rails gain on a hypothetical Java Generational ZGC like GC? Or if current GC is even a bottleneck anywhere in most Rails applications.

https://speed.yjit.org/ Railsbench is 5.8% faster with 3.4 over 3.3

Turns out YJIT is already 100%+ faster than non JIT in RailBench and ActiveRecord.

Re: Ruby 3.4.0

#199

Earlier quoted context omitted.

I would love that!

DHH is the issue, he means Rails is for one-person framework while he think static typing is only for enterprisey software.

DHH has no say in Ruby development.

That being said, Matz also isn't a fan of static typing. Static type annotations exist in the form of RBS, but no one that matters in the Ruby eco-system is pushing static type annotations in .rb files themselves.

Also, after seeing TypeScript, I'm very happy about that.

Re: Ruby 3.4.0

#200

I want to try Ruby since the news of Rails 8 came out, but it's been so difficult that I just gave up. Installing Ruby on Mac and Windows and actually getting the 3.3 version required for Rails 8 was a huge mission and test of patience because every installer defaulted to older versions of both Ruby and Rails even one month after the release. And yes, even Docker required tweaking to get the versions and I had issues…

I've found the easiest way to have a nice, consistent, working Ruby installation is to install from source. Ubuntu, Debian or Fedora are the easiest. There are a bunch of one-liners to install all the dependencies on various distros floating around. The Ruby website has instructions but the gist of it is, run ./configure, then make, then make install. Actually pretty easy. Gem is great for managing libraries, certainly better than any Python solution for that ecosystem.
Post reply on HN