DEV Community

Discussion on: What is your approach to Crystal

Collapse
blankfella profile image
blank

I used Crystal in a small side project, in which I needed CPU intensive work to be done. I wrote my script as a Rake task in Ruby, then wrote my CPU intensive task in Crystal, compiled it, called it through Ruby's system call, using a library for parallelism called Parallel, since Crystal is still not able to do that (yet). all this while writing almost in the same language (syntax).

I would say it's a great combination, and would definitely migrate that side project completely to Crystal, once I can figure out a solution for parallelism (using all CPU cores at once).