librelist archives

« back to archive

The In-Progress Python Library

The In-Progress Python Library

From:
Zed A. Shaw
Date:
2010-07-13 @ 16:51
Hey everyone,

Just in case you missed it, I announced the little python library I
cooked up last night:

http://sheddingbikes.com/posts/1279007133.html

Now, if you were playing with that code, you should fossil up today.  I
found a super bug in the HTTP handler demo that can cause the handler to
go into a permanent loop because it doesn't handle the disconnect
messages right.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] The In-Progress Python Library

From:
Colin Curtin
Date:
2010-07-15 @ 06:37
I pushed a Ruby one here: http://github.com/perplexes/m2r

It doesn't work. I'll track down why tomorrow unless you guys want to
take a crack at it. See you in 9 hours.

Colin

On Tue, Jul 13, 2010 at 9:51 AM, Zed A. Shaw <zedshaw@zedshaw.com> wrote:
> Hey everyone,
>
> Just in case you missed it, I announced the little python library I
> cooked up last night:
>
> http://sheddingbikes.com/posts/1279007133.html
>
> Now, if you were playing with that code, you should fossil up today.  I
> found a super bug in the HTTP handler demo that can cause the handler to
> go into a permanent loop because it doesn't handle the disconnect
> messages right.
>
> --
> Zed A. Shaw
> http://zedshaw.com/
>



-- 
=begin
Colin Curtin
Engineer, Cramer Development
http://cramerdev.com
email:  colin@cramerdev.com
skype: colin.t.curtin
phone: +1.805.694.UNIX (8649)
=end

Re: [mongrel2] The In-Progress Python Library

From:
Andreas Krennmair
Date:
2010-07-13 @ 21:34
* Zed A. Shaw <zedshaw@zedshaw.com> [2010-07-13 19:00]:
>Just in case you missed it, I announced the little python library I
>cooked up last night:
>
>http://sheddingbikes.com/posts/1279007133.html

Nice. :-)

I was so bored today that I translated this code into C++:
http://github.com/akrennmair/mongrel2-cpp

Did some basic tests with it, works fine so far. I'm planning to use this as a 
basis to develop handlers to plug legacy protocols like CGI into Mongrel2.

I also must say that I'm starting to really like the Mongrel2 architecture. 
The use of 0mq as backend protocol feels so... right. Somehow like FastCGI, but 
done right, and with instant scalability built in.

Regards,
Andreas

Re: [mongrel2] The In-Progress Python Library

From:
Sebastian Otaegui
Date:
2010-07-13 @ 23:37
I did some small changes to your mongrel2-cpp


http://github.com/feniix/mongrel2-cpp/commit/e4b28ce4d71feb33c2093e72ef4a9ca3d36b4a27


<http://github.com/feniix/mongrel2-cpp/commit/e4b28ce4d71feb33c2093e72ef4a9ca3d36b4a27>I
also sent you a pull request

On Tue, Jul 13, 2010 at 4:34 PM, Andreas Krennmair <ak@synflood.at> wrote:

> * Zed A. Shaw <zedshaw@zedshaw.com> [2010-07-13 19:00]:
> >Just in case you missed it, I announced the little python library I
> >cooked up last night:
> >
> >http://sheddingbikes.com/posts/1279007133.html
>
> Nice. :-)
>
> I was so bored today that I translated this code into C++:
> http://github.com/akrennmair/mongrel2-cpp
>
> Did some basic tests with it, works fine so far. I'm planning to use this
> as a
> basis to develop handlers to plug legacy protocols like CGI into Mongrel2.
>
> I also must say that I'm starting to really like the Mongrel2 architecture.
> The use of 0mq as backend protocol feels so... right. Somehow like FastCGI,
> but
> done right, and with instant scalability built in.
>
> Regards,
> Andreas
>



-- 
Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc,
informally-specified, bug-ridden, slow implementation of half of Unix.

Re: [mongrel2] The In-Progress Python Library

From:
Zed A. Shaw
Date:
2010-07-13 @ 22:23
On Tue, Jul 13, 2010 at 11:34:24PM +0200, Andreas Krennmair wrote:
> * Zed A. Shaw <zedshaw@zedshaw.com> [2010-07-13 19:00]:
> >Just in case you missed it, I announced the little python library I
> >cooked up last night:
> >
> >http://sheddingbikes.com/posts/1279007133.html
> 
> Nice. :-)
> 
> I was so bored today that I translated this code into C++:
> http://github.com/akrennmair/mongrel2-cpp

Damns, that's tight.  Mind if I pimp it a bit?

> Did some basic tests with it, works fine so far. I'm planning to use this as a 
> basis to develop handlers to plug legacy protocols like CGI into Mongrel2.

Ah, that'll be handy.  I've got a few friends who are hacking away at
this too, connecting it to some pretty odd stuff.  Terminal emulators
and shells and stuff.

> I also must say that I'm starting to really like the Mongrel2 architecture. 
> The use of 0mq as backend protocol feels so... right. Somehow like FastCGI, but 
> done right, and with instant scalability built in.

Exactly, that was my goal and I'm loving how it's turning out.  Totally
architecture and language agnostic and easy to do.  I mean, if I can
crank out a little handler library in a few hours in Python, and you can
do a C++ in about the same time, then it's definitely the way to go.

Keep me updated on this.  Looking very cool.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] The In-Progress Python Library

From:
Andreas Krennmair
Date:
2010-07-14 @ 20:11
* Zed A. Shaw <zedshaw@zedshaw.com> [2010-07-14 00:30]:
>On Tue, Jul 13, 2010 at 11:34:24PM +0200, Andreas Krennmair wrote:
>> * Zed A. Shaw <zedshaw@zedshaw.com> [2010-07-13 19:00]:
>> >Just in case you missed it, I announced the little python library I
>> >cooked up last night:
>> >
>> >http://sheddingbikes.com/posts/1279007133.html
>> 
>> Nice. :-)
>> 
>> I was so bored today that I translated this code into C++:
>> http://github.com/akrennmair/mongrel2-cpp
>
>Damns, that's tight.  Mind if I pimp it a bit?

Please, go ahead.

>Keep me updated on this.  Looking very cool.

OK, I got the first version of my CGI handler to work (same URL as above), but 
it's mostly untested, as I only tried it out with some naive test scripts. 
Also, too much copying of CGI script output is happening right now, I will 
have to clean that up, too.

Regards,
Andreas