2 ms·
> Sinatra has been copied/emulated in nearly every programming language, and its clones have also been widely successful. I was just thinking about a Sinatra c
by nathan_f77 9y ago
> Sinatra has been copied/emulated in nearly every programming language, and its clones have also been widely successful.
I was just thinking about a Sinatra clone that works in Crystal, and it turns out that there is one: https://github.com/kemalcr/kemal https://github.com/kemalcr/kemal
I love the idea that you can write almost the same code, and get a small web service that runs 100x (?) faster than the Ruby version.
- smaili 9y agoTheir Benchmarks section comparing Kemal to Sinatra is quite huge.
- nathan_f77 9y agoOh right, I didn't see that on the homepage: http://kemalcr.com/ http://kemalcr.com/ So 44x faster (100238 / 2274). Not quite 100x, but still very impressive.
- cutler 9y agoThat's until you have a significant amount string parsing with regexen in your app. Then Crystal is actually slower than MRI Ruby. Hard to believe for a compiled language but true.