I’m doing #AdventOfCode 2015 with @CrystalLanguage, which is probably my favorite programming language today
3
3
13
Main points: Expressiveness, APIs, very-high level, type-safe barely writing types, performant.
1
0
1
It is also nil-safe, has macros, parallelism, etc.
As a programming language, it clicks to me.
1
0
1
Hm. Interesting. Will check it out. Do you know if you can easily FFI it in Ruby? I have a problem that can benefit from C extensions and I really rather not do C extensions.
2
0
0
In Crystal it is really easy to use existing C libraries.
The language itself uses this feature extensively, it delegates bignums to GMP, uses the Boehm garbage collector, PCRE, etc. Look how high-level you interface with the library github.com/crystal-lang/crys…
1
1
2
As per extracting code to C for performance as you do in Ruby, you just do not need to do it!
In Ruby FFI works and it is portable, JRuby also supports FFI extensions.
1
0
0
Well, I've already started the PragProg book, the Exercism track and soon - AoC 2019. I'll report back in a few weeks ;)
In the meantime, any learning resource you would recommend? Both the book and the docs feel tutorial-ish, making it tricky to grok the full semantics.
8:51 AM · Jan 8, 2021
1
0
2

