This is actually a really great release. `&.` removes the really annoying (and slow) `try`. And I think the string literals freezing is going to solve a lot of problems with memory allocations. Check out this PR for Rails that covered a lot of similar performance problems created by too many string allocations. https://github.com/rails/rails/pull/21057/files I wish Rails 5 could go all in on Ruby 2.3.0 and frozen str…
How prevalent is `try` in rails/activesupport? My benchmarks show that the lonely operator is ~2x faster than `try`. I'd expect someone to create a gem that monkey patches `try` for those running 2.3.0.
Ruby 2.3.0 Released
51–60 of 73 posts
Re: Ruby 2.3.0 Released
#52Earlier quoted context omitted.
I could see it making deployment faster or nicer. Imagine being able to compile all the byte code for a Rails app locally and just shoving that up instead of waiting on bundling and all that. Also I think this would make possible hot code upgrades which are cool but probably more work than their worth. Unless you can build smart hooks into background job and web server libraries that only change the byte code in betw…
After reading the patch that introduced the byte code compilation it seems what I was hoping to use it for are clearly not goals of the project: https://bugs.ruby-lang.org/issues/11788
Re: Ruby 2.3.0 Released
#53ruby-2.3.0.tar.bz2 does not seem to have /ruby-2.3.0/bin/ruby ?
Re: Ruby 2.3.0 Released
#54I seriously saw this and thought it might be the reason for the ruby-colored banner. facepalm
Re: Ruby 2.3.0 Released
#55Earlier quoted context omitted.
After reading the patch that introduced the byte code compilation it seems what I was hoping to use it for are clearly not goals of the project: https://bugs.ruby-lang.org/issues/11788
I'm not sure the prospects are so bleak. I made some tests and I could run the compiled code on another machine with a different directory structure. See https://ilconnettivo.wordpress.com/2015/12/25/ruby-2-3-0-ins...
Re: Ruby 2.3.0 Released
#56Re: Ruby 2.3.0 Released
#57Anyone knows if Ruby has accepted IBM's contribution of JIT for Cruby?? https://news.ycombinator.com/item?id=10715610 And below is the Presentation from Ko1 on compiling Ruby http://rubykaigi.org/2015/presentations/ko1
(IBMer working on said JIT here) As Chris Seaton points out as well, we're not really open source yet. Working on getting there, but it's going to take time. The important thing now is that we can start talking with the community and making it more likely that when we do get open source, it can happen in a way consumable by the Ruby community.
Re: Ruby 2.3.0 Released
#58with the existence of Perl6, Clojure, F#, Rust, Go, and few others ... For someone who doesn’t know Ruby, why learn it today?
For me: because nothing else approaches it in terms of linguistic flexibility. I learned Ruby about two years ago, after learning...a dozen-ish languages? Something like that. I don't write web applications in it, because Rails grinds my gears for a whole host of reasons, but for my money it is the can-opener language. If I have a problem, I feel like I can generally explore it faster in Ruby (holla, Pry) and build a…
Re: Ruby 2.3.0 Released
#59Nice to see "Did You Mean" suggestions flourishing across various tools now, e.g. Git too. Error messages can be a whole lot more than indecipherable jargon, even for command-line warriors. I'm also looking forward to never writing "if foo && foo.bar" again! Congrats and happy holidays Ruby team :).
Well, git's "did you mean" is probably the most frustrating command line experience imaginable, but it's quite nice in a language!
Tip: run the following to add a 1-second pause between the message and the "fixed" command being executed:
git config --global help.autocorrect 10Re: Ruby 2.3.0 Released
#60I really missed this feature from C# 6.0