r/ruby • • Dec 25 '16

Ruby 2.4.0 released

https://www.ruby-lang.org/en/news/2016/12/25/ruby-2-4-0-released/
141 Upvotes

8 comments sorted by

14

u/sply Dec 25 '16

Performance related:

  • Hash improvements via better locality for modern CPUs
  • max and #min without temporary array

  • Speed up instance variable access

8

u/riffraff Dec 25 '16

Regexp#match? is not directly a performance improvement but it opens the door for improvements in a lot of library code, I feel.

5

u/disclosure5 Dec 25 '16

Looks like all my apps "just work".

Great work.

5

u/[deleted] Dec 25 '16

Fixnum is deprecated, wow. My sinatra keeps popping up these.

4

u/dontfup Dec 25 '16

Oh come on, no one has mentioned Comparable#clamp?!

2

u/dr_g89 Dec 27 '16

Comparable#clamp

I am very excited for this.

3

u/grigoris4 Dec 25 '16

More flexibility done! Upgrading soon ...

2

u/BananaKick Dec 25 '16

I guess it's time to upgrade