Crystal 0.27.0 released
crystal-lang.org
crystal-lang.org
FYI for the curious, running crystal in a google cloud function is now as simple as: https://gist.github.com/sam0x17/5b26ffa0ae663f3137fdf6c98256...
- Goals of Crystal over say Ruby? Speed? Safety?
- What drew you to try it?
There's a list on https://crystal-lang.org/docs/ that is less tongue in cheek.
Pascal, Rust, ADA, and lots of others all are (or can be, when programmed properly with comparable constructs) "as fast as C" (and in some cases, e.g. when avoiding aliasing issues) faster.
Crystal certainly has the genes required to be as fast as Go, and I think very few people are unhappy with Go's performance. Currently the major difference between Crystal and Go's single-threaded performance is the GC and thats not too bad. Parallelism is coming soon.
You could say that Crystal and Go (by default) is faster than C (by default) for IO bound workflows because of how IO is handled in Crystal and Go. But most people look at micro-benchmarks which don't reflect the difficulty of achieving C's performance in C.
Crystal https://p.thorsen.pm/f4b376d71d1a
Same applies to any other language.
Great work so far, thanks! Absolutely in love with the language.
> Next releases should enable some stories around parallelism
It's definitely good that languages are adding this but it's a shame they didn't go for %+, %- and %. Some other language (I forget which) uses those and they are a lot more obvious in my opinion (because % means modulo pretty much everywhere and it is essentially a modulo operation).
Out of curiosity, what's the purpose of this change? Style enforcement? Simpler parser?
I favour writing as productive and testing spec as I can and minimal the code smell and don't need colours highlighting in my code.
Beside, having the ability to write pure or system calls in C within Crystal is a big wins.
Are there any notable applications written in Crystal, for reference?
You knew each languages solve different problems in AI or space age.