[jruby-dev] A Patch for Alias

2007-08-22 Thread dreamhead
Hi! I worked on AR-JDBC recently. assert_queries in abstract_unit.rb doesn't work in JRuby. The reason is that 'execute' method is aliased. After debug, I find removeCachedMethod in CacheSite isn't invoked (remove in CacheMap) when method is aliased. I can't give the exact reason because some cod

Re: [jruby-dev] Moving to Java 5?

2007-07-24 Thread dreamhead
+1 2007/7/24, Charles Oliver Nutter <[EMAIL PROTECTED]>: - Annotations for specifying method bindings. This could largely eliminate the need for manual method-binding code, as well as allow us to split method implementations by arity and even argument type I really like this idea. As we know,

Re: [jruby-dev] A bug about if

2007-07-16 Thread dreamhead
I've committed it to JIRA. http://jira.codehaus.org/browse/JRUBY-1205 2007/7/16, Charles Oliver Nutter <[EMAIL PROTECTED]>: Wow, that's a weird one. Looks like a job for Mr. Enebo...unless you have a patch handy :) Could you file a JIRA? - Charlie -

[jruby-dev] A bug about if

2007-07-15 Thread dreamhead
Hi! Here is a bug from a Chinese Forum.It's the link if you can read Chinese. :) http://www.javaeye.com/topic/101327 if "string" puts "true" else puts "false" end C Ruby: true JRuby: false We know all objects should be true except false and nil, so it's a bug. I have debugged the code. Th

[jruby-dev] Dumping Invocation Callback

2007-07-08 Thread dreamhead
Hi! JRuby has a wonderful idea about method which is to generate method class. We all know that it takes some time to do that, so it's good idea to save the result. In JRuby, DumpingInvocationCallbackFactory is used for this purpose. But the code with which save the result is commented. I think

Re: [jruby-dev] Brand new dynamic STI implementation

2007-07-03 Thread dreamhead
2007/7/4, Charles Oliver Nutter <[EMAIL PROTECTED]>: dreamhead wrote: > Hi, Charlie! > > MethodIndex in compiler is worth considering. > > The following code is from invokeDynamic of StandardASMCompiler. > int index = MethodIndex.getIndex(name); > ... > if (index !=

Re: [jruby-dev] Brand new dynamic STI implementation

2007-07-03 Thread dreamhead
Hi, Charlie! MethodIndex in compiler is worth considering. The following code is from invokeDynamic of StandardASMCompiler. int index = MethodIndex.getIndex(name); ... if (index != 0) { invokeUtilityMethod("doInvokeDynamicIndexed", callSigIndexed); In new MethodIndex, index is always greater

Re: [jruby-dev] Brand new dynamic STI implementation

2007-07-02 Thread dreamhead
Hi, Charlie! You'd better consider thread-safe in getIndex. Ye Zheng -- Everything is simple! - To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

Re: [jruby-dev] About RubyID

2007-06-29 Thread dreamhead
There are many IO operations(database) in mingle test, so the proportion of improvement is decreased. From bench_method_dispatch.rb, the improvement is 5-10%. Of course, it's also a special case. On the other hand, JRuby use intern to compare to String with "==" in many places, so the improveme

[jruby-dev] About RubyID

2007-06-28 Thread dreamhead
Hi! This is dreamhead (one of core developers from XRuby) from ThoughtWorks. I have been working on JRuby performance recently. I just add RubyID into JRuby which is helpful to performance in XRuby. RubyID is similar ID(long) in MRI which use ID to replace String to reduce comparison cost