Re: SwitchPoint-based constant lookup in JRuby

2011-05-20 Thread Rémi Forax
Le 19/05/2011 23:00, John Rose a écrit : On May 19, 2011, at 11:11 AM, Charles Oliver Nutter wrote: I've just landed a newer SwitchPoint-based constant caching mechanism. https://github.com/jruby/jruby/commit/90be178c96053d201ea2a869bda7feddeedcfa10 Cool! That's one of the key use cases fo

Re: SwitchPoint-based constant lookup in JRuby

2011-05-19 Thread Charles Oliver Nutter
On Thu, May 19, 2011 at 4:00 PM, John Rose wrote: > Cool!  That's one of the key use cases for SwitchPoint envisioned by the > Expert Group.  Please tell us ASAP if something goes wrong with the API! >  (The implementation we can fix, but the API is going more cryogenic as each > day passes.) Onl

Re: SwitchPoint-based constant lookup in JRuby

2011-05-19 Thread John Rose
On May 19, 2011, at 11:11 AM, Charles Oliver Nutter wrote: > I've just landed a newer SwitchPoint-based constant caching mechanism. > > https://github.com/jruby/jruby/commit/90be178c96053d201ea2a869bda7feddeedcfa10 Cool! That's one of the key use cases for SwitchPoint envisioned by the Expert

SwitchPoint-based constant lookup in JRuby

2011-05-19 Thread Charles Oliver Nutter
In Ruby, constants...aren't. They're *mostly* constant, but they have to be looked up dynamically via the lexical scope and self class hierarchy. They can be changed after the fact, and class modifications like mixing in a module later will change the scenery, but these sorts of changes are very ra