5 ms·
Ruby 1.9.3 released
- zmanji 15y agoDoes this include the "fast require" functionality that many people were patching into their Ruby 1.9.2 installs?
- goshakkk 15y agoYes. "Library loading or locking in multi-threaded program is improved, for example."
- Sapient 15y agoMaybe there was something wrong with my 1.9.2, but when working with rails projects (rake, rails console etc), this feels a few orders of magnitude faster.
- jstepien 15y agoHere's the whole story behind this speed-up: http://www.rubyinside.com/ruby-1-9-3-faster-loading-times-require-4927.html http://www.rubyinside.com/ruby-1-9-3-faster-loading-times-re...
- Sapient 15y agoThanks, I knew about that when it came out, but before I was able to install it, the preview of 1.9.3 came out - which is when I first noticed just how much faster it was. After running a few tests on the commandline, rake and rails commands are even faster than they were in RC1.
- zanst 15y agoGood news!
- lilpirate 15y agoYeah! I plan on to start learning Ruby.
- deleted 15y ago[deleted]
- algorithms 15y agoWell depends on the purpose. For general tasks it's really vastly superior to most other languages. I personally don't like some things about the syntax but that's just my personal opinion :)
- algorithms 15y agoseriously? downvotes for an opinion different to yours?
- Game_Ender 15y agoGive Python a look as well. Also, never try to embed Ruby in a C/C++ application it's not designed for it.
- Stratego 15y agoruby-build was already updated to support 1.9.3-p0, just clone the latest: https://github.com/sstephenson/ruby-build https://github.com/sstephenson/ruby-build
- bobbywilson0 15y agoif you have ruby-build already installed and you pull, you need to rerun ./install.sh
- kenips 15y agoHomebrew also updated: https://github.com/mxcl/homebrew/commit/ae9b146fb64cc2db914bf2a3253a98580c5dacee https://github.com/mxcl/homebrew/commit/ae9b146fb64cc2db914b... Just brew update and upgrade.
- kron4eg 15y agograts everyone!
- cmer 15y agoI've never been so excited for an unstable release. 1.9.2's require was painfully slow without the patch. edit: by "unstable", I mean a dot.uneven number.
- jstepien 15y agoA 'point release' might be the phrase you are looking for.
- sirn 15y agoActually, Ruby used to follows the "unstable odd, stable even" versioning scheme but they seems to quit doing that since 1.9.1 (since both 1.9.1 and 1.9.2 are declared stable[1]) [1]: http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/326276 http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/... EDIT: provide a source about Ruby 1.9.1
- sandal 15y ago1.9.3 is not an unstable release. Ruby uses the third version number to represent a point release, i.e. you can expect 1.9.3 to be more stable than 1.9.2 over time. I think that the versioning policy did work the way you describe it at one point, but it's no longer the case.
- judofyr 15y agoAs far as I know, x.y.ODD (e.g. 1.8.5) was never an unstable release. x.ODD.z (e.g. 1.7.1) was unstable up until 1.9 though.
- zdw 15y agoApparently the licensing has changed as well - it's now BSD dual-licensed, rather than GPLv2: http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS
- travisjeffery 15y agoThat was on the linked page: > Also the license of Ruby has changed. Previously Ruby has been released under GPLv2 and "Ruby" license. But Ruby 1.9.3 is released under a joint 2-clause BSD license and "Ruby" license.
- SingAlong 15y agoin case any of you are using rvm, "rvm get head" should update the rvm from the git repository and then you can install ruby the usual way ("rvm install 1.9.3")
- mark_l_watson 15y ago+1 Thanks, that was easy.
- tibastral2 15y agoto install with rvm : first update rvm, bash < <(curl -s https://rvm.beginrescueend.com/install/rvm https://rvm.beginrescueend.com/install/rvm) then rvm install 1.9.3 and rvm use 1.9.3 --default And you are on fire
- aeontech 15y agothanks
- tedsuo 15y agoI'm a little unclear about threads in ruby 1.9. I've been told in the past that threads in ruby were problematic. Can anyone illuminate the current state of affairs?
- riffraff 15y ago1.8 had green threads and when the interpreter blocked on some operations it would block all the threads. 1.9 uses native threads but it has a global interpreter lock which has known issues. I am not sure what the improvements to locking in 1.9.3, as the changelog has quite a few commits related to that.
- wycats 15y agoIn both Ruby 1.8 and 1.9, Ruby code will not cause all threads to block when the CPU is idle. However, poorly coded C libraries that blocked on IO without providing Ruby a file descriptor (via rb_thread_select) could cause all threads to block. Those libraries have largely been fixed or replaced (e.g. mysql with mysql2). Ruby 1.9.2 also provides a mechanism for C code to release the GIL if it does not involve any Ruby code, which is used Blythe typecasting code in mysql2, for instance.
- mperham 15y agoThe threading change for 1.9.3 is a scheduler change that just lessens the chance of thread starvation. It's nothing to get excited about.
- kenips 15y agoruby-debug19 is still not updated...
- mrinterweb 15y agoThe lack of a working ruby-debug19 has been the only thing keeping me from using 1.9.3.
- catch23 15y agoJust use pry, it's not really a debugger replacement, but it's useful in most cases that ruby-debug19 would be used. http://rubygems.org/gems/pry http://rubygems.org/gems/pry
- mrinterweb 15y agoI've used pry. I like pry, but it really does not fill the need of a debugger.
- petercooper 15y agoA couple of weeks ago I did a post looking at 1.9.3 and 1.9.4 and the differences involved (including a video presentation by Yugui): http://www.rubyinside.com/ruby-1-9-3-introduction-and-changes-5428.html http://www.rubyinside.com/ruby-1-9-3-introduction-and-change... Now, plug alert.. I'm having a 2 day 50% off on Ruby 1.9 Walkthrough to celebrate: http://www.rubyinside.com/19walkthrough/ http://www.rubyinside.com/19walkthrough/ .. Yes, totally a plug, but there isn't any more up to date walkthrough of 1.9 (which includes 1.9.3) so I'll take my chances ;-)
- piggity 15y agoRuby 1.9.3-rc1 (and presumably -p0) fixed all manner of memory leak issues I was experiencing in Rails apps (Ruby 1.9.2-p290 + Rails 3.1 + Passenger 3.0.9 + Nginx). This was on top of the loading slowness of Ruby 1.9.2 with Rails. Went from leaking MBs per request to no leakage for days.