DEV Community

Discussion on: Dual-booting Rails 7 & Kemal (a Crystal framework)

Collapse
 
jwoertink profile image
Jeremy Woertink

This is pretty sweet! I especially think this could be useful for maybe a team trying to gain a little extra performance without having to migrate an entire Rails stack over to something new. Thanks for writing this up!

Now the next step is to get a Ruby gem that ports Rack functionality in to Crystal somehow so you can just mount a Kemal engine 😂

Collapse
 
seesethcode profile image
Seth T.

This approach is more efficient than using an engine because it skips the interpreter process of Ruby entirely, that's why I did it this way. I won't lie though I considered the engine first because it wouldn't require running NGINX locally. I have an ORM working in parallel with AR, so my next article is going to be around how to make that happen. That's where I think a gem may come in handy, and I've considered writing a gem that hooks into Rails so when the Rails generators are used it'll also generate models with the attributes into the crystal folder