Live data from Hacker News

Brubeck: A new Python web framework running on mongrel2

brubeck.io

31–40 of 53 posts

Re: Brubeck: A new Python web framework running on mongrel2

#31
I must say, I did a double-take when I saw the front page of HN today.

I get that it follows the theme of Django and Sinatra. But Brubeck is not a very common name (the musician Dave Brubeck is my second cousin) and I don't normally see the musical Brubecks intrude into "my" domain. :)

Re: Brubeck: A new Python web framework running on mongrel2

#32

I must say, I did a double-take when I saw the front page of HN today. I get that it follows the theme of Django and Sinatra. But Brubeck is not a very common name (the musician Dave Brubeck is my second cousin) and I don't normally see the musical Brubecks intrude into "my" domain. :)

Amazing! I thought you should know that your second cousin inspired my love of jazz as a child, and Paul Desmond convinced me to pick up the saxophone after hearing Take Five. Thus, jazzychad was born.

The world keeps getting smaller and smaller :)

Re: Brubeck: A new Python web framework running on mongrel2

#33

I must say, I did a double-take when I saw the front page of HN today. I get that it follows the theme of Django and Sinatra. But Brubeck is not a very common name (the musician Dave Brubeck is my second cousin) and I don't normally see the musical Brubecks intrude into "my" domain. :)

I did a double-take too, and wondered if this was your creation!

Re: Brubeck: A new Python web framework running on mongrel2

#34
It's the little things that count and I like that out of the box bcrypt is being used in auth.py.

I never got around to playing around with Mongrel2 but always wanted to.

I'm a huge Flask fan and will most likely (after looking through some of the source) be using Brubeck from now on on the Py side of things. It covers the basics very well.

Bravo!

Btw, equally impressive is DictShield.

Will you create any special cases for 'modules/extentions' or will continue to keep things agnostic?

Re: Brubeck: A new Python web framework running on mongrel2

#35

Armin Ronacher—author of Flask and Werkzeug—pointed out earlier on Twitter[1] that (for better or for worse) it doesn't support WSGI. [1] http://twitter.theinfo.org/92202624614539264

WSGI is fine if you're building short-lived, simple request/response style web apps but if you want to do any sort of async messaging, long-polling, or use websockets i.e. a modern web app - then it leaves a lot to be desired. Mongrel2/Brubeck appear to be designed with these considerations in mind.

Re: Brubeck: A new Python web framework running on mongrel2

#37

Earlier quoted context omitted.

Agreed. For a newcommer, the question "which framework is most worth my time investment" has has become rather daunting. Seems like the safest choices are the big ones like Rails or Django, but there always seems to be something tempting and fun on the horizon.

I think it's unfortunate that the power of choice isn't as appreciated outside the Python world but I can also relate to people who feel they have to read way too much stuff. In spite of this, however, Brubeck indeed aims to be a one-stop shop. It uses coroutines + nonblocking I/O to make scaling up easy but it also a web.py style routing system because all of us know this style already.

Choice is great for veterans, but for someone learning Python or Ruby, how do they know what to pick? How to they know that they're not going to bet on a losing horse that stops being actively developed after a while and doesn't do anything for their career. Veterans can afford to play around and test out new frameworks, because they can always fall back to Django or whatever pays the bills, but newbies can't.

Re: Brubeck: A new Python web framework running on mongrel2

#38

Earlier quoted context omitted.

Its relatively difficult to find maintained Mongrel2 Python libraries, but projects like http://wsgid.com/ , https://github.com/rfk/m2wsgi , and (maybe unmaintained) https://github.com/berry/Mongrel2-WSGI-Handler make it fairly easy to run WSGI apps behind Mongrel2. I wouldn't use Brubeck without WSGI solely because I don't want to write an app dependent on its web server.

That's a fair point, but there's a lot to love about Mongrel2!

Agreed. If you limit your application to WSGI then mongrel2 is "just" another high-performance event-driven webserver. To really take advantage of the advanced features of m2 you need a framework that's more closely tied to its model of the world.

(speaking as author of the m2wsgi module linked above)

Re: Brubeck: A new Python web framework running on mongrel2

#39
post #26

Earlier quoted context omitted.

A quick question --- can i say use pymongo in Brubeck and you are saying the blocking nature of pymongo won't affect the async nature of Brubeck ??

I use pymongo with gevent. A small hack is necessary to prevent pymongo from making a new connection for each thread that accesses mongodb (because with gevent, you can have a massive number of threads). I'd imagine the same is true with eventlet.

Do you mind sharing the details of that hack ??
Post reply on HN