Hacker News new | ask | show | jobs
by ersoft 3893 days 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/

[1] https://github.com/teodor-pripoae/protokol

[2] https://gist.github.com/teodor-pripoae/da785e3985a69555040e