~/lightning

From Server to Client: Ruby on Rails on WebAssembly

Lightningat WasmCon 2024 · on Tuesday, 2024-11-12· at 16:15· Salt Palace | Level 3 | 355 E-F· [ruby-on-rails, webassembly]
slides:none on file

A minimal Rails app compiles into a single Wasm module and runs entirely in the browser, demonstrated by a Run Ruby Dev playground and a wasm-fire rails toolkit that packages Ruby and gems. Networking uses a service worker acting as the HTTP server and the DB uses a sqlite adapter via a JS shim to call out to browser storage. File storage uses the File System APIs or Origin Private File System; image processing uses wasm ports; offline sync options include ElectricSQL/Pite or CouchDB replication. Mobile Safari stack limits remain an issue.

AI-written summary · about

  1. 0:00Rails on WebAssembly intro
  2. 1:52Ruby’s WASM support
  3. 3:19Rails architecture & WASM
  4. 6:33Live Rails in browser
  5. 8:44How Rails-to-WASM works
  6. 10:07Database adapters & SQLite
  7. 11:34Web server via service workers
  8. 13:18Storage & background tasks
  9. 14:48Performance & bundle size
  10. 16:15Why build this & next steps
  11. 17:19Browser-based Rails use cases
  12. 19:08Closing thoughts & future
  13. 19:36Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.