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 take much effort to convert into JRuby. The only thing that could be a problem is the parser itself, which is compiled with a finite state machine compiler called Ragel. The generated C-code is about 1000 lines with loads and loads of gotos, which means it won't translate cleanly to Java. I haven't really found a way to generate Java from Ragel definitions yet, so the options are either to hand craft a Http-parser or find another CC that can generate Java from Ragel-like instructions. Since one of Mongrels main points is the safety and security benefits from a machine generated parser, it seems like it would defeat the purpose of Mongrel to write it ourselves.
Opinions? /O _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel