by ersoft · 11y ago · 0 comments
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.
[1] https://github.com/teodor-pripoae/protokol
[2] https://gist.github.com/teodor-pripoae/da785e3985a69555040e
No comments yet.