Ruby Weekly
111 FOLLOWERS
A free, once-weekly e-mail round-up of Ruby and Rails news, tutorials, demos and articles.
Ruby Weekly
1w ago
#701 — May 2, 2024
Read on the Web
Ruby Weekly
Fixing a Footgun in ActiveRecord::Core#inspect — Objects have an inspect method that returns a string representation that can be useful in development and debugging. ActiveRecord objects do too, with some added enhancements to highlight what you need to know. It turns out, however, inadvertently calling on ActiveRecord::Core#inspect in production can cause real performance issues..
Andrew Novoselac
Explaining Thruster, 37signals' HTTP/2 Proxy to Speed Up Your App — Available as a gem, though written ..read more
Ruby Weekly
2w ago
#700 — April 25, 2024
Read on the Web
Ruby Weekly
Autotuner: Speed Up Your Rails App with GC Tweaks — You can get some serious performance boosts if you tweak Ruby's garbage collection settings, but there are a lot of them, and it’s easy to get lost. Autotuner is a new tool from Shopify that can provide suggestions on how to best tune things based upon actual data collected while your app is running.
Peter Zhu
Ruby 3.3.1 (and More) Released — Due to the discovery of an arbitrary memory address read vulnerability when user-supplied data is provided to ..read more
Ruby Weekly
3w ago
#699 — April 18, 2024
Read on the Web
Ruby Weekly
Prism in 2024 — Ruby 3.3 included a new standard library called Prism, a Ruby language parser that can be used internally by Ruby itself or as a library by your own code. It’s been a huge effort, and Kevin shares the full story of Ruby parsing (starting all the way back in 1994!) and how Prism is rapidly becoming a key part of the Ruby ecosystem.
Kevin Newton
Memetria: Secure, Scalable Redis Hosting — High performance Redis hosting with large key tracking, detailed metrics, and a superior uptime r ..read more
Ruby Weekly
3w ago
#698 — April 11, 2024
Read on the Web
Ruby Weekly
CrystalRuby: Embed Crystal Code Directly in Ruby — Crystal is a Ruby inspired programming language that boasts a lot of great features and is well worth a try IMHO. One benefit is performance, and this gem lets you write Crystal code, inlined in Ruby, giving you a potential performance boost without a huge shift in syntax. New and YMMV!
Wouter Coppieters
?? Matz on Static vs Dynamic Typing — This article is in Japanese, so get your browser’s translation feature ready. It’s a transcript of th ..read more
Ruby Weekly
1M ago
#697 — April 4, 2024
Read on the Web
Ruby Weekly
Vernier: A Next Generation CRuby (3.2+) Profiler — A sampling profiler that can track multiple threads, GVL activity, GC pauses, idle time, and more. If you’ve been enjoying Tenderlove’s recent livestreams, you may have ▶️ seen it on there. Once you’ve captured a profile, you can view it in a few ways (including on the web), but here’s some example output.
John Hawthorn
Need to Upgrade Rails with Zero Downtime? — Ready for Rails 7.2? Top-notch engineering teams (from startups to Fortune 500 co ..read more
Ruby Weekly
1M ago
#695 — March 21, 2024
Read on the Web
Ruby Weekly
'Chilled Strings': Working Toward Frozen Strings by Default? — A language proposal that would introduce “chilled strings” that masquerade as frozen strings but issue a FrozenError warning when first modified (while allowing the modification). The goal here is to get closer to freezing all strings by default without immediate breakage.
Étienne Barrié and Jean Boussier
The Rails Guides Get a Facelift — Back in 2021, Rails 7.0 landed along with a major spring clean for the Rails brand and site design, but ..read more
Ruby Weekly
2M ago
#694 — March 14, 2024
Read on the Web
Ruby Weekly
37signals Open Sources Thruster — First seen in Campfire, Thruster is a minimal HTTP/2 proxy for production Rails deployments – it runs alongside Puma and offers HTTP/2, Caching, SSL via LetsEncrypt, and static file serving with compression, filling a similar role to Traefik or Caddy (like them, it’s written in Go).
37signals
IRB 1.12.0 Released — One advantage to various parts of Ruby being turned into separate gems is you can upgrade them without upgrading Ruby itself, and IRB is certainly worth upgr ..read more
Ruby Weekly
2M ago
#692 — February 29, 2024
Read on the Web
Ruby Weekly
The Art of Forking: Unlocking Scalability in Ruby — Karafka (a Ruby processing framework for Apache Kafka) requires concurrency and parallelism, which can present challenges in Ruby. The explanations here of how Karafka uses Ruby’s constructs is informative and shows that you don’t necessarily need to use another language to address issues of concurrency.
Maciej Mensfeld
How Does Sidekiq Work? — Sidekiq is the most heavily used background job system in the Ruby space, and this post digs into how it ..read more
Ruby Weekly
2M ago
#691 — February 22, 2024
Read on the Web
Ruby Weekly
A Decent VS Code Setup for Ruby and Rails Development — “Setting up VS Code for Ruby on Rails development can be tricky, so I wrote this article to help. In it, I share different VS Code extensions for things like autocomplete, linting, formatting and more.” Harrison also shares his own Ruby on Rails extension pack that brings together all his suggestions in one install.
Harrison Broadbent
▶ Discussing YJIT with Maxime Chevalier-Boisvert — A 23-minute podcast episode with veritable R ..read more
Ruby Weekly
3M ago
#690 — February 15, 2024
Read on the Web
Ruby Weekly
The Plan for Rails 8 — There’s been a fair amount of buzz around the Rails 8 feature announcements, such as less of a need for Redis, no more Sprockets, Rack 3 support, and more progressive web app features (like push notifications). Exciting stuff.
Brad Gessler (Fly.io)
RunRuby.dev: Run Ruby (and Bundler!) in the Browser — Last week, we linked to Yusuke Endoh's emirb which uses WebAssembly to run IRB in the browser. Svyatoslav Kryukov has upped the ante here, providing more of an editor plus a clev ..read more