to install with rvm : first update rvm, bash https://rvm.beginrescueend.com/install/rvm ) then rvm install 1.9.3 and rvm use 1.9.3 --default And you are on fire
Ruby 1.9.3 released
41–45 of 45 posts
Re: Ruby 1.9.3 released
#42Earlier quoted context omitted.
The lack of a working ruby-debug19 has been the only thing keeping me from using 1.9.3.
Just 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
Re: Ruby 1.9.3 released
#43Re: Ruby 1.9.3 released
#44Earlier quoted context omitted.
1.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.
In 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 Rub…
Re: Ruby 1.9.3 released
#45Earlier quoted context omitted.
In 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 Rub…
rb_thread_select is marked deprecated in 1.9.3... so what's the alternative?