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).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 calledParallel
, 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).