TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ruby 2.5.0 Released

431 pointsby pherefordover 7 years ago

25 comments

skywhopperover 7 years ago
When I discovered Ruby 12 years ago, it was an amazing moment. All the features I loved from my previous favorite languages Perl, Smalltalk, and Scheme in one place, but with a much more reasonable syntax, a far more robust standard library, a complete and dead-simple packaging system, and a practical and portable runtime. The fact that it still feels magical, fun, practical, and pragmatic all at the same time while progressing and improving step by step each release after all these years is a truly amazing feat, especially when you compare it to its peers.<p>So congratulation and thanks to Matz, and all the other Ruby contributors for creating and maintaining and growing and improving this amazing language that&#x27;s still my favorite. 2.5 looks great, and I can&#x27;t wait to see what&#x27;s in store for the future.
评论 #16005113 未加载
nileshtrivediover 7 years ago
Ruby may not be the cool thing in town it once was, but it remains my preferred language for prototyping ideas - purely because of its elegance and expressivity. It truly delivers on its fundamental goal of &quot;developer happiness&quot;. A lot of ideas from Ruby have gone to other languages (CoffeeScript, Elixir) and many web frameworks are modelled after Rails.<p>Congrats and thanks to all the core devs! :-)
评论 #16003797 未加载
评论 #16004504 未加载
WJWover 7 years ago
I started using Ruby only in April this year due to starting at a new job. Having used and&#x2F;or dabbled in C, Java, Python and Haskell before (amongst others), I find it super interesting to see how Ruby manages to take some interesting parts from each and manages to integrate it into a very pleasant programming experience. Also the rspec testing library is nothing short of magic, none of the compiled languages have anything that even comes close IMO.<p>For the cases where you have a tight loop taking up 99% of the actual CPU time it is also relatively easy to hook in C or Rust or whatever. Also, sometimes you hit hardware performance limits regardless of the language you use. We have some streaming download servers written for 99% in Ruby using the libCurl bindings that and they easily manage to fill up the 5 Gbps pipe* per server that AWS gives us.<p>* You can get 20 Gbps for some instances, but only to other instances in the same group. The biggest to the &#x27;outside&#x27; seems to be 5 Gbps.
评论 #16005227 未加载
评论 #16004648 未加载
评论 #16005608 未加载
评论 #16004219 未加载
geraldbauerover 7 years ago
FYI: I&#x27;ve collected articles &#x2F; blog posts about what&#x27;s new in Ruby 2.5 over at the Ruby Advent Calendar [1]. The list so far includes:<p>- Standard Gems 2.5.0 - Default Gems, Bundled Gems &#x2F;&#x2F; by Jan Lelis, Idiosyncratic Ruby<p>- 10 New Features in Ruby 2.5 &#x2F;&#x2F; by Junichi Ito, Ruby programmer @ SonicGarden.jp<p>- 10 More New Features in Ruby 2.5 &#x2F;&#x2F; by Tom Lord, Software Developer from London<p>- Performance Improvements in Ruby 2.5 &#x2F;&#x2F; by Jesus Castello, Ruby Guides<p>- yield_self in Ruby 2.5 &#x2F;&#x2F; by Michał Łomnicki<p>- Improved stacktrace display in Ruby 2.5 &#x2F;&#x2F; by Michał Łomnicki<p>- Ruby 2.5 Series &#x2F;&#x2F; by Amit Choudhary, Mohit Natoo et al @ BigBinary<p>[1]: <a href="https:&#x2F;&#x2F;planetruby.github.io&#x2F;advent2017" rel="nofollow">https:&#x2F;&#x2F;planetruby.github.io&#x2F;advent2017</a>
greysteilover 7 years ago
Nice to see the 3x3 work continuing to go well with that 5-10% speed up. For anyone who hasn’t seen it, Ruby declared a target for Ruby 3.0 to be 3x faster than 2.0.<p><a href="http:&#x2F;&#x2F;engineering.appfolio.com&#x2F;appfolio-engineering&#x2F;2015&#x2F;11&#x2F;18&#x2F;ruby-3x3" rel="nofollow">http:&#x2F;&#x2F;engineering.appfolio.com&#x2F;appfolio-engineering&#x2F;2015&#x2F;11...</a>
评论 #16004043 未加载
elliotlarsonover 7 years ago
Oh, it looks like Bundler didn&#x27;t make it into the standard library for the 2.5 release. The commit to bring it in was reverted just before the release, with very little explanation. I mean, it&#x27;s not like `gem install bundler` is that hard to do, but I&#x27;d be curious to hear why.
评论 #16008249 未加载
artellectualover 7 years ago
Was waiting for this!! Super happy about this. I’ve come to expect this every year now at this time.<p>Ruby is still one of the most productive languages out there. I just love it. It gives me great joy that 10 years ago I chose Ruby to be the language for my future.<p>My wish this coming year is to be able to contribute more to the Ruby ecosystem.<p>Btw I’ve also built something using MRuby this year. The whole ecosystem is just great.
评论 #16005187 未加载
CiPHPerCoderover 7 years ago
Ruby&#x27;s SecureRandom is finally sane to use? It&#x27;s like Christmas or something!<p><a href="https:&#x2F;&#x2F;bugs.ruby-lang.org&#x2F;issues&#x2F;9569" rel="nofollow">https:&#x2F;&#x2F;bugs.ruby-lang.org&#x2F;issues&#x2F;9569</a><p>Now to update the &quot;how to generate secure random numbers in various programmming languages&quot; documentation.
taf2over 7 years ago
Anyone else noticing syntax ruby parser regressions?<p>e.g.<p><pre><code> class FooBar &lt; Foo prepend_before_filter only: [:create, :destroy] { request.env[&quot;hello.skip_timeout&quot;] = true } end </code></pre> was valid in ruby 2.4 but invalid now in 2.5
评论 #16009626 未加载
评论 #16005026 未加载
iovrthoughtthisover 7 years ago
rescue on do blocks!!! Wooooo. Merry Christmas!<p>Ruby is a joy to use.
评论 #16003831 未加载
评论 #16005785 未加载
raitomover 7 years ago
Every year it&#x27;s the Christmas gift I wait the most!
burlesonaover 7 years ago
There&#x27;s no such thing as a perfect language, but Ruby is a very nice one, and the community is just such fun. The tradition of major version releases on Christmas Day each year is one of my favorite things!<p>Cheers to Matz and all the Ruby contributors :)
hit8runover 7 years ago
I absolutely love ruby and its community :) My software goals for next year: - Start a new platform built on Ruby&#x2F;Rails. - Contribute to the ruby eco-system. - Enjoy it.
drchiuover 7 years ago
Love Ruby. Back a few years ago before I learned to program properly, I found a lot of the syntax of various languages to be hard to understand. I was not trained as a computer science major, mind you. Nonetheless, the syntax of the Ruby language made things easy enough for me to digest. Heck, even ended up starting a Ruby based software company won’t employees — something I couldn’t have imagined doing even a decade ago.
jphover 7 years ago
Test Driven Development (TDD) gets a huge improvement with the new coverage capabilities for methods and branches. Thanks Ruby team!
评论 #16004348 未加载
drishover 7 years ago
&gt; Mutex is rewritten to be smaller and faster. [Feature #13517]<p>This is something I find to be using quite a lot, great to see this.
taf2over 7 years ago
looks like we have some gem authors that need to update their stuff...<p>google-protobuf-3.5.0-universal-darwin requires ruby version &lt; 2.5, &gt;= 2.0, which is incompatible with the current version, ruby 2.5.0p0<p>[update]<p>looks like this is resolved by forcing bundler to compile instead of grabbing the precompiled versions.
nazgobover 7 years ago
Many thanks to all who contributed!
onetwotreeover 7 years ago
Hey they finally fixed the issue with SecureRandom using OpenSSL instead of the OS CSPRNG implementation!<p>I worked for a company a few years ago that made security software, with Ruby as a primary language, and this caused no end of frustration...
rajangdavisover 7 years ago
I had installed Ruby on a Windows 10 machine a few weeks back and had some issues setting up Ruby 2.4.*.<p>I forgot where the issue came from (I think it was some issue with bundler or ruby gems), but can I install 2.5 without breaking my set up?
knodiover 7 years ago
Jebus!! this is about Ruby 2.5.0 release not about why you think Ruby sucks.
artskyover 7 years ago
Awesome! I&#x27;m excited about the new yield_self method, and the general functional programming direction that Ruby is moving in.
igraviousover 7 years ago
Thank you Matz &amp; co. &lt;3
pankajdohareyover 7 years ago
i loved ruby and i still do but my focus has now shifted to scheme&#x2F;clojure and lisp family dialects like racket, and i don’t see a reason to return or move to anything else it feels like my search is over.
评论 #16005164 未加载
评论 #16006529 未加载
sadiqmmmover 7 years ago
Awesome! :)