Roundhouse: Crystal on Rails revisited

This is a follow up to : Crystal on Rails

Quick start:

curl -sL https://rubys.github.io/roundhouse/browse/crystal.tgz | tar xz
cd crystal
shards install
crystal build src/main.cr -o server
sqlite3 db/development.sqlite3 < db/seed.sql
./server

This is the quintessential Rails blog demo modernized with Tailwind CSS, Turbo Streams, and Action Cable - open multiple windows and make changes and see pages update live. All running as a Crystal application which is automatically generated from the original Rails source.

Benchmark results show high requests/second with low memory usage. There may be opportunities for more parallelism or optimizations - suggestions welcome.

The Ruby JRuby Was Built to Run provides more background from a pure Ruby to Ruby transformation perspective, but the points apply equally to Crystal.

1 Like