What's new in #Ruby 2.6
https://medium.com/tailor-tech/whats-new-in-ruby-2-6-a4774f3631c1
The JIT compiler and Array#to_h change are exciting. I could get rid of some intermediate arrays in Mastodon with that... Unfortunately, we're gonna have to support Ruby 2.3, 2.4 and 2.5 for a while so that's not going to be possible yet
@Gargron damn you older versions
@Gargron I wonder if the to_h change could be packaged as a gem to backport it to older versions of ruby
@leifurhauks Is it possible to avoid an intermediary array without compiler support? Of course it could just polyfill the same method signature but without the performance improvement...
@leifurhauks I looked at how it's done and it's essentially an each_with_object so easy to backfill, and I could easily rewrite those calls to use each_with_object directly anyway...
@Gargron @leifurhauks it's like when half things in JS library tend to be written in JS (like most of the Promises) or when polyfilled generators based on switch are faster than native ones.