3 ms·
We've been happily using Crystal in production at Heii On-Call (free website / cron job monitoring, free critical alerting to iOS/Android apps, on-call scheduli
by compumike 3y ago
We've been happily using Crystal in production at Heii On-Call (free website / cron job monitoring, free critical alerting to iOS/Android apps, on-call scheduling) [1] specifically for higher-throughput components of the overall system, such as the API server [2] and the system that continuously does website monitoring [3]. For context, we do use Ruby on Rails for the main website frontend.
Really I find Crystal to be so much more ergonomic and pleasant to use than Go or Rust, though I could see that being a matter of opinion. Very concise, very readable, very fast once compiled.
Porting utility classes from Ruby is so easy too. I end up spending more time porting unit tests than porting the underlying code. And the testing story (Crystal's "spec" [4]) is really nice.
If you want to try Crystal without installing anything, I made a "crystal-docker-quickstart" project template you can clone [5]. You can safely try out Crystal and have your first static binary compiled in about 15 seconds via something like:
git clone https://github.com/compumike/crystal-docker-quickstart.git my_app
cd my_app
./d_dev
make && out/my_app
Lastly, I've found that the Crystal community [6] is small but friendly and helpful. It's at that magical stage of an open source community where people are extremely competent and responsive, but not (yet?) burned out from dealing with so many people.
[1] https://heiioncall.com/ https://heiioncall.com/
[2] https://api.heiioncall.com/ https://api.heiioncall.com/
[3] https://heiioncall.com/outbound_prober https://heiioncall.com/outbound_prober
[4] https://crystal-lang.org/reference/1.8/guides/testing.html https://crystal-lang.org/reference/1.8/guides/testing.html
[5] https://github.com/compumike/crystal-docker-quickstart https://github.com/compumike/crystal-docker-quickstart
[6] https://forum.crystal-lang.org/ https://forum.crystal-lang.org/
- Alifatisk 3y ago>Really I find Crystal to be so much more ergonomic and pleasant to use than Go or Rust, though I could see that being a matter of opinion. That's very faschinating to read! > Very concise, very readable, very fast once compiled. Can I get a perspective on how fast we are talking?