close
close

Thoughts on Static Typing in Ruby

Thoughts on Static Typing in Ruby

#716 — August 22, 2024

Read on the web

Weekly Ruby

Thoughts on Static Typing in Ruby

Transformers.rb: Cutting-edge Transformers for Ruby — Ditch Python – great things keep happening for Ruby ML aficionados. Andrew, now widely known for his work on pgvector, has delivered a way to use Torch.rb to consume Hugging Face’s transformer models directly from Ruby.

Andrew Kane

Rails Router Manual — A free online book on Rails router that covers all hits including resources, nested routes, segment constraints, routing issues, etc.

Akshay Khot

💡 Notably, the above book uses the free Rails app Writebook from 37signals.

522de846.png

Optimize Postgres with Crunchy Bridge — Honeybadger moved from self-hosted Postgres to Crunchy Bridge, gaining expert support, saving time on routine maintenance, and simplifying compliance. Learn how Crunchy Bridge can ease your team’s workload so you can focus on growth.

Crispy Bridge sponsor

What about static typing in Ruby? — Noel reflects on his thoughts and feelings about static typing, its limitations and costs. There is no solid conclusion, other than the following East complicated to evaluate but nevertheless deserves reflection.

Christmas Rappin

List of upcoming Ruby conferences — If you want to see what Ruby events are coming up, this great resource continues to be maintained and even has iCal feeds for event and CFP dates.

Jon seduces

BRIEF:

  • Ruby’s REXML XML library seems to be one of those libraries that really needs to be updated regularly these days, with several DoS vulnerabilities discovered and fixed over the last few months. Today, there’s a new one.

  • 📅 If you are determined to attend the last RailsConf of 2025, Ruby Central has opened the sale of “supporter” level tickets. Regular tickets will be available at a later date.

  • Ruby Central’s latest August 2024 newsletter keeps us up to date with their events, as well as work on the RubyGems system.

Should private Also work on constants? — Lucian revisits a proposal rejected by Matz and explains why it deserves to be reconsidered.

Lucian Ghinda

Building a better world bin/dev Script for Railsrun-pty offers some advantages over Foreman, such as the ability to switch between pseudo-terminals for each running process.

Matt Brictson

Rails + AI: Turn your ideas into applications. Book a meeting — Having trouble integrating AI into Rails? We use (OpenAI, Claude, AWS Bedrock, etc.) to build amazing Rails applications. Let’s chat.

reinteractive::Custom AI Integrations with RoR sponsor

🎵 Sonic Pi: Ruby as a composition tool? — If you’ve ever argued that coding is more art than science, here’s your chance to demonstrate that by creating music with Sonic Pi’s Ruby-adjacent DSL. Sean (a music student turned Rubyist) runs through some examples.

Sean Morrissey

📄 A decoupled approach to relaying events between stimulus controllers Justin Searls

📄 Conditionally render a Turbo image shared between multiple views Steve Polito

📄 Configuring SSH Keys for Multiple GitHub Accounts Steven Harman

📄 A look at the migration from Sidekiq to Solid Queue Apoorv Tiwari

🛠 Code and tools

s1rgxgn4bvpnorfsndmb.jpg

sqlite-vec: a vector search extension for SQLite — If using a dedicated vector storage database is beyond your immediate needs, you can now use SQLite for this task. Although it is an SQLite extension, it is easy to use with many languages, including Ruby.

Alex Garcia

Chartkick 5.1: Attractive JavaScript Charts in a Single Line of Ruby — A long-standing library that saves you from fighting with charting libraries. GitHub repository.

Andrew Kane

Free eBook: Postgres Indexing – Create the Best Index for Your Queries — Learn how to make effective index choices for your Rails application. A deep dive into index types, operators, and more.

panalyse sponsor

ActualDbSchema: Maintain consistency of a Rails database schema when switching branches — Migrations can be messy if you switch branches in a Rails application. This project’s job is to clean up that mess. Now includes a web UI to review and manage migrations.

Andrei Kalechka

RubyGateway: Integrating Ruby into Swift — Load gems, run Ruby scripts, and call APIs seamlessly in both directions.

John Fairhurst

  • Solid Cache 1.0 – The Active Support database-based cache store. Now requires Rails 7.2+.

  • Goldiloader 5.3 – Just the right amount of fast Rails loading. Now supports Rails 7.2.

  • Ruby JSON Schema Validator 5.0 – Validate JSON objects against a JSON schema.

  • Premailer 1.25 – Inline CSS in HTML emails. (We use it for Ruby Weekly!)

  • Good Job 4.2 – Postgres-based job queue for Ruby on Rails.

  • Que 2.4 – Ruby job queue that uses Postgres advisory locks.

  • Artemis 1.1 – GraphQL client designed to work well with Rails.

  • redis-rb 5.3 – The Ruby client library for Valkey / Redis.

rss feed