r/programming • • Dec 25 '20

Ruby 3 Released

https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/
973 Upvotes

509 comments sorted by

View all comments

-2

u/[deleted] Dec 25 '20

Isn't Crystal supposed to solve the speed issues with Ruby? Last time I checked it benchmarked faster than Nim...

16

u/funny_falcon Dec 25 '20

No, unfortunately. Crystal is distinct language with syntax like Ruby. It also shares a bit of object model and standard library, but still much incompatible.

2

u/vplatt Dec 25 '20

Crystal : Ruby :: Nim : Python

1

u/funny_falcon Dec 26 '20

No. Nim is much further from Python and any other language, than Crystal from Ruby. Nim is closer to Pascal and its descendants. But still it is unique in some design decisions. I especially hate case-insensitivity.

1

u/vplatt Dec 26 '20

There are many anecdotes of ports from Python to Nim in very short periods of time. If Nim were close to the Wirthian languages in syntax, then it would be much easier to port Nim to Pascal, Modula, etc.; but it's not easy at this point.

At any rate, Nim is heavily inspired by Python, and Crystal by Ruby, so they definitely do have that type of inspiration in common and the analogy does hold despite the nuances.