Sam Ruby
1.5K posts

Sam Ruby
@samruby
https://t.co/Vfbxo6yzUw Rails Specialist. Open Web Communities. he/him
Raleigh, NC Bergabung Mart 2009
1 Mengikuti3.1K Pengikut

A Rails blog transpiled to JavaScript produces identical HTML. Not similar. Not close enough. Identical. Here's how I proved it and what I found along the way. intertwingly.net/blog/2026/03/1…
English

Proposal: SharedWorker architecture for multi-tab sharing, Action Cable, and OPFS persistence: github.com/palkan/wasmify…
English

Three Tiers, Zero Servers
A Rails blog SharedWorker for application logic, dedicated Worker for SQLite with OPFS persistence, main thread for Turbo and Stimulus. Under 600KB gzipped. No server required.
intertwingly.net/blog/2026/03/1…
English

@bradgessler @kyrylo This link lets you play without installing anything: intertwingly.net/blog/2026/01/2…
English

@kyrylo @samruby He’s transpiling Rails apps into JS so they run in browsers.
intertwingly.net/blog/2026/01/0…
English

I want to see Ruby in the browser instead of this mess and years of kludges.
MDN Web Docs@MozDevNet
JavaScript now has non-mutating array methods ✨ `toSorted()`, `toReversed()`, `toSpliced()`, and `with()` return new arrays instead of modifying the original. No more [...arr].sort() to avoid side effects. Learn more 👇 developer.mozilla.org/en-US/docs/Web…
English

@itsdavidramos no feathers ruffled here. It looks like you are a Claude user? Clone the repository and ask Claude to assess the status.
English

@samruby Oh I know who you are Sam, didn’t mean to ruffle any feathers!
I meant these kind of posts.
The Rails front end story needs more love and attention and your work on it, in my humble opinion, is not being seen enough
English

Beta Ruby2JS Phlex filter: ruby2js.com/docs/filters... ; please let me know if there is any interest. The real phun begins when we get to the point of making a Vite plugin.
English

@itsdavidramos Current status:
github.com/ruby2js/ruby2j…
github.com/ruby2js/ruby2j…
As to visibility: LOL.
pragprog.com/titles/rails8/…
en.wikipedia.org/wiki/Sam_Ruby
English

@samruby Damn, that sounds like something I would most definitely be interested in! Is that prototype somewhere I can look?
I didn't know you were working on all this neat stuff. Man, you need more promotion!
English

@itsdavidramos It is still largely present, but not completed as it didn't seem to generate interest at the time, but I did prototype some things like automatic conversion of Phlex to React.js.
English

@samruby A Phlex filter would be awesome!
I don’t see it listed though, did you remove it?
English

@palkan_tula @palkan_tula I'd encourage you to take a second look. I think I can safely say that useful results can be achieved. intertwingly.net/blog/2026/01/2…
English

@palkan_tula My approach is quite different than Garnet.js / Opal / Ruby WASM. Key is inspecting the JavaScript I'm producing. I'm making rapid progress and will post an update in a day or so. I'd love it if you would continue to follow this, but that's up to you.
English

Rails requires Ruby. Serverless runs JavaScript. Until now, you had to choose.
Introducing Juntos: Rails patterns transpiled to JS. Same code runs in browsers, Node, Vercel Edge, Cloudflare Workers.
intertwingly.net/blog/2026/01/0…
English

@palkan_tula - I've now got a more interesting demo and hopefully more clear positioning.
English

What happens when you transpile a Rails chat app to Cloudflare Workers? D1, Durable Objects, Hotwire—it all just works. intertwingly.net/blog/2026/01/0…
English

This was fun to write. I hope somebody out there enjoys it as much as I did and do: intertwingly.net/blog/2025/12/2…
English