Hacker News new | past | comments | ask | show | jobs | submit login
Goodbye autoload (nagaokaut.ac.jp)
33 points by emson on March 21, 2012 | hide | past | favorite | 3 comments



Including "[Ruby]" in the title would be nice.


Note that this is from Nov 2011. Since then there's been a massive discussion about handling requires in a multi-thread environment. A lot of the problems with autoload comes from the fact that requiring isn't thread-safe, so if that gets fixed (global lock around requiring files) autoload won't be that bad anymore and might live on for another release.


It is threadsafe in jruby (as of 1.6.6)[1]. It is a decent feature, and it would be great if matz would reconsider.

[1] http://jira.codehaus.org/browse/JRUBY-3194




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: