5 ms·
Please check crystal [0]. It has syntax inspired from ruby, types are automatically infered, and it supports method overloading and metaprogramming using compil
by ersoft 11y ago
Please check crystal [0]. It has syntax inspired from ruby, types are automatically infered, and it supports method overloading and metaprogramming using compile time macros.
Simple Crystal programs are valid Ruby scripts. I recently implemented a protobuf library in Crystal[1], and while the code for benchmark[2] is 100% valid code (no explicit typing), it runs 10 times faster due to Crystal beeing compiled instead of interpreted.
[0] http://crystal-lang.org/ http://crystal-lang.org/
[1] https://github.com/teodor-pripoae/protokol https://github.com/teodor-pripoae/protokol
[2] https://gist.github.com/teodor-pripoae/da785e3985a69555040e https://gist.github.com/teodor-pripoae/da785e3985a69555040e