Sunday, June 16, 2013

[Rails] Re: Autload thread safety in Ruby 2.0?

Here's a link that's a little more current that sheds some light on the issue: https://github.com/rkh/rack-protection/issues/45

On Saturday, June 15, 2013 9:10:10 PM UTC-4, Josh Jordan wrote:
Jose Valim implies that autoloading is threadsafe in Ruby 2.0:

The issue with this approach is that it is not thread-safe, except for latest JRuby versions (since 1.7) and Ruby master (2.0)
 
http://blog.plataformatec.com.br/2012/08/eager-loading-for-greater-good

However, the autoload bug ticket filed against Ruby (http://bugs.ruby-lang.org/issues/921) was closed and refers to a forum post wherein Matz recommends not to use autload (http://www.ruby-forum.com/topic/3036681).

Does anyone have any light to shed on this discrepancy? 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/10b01939-6267-4347-b32b-7b52c31e4f85%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate