Hi.

I think it would be hard to get it working with 0.8.3, so you probably
need either CVS HEAD or wait for 0.9.
The sockets will be more or less there in 0.9. thread is no problem.
actually,
the standard code for mongrel will work completely out of the box with
CVS HEAD right now, except for http11, which as
you say is the C extension. If you've downloaded the subversion archive
there is a directory
called ext. Here is the c code. The interface for the http11-module can
be found (you guessed it) in the http11.c file.
All the other C-code is used by this central file.

Doing a C-2-J conversion works in some cases, but this code can't be
converted like that, for the simple reason that the
parser depends _heavily_ on goto's.

The third path, to find a way to generate Java from the ragel
definitions seem to be the best way, the trouble is that
I haven't found any way to do this. And writing our own Java-Ragel is
much, much work.
(The ragel-defs are in http11_parser.rl)

So, right now I don't know exactly how we will manage this.

Regards
 Ola Bini


----- Original Message -----
From: Scott L Holmes <[EMAIL PROTECTED]>
Date: Sunday, June 18, 2006 3:54 pm
Subject: Re: [Jruby-devel] Mongrel support.
To: jruby-devel@lists.sourceforge.net

> 
> Here's the very beginning of mongrel.rb:
> 
> require 'socket'
> require 'http11'
> require 'thread'
> require 'stringio'
> require 'mongrel/cgi'
> require 'mongrel/handlers'
> require 'mongrel/command'
> require 'mongrel/tcphack'
> require 'yaml'
> require 'time'
> 
> So, I have some questions.
> 
> How are we doing with socket.rb? I'm working off of version 0.8.3 
> of JRuby.
> If I start to get the ball rolling with JRuby Mongrel, should I 
> work out of
> CVS? Wait for 0.9?
> 
> 'http11' appears to be the extension. But I'm guessing here as I've 
> notstudied how Ruby extensions work. I'll get back to this in a 
> second.
> not at all sure about 'thread'
> 
> Is 'rbYaml' a drop in replacement for 'yaml'? 'RubyZlib' same 
> question. 
> Sorry about such basic questions. I'm guessing I need to put 
> together a "Ola
> Bini development environment"! Any pointers would be greatly 
> appreciated.
> Thanks for the explanation on the C-code. It really had me 
> confused. I have
> it "loaded' in Eclipse as a CDT project but can't get it to build. 
> Let'stake the first scenario:
> 
> We study the C code and it's Interface. Ruby would be making calls 
> to this
> extension as normal messages, yes? So, write a Java program that 
> providesthe behavior the C extension provides. In this scenario, we 
> have the
> absolute freedom to write absolutely optimal Java. 
> 
> Second scenario: We generate the Java based on the C Sources. I 
> searched for
> several hours yesterday on some time of C2J. There's not much out 
> there that
> has the quality we need for such an important effort. After reading 
> yourpost, I'm convince, that's not the way to go anyway.
> 
> Third scenario: Generate Java from the Ragel definitions.  Could 
> you point
> me to where the Ragel definitions for Mongrel are?  Can we create 
> our own
> Ragel>Java generator in JRuby?
> 
> Scott
> --
> View this message in context: http://www.nabble.com/Mongrel-
> support.-t1804283.html#a4923641
> Sent from the JRuby - Dev forum at Nabble.com.
> 
> 
> 
> _______________________________________________
> Jruby-devel mailing list
> Jruby-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jruby-devel
> 


_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to