Writing

Blog

Deep dives on the Ruby runtime, Rails internals and PostgreSQL.

Jun 17, 20265 min read

Pitchfork: Making Ruby Faster Through Smarter Resource Management

Pitchfork keeps a warm "mold" process so newly spawned workers inherit compiled code through Copy-on-Write. This post reproduces the effect locally with a small Rack app and a benchmark that drops total worker memory from 365 MB to 100 MB.

rubypitchforkperformanceyjit
Apr 25, 20262 min read

Spinel: The Compiled Ruby

Matz released Spinel, an experimental ahead-of-time Ruby compiler that produces standalone native binaries. In benchmarks it reaches up to 86x the speed of miniruby by eliminating runtime type checks through whole-program static analysis.

rubyspinelperformancecompilers
Apr 12, 20263 min read

Prism for Massive-Scale Code Analysis

Ruby 3.3 adopted Prism as its default parser. With it, you can build robust code analyzers without needing to master RuboCop's complex DSL, and it scales across thousands of files.

rubyprismaststatic-analysis
Mar 31, 20263 min read

You Can Run Ruby in Less Than 150KB of RAM

PicoRuby brings Ruby to microcontrollers with a tiny memory footprint. This quick benchmark compares its RAM usage and execution time against standard CRuby.

rubypicorubymicrocontrollersbenchmarking
Mar 23, 20263 min read

Ruby, Linux and Bluetooth

Ruby talks to Bluetooth devices on Linux through D-Bus and BlueZ. This post shows how to pair a device, discover its GATT services, and subscribe to real-time battery notifications from a plain Ruby script.

rubylinuxbluetoothdbus
Mar 14, 20264 min read

Ruby + SocketCAN: Listening to Your Car's Hardware

SocketCAN exposes the CAN bus as a standard Linux network interface. This post shows how to read real OBD-II vehicle data directly from a Ruby script using nothing but the standard Socket class.

rubylinuxsocketcanobd-ii

Posts go live on LinkedIn first.