Re: [Jruby-devel] Mongrel support.

2006-06-17 Thread Charles O Nutter
I'd say to look at what the other fast HTTP servers are using; jetty and simple are both very fast, and whatever they're using for HTTP parsing might be neatly packaged. I'm sure there's others out there, but those are the only two I know of. Tomcat has improved, but I think it's HTTP parser is not

Re: [Jruby-devel] JRuby, RDoc and speed...

2006-06-17 Thread Charles O Nutter
This is pretty promising; we need to do an audit of how all the core objects are used in various places, however, especially in our implementation of Ruby's hash, so we're not breaking anything; but it has always bothered me that java's hashCode and Ruby's hash were synonymous in JRuby. This looks

Re: [Jruby-devel] Working RubyZlib.

2006-06-17 Thread Thomas E Enebo
On Sat, 17 Jun 2006, Ola Bini defenestrated me: > Hi, boys and girls. > > I found the error, and the reason I couldn't reproduce it... By pure > stupidity I'd managed to checkout a new version of src/lib/ruby/1.8/zlib.rb > which actually was the zlib-library loaded, so I didn't use the same Zlib

Re: [Jruby-devel] Error in TestRubyHash.

2006-06-17 Thread Thomas E Enebo
Funny. About a month ago I fixed this for a test below it for Range (which had the same error). The same Regexps are supposed to hash the same. We will need to fix this. Based on the test itself, it makes me wonder if the hashing behavior changed between 1.6 and 1.8 of Ruby? -Tom On Sat, 1

[Jruby-devel] Mongrel support.

2006-06-17 Thread Ola Bini
Hi, There has been some discussion about the option of supporting Mongrel in JRuby, and how much effort this would take. As some maybe know, Mongrel is mostly Ruby (> 1.8.4), but the http-parser library is writtein in C. I've taken a look at the source code, and as far as I can see, this shouldn't

[Jruby-devel] A really working Signal.

2006-06-17 Thread Ola Bini
Ok, third time lucky, I hope. The last patch for Signal worked pretty well in some use scenarios. There was one fatal flaw, though... It doesn't do ANYTHING if you want to execute the block more than once. Ouch. So solve this, I've devised a solution where a new RubyThread is created each ti

[Jruby-devel] Error in TestRubyHash.

2006-06-17 Thread Ola Bini
Hi, When doing a test of my recent changes with hashCode, I got an assertion failure from TestRubyHash: result = eval("key = /a/; hash = {key => 'one'}; hash[/a/] = 'two'; puts hash[key]") assertEquals("one", result); According to the comments I suspect this is a test of ident

[Jruby-devel] JRuby, RDoc and speed...

2006-06-17 Thread Ola Bini
Hi I've done a few easy things to try to speed up JRuby, when doing RDoc. I have three timings for you today. The first one is C Ruby doing it. The second is recent JRuby without my new enhancements, and the third is my final version right now: [EMAIL PROTECTED] /cygdrive/d/project/jruby $ tim

[Jruby-devel] New version of Signal.

2006-06-17 Thread Ola Bini
Hiya. I've found a new way to invoke the signal, that seems to work better. (for one, I don't get an exception from JRuby when it's called..). So, Tom, could you please try the attached patch+the former signal patch and see if it works on your box? What I did before was to create a Proc obje

[Jruby-devel] Working RubyZlib.

2006-06-17 Thread Ola Bini
Hi, boys and girls. I found the error, and the reason I couldn't reproduce it... By pure stupidity I'd managed to checkout a new version of src/lib/ruby/1.8/zlib.rb which actually was the zlib-library loaded, so I didn't use the same Zlib routines as you did. Anyway, here comes an updated Ru