Re: [Jruby-devel] ruby_case for Java camelCase methods

2006-03-31 Thread David Corbin
On Friday 31 March 2006 08:52 am, Thomas E Enebo wrote: >This is prone to the same problem that took us away > from lazy instantiation in the first place. Namely, if > you define a method in Kernel or Object matching the camel > case name that you are hoping will be lazily created, then > met

[Jruby-devel] Re: Performance enhancement: use InstructionBundles as a linked list

2006-03-31 Thread Charles O Nutter
I added a couple additional quick interpreter optimizations this morning. After running some numbers through, I saw that we're creating roughly 170 times as many InstructionBundle objects as there are unique AST nodes in the system. I knew this was wasteful when I wrote it, but I figured now is a g

Re: [Jruby-devel] Partial Marshal fix.

2006-03-31 Thread Thomas E Enebo
HEH. I just noticed the marshal_load/dump is commented out in Ruby. -Tom On Fri, 31 Mar 2006, Ola Bini defenestrated me: > Hi. > > This patch creates a _dump-method for Time that matches what Ruby 1.8 > creates. The code is created by looking at time.c in the Ruby distro. > I have also added

Re: [Jruby-devel] ruby_case for Java camelCase methods

2006-03-31 Thread Thomas E Enebo
This is prone to the same problem that took us away from lazy instantiation in the first place. Namely, if you define a method in Kernel or Object matching the camel case name that you are hoping will be lazily created, then method_missing will not be called. Perhaps, this is ok for came

[Jruby-devel] Partial Marshal fix.

2006-03-31 Thread Ola Bini
Hi. This patch creates a _dump-method for Time that matches what Ruby 1.8 creates. The code is created by looking at time.c in the Ruby distro. I have also added some methods to support marshal_dump later on. What's missing is a correct implementation of _load in Time, but that will come soon

Re: [Jruby-devel] ruby_case for Java camelCase methods

2006-03-31 Thread David Corbin
On Thursday 30 March 2006 10:21 pm, Charles O Nutter wrote: > That's a possibility. > > def method_missing(sym, *args) > camel = to_camel(sym) > super unless respond_to?(camel) return super unless respond_to? camel > send(camel, *args) > end > I'm sure that's what you meant :) > On

Re: [Jruby-devel] JRuby 0.8.3 Released

2006-03-31 Thread Werner Schuster (murphee)
Charles O Nutter wrote: The fix was to also set self on the adopted thread's frame and evaluator. I would LOVE to commit this fix right now, but SF CVS is still down. So here's the changed code. With this fix, your test case runs successfully. I built a custom jruby.jar with your new code,