4 ms·
Mongrel2 isn't written in Ruby. It's written in C: http://mongrel2.org/doc/tip/docs/manual/book.wiki#x1-110002 http://mongrel2.org/doc/tip/docs/manual/book.wi
by basil 16y ago
Mongrel2 isn't written in Ruby. It's written in C: http://mongrel2.org/doc/tip/docs/manual/book.wiki#x1-110002 http://mongrel2.org/doc/tip/docs/manual/book.wiki#x1-110002
- grrrrr 16y agoIn which case I am remiss, although at time if writing it says here http://en.wikipedia.org/wiki/Mongrel_(web_server) http://en.wikipedia.org/wiki/Mongrel_(web_server) "Mongrel is an open-source HTTP library and web server written in Ruby by Zed Shaw.".
- ErrantX 16y agoMongrel 1.x is not related to Mongrel2. Mongrel was written by Zed in Ruby. Mongrel2 is a new project.
- dagw 16y agoMongrel and Mongrel2 are two very different projects that have very little beyond their name, author and the fact that they both are servers in common. They share no code and have very different designs and goals.
- yatsyk 16y agoI believe they share some code (http parser)
- thomasz 16y agowhich is written in Ragel and compiled to a C state machine, if I remember correctly
- masklinn 16y agoWell Ragel supports Ruby code output as well (it can generate any of C, C++, Objective-C, D, Java and Ruby). But I'd be surprised if Mongrel used that.
- zedshaw 16y agoSome people do that. It actually was used in jruby, and I think a couple projects generated the raw ruby rather than the C version. Uhm, I want to say Rubinius?
- masklinn 16y agoi don't doubt that, why would ragel generate Ruby code if nobody used it? I just doubt mongrel used ruby ragel-generated code.
- seanmcq 16y agoMongrel2 is a rewrite to be a scalable webserver that's language neutral. Think Apache (without all the pain). /this note is me sharing what I've learned from zed's tweets, I've not played with the software yet, please correct if wrong.