Live data from Hacker News

Tornado 2.0 released

groups.google.com

31–34 of 34 posts

Re: Tornado 2.0 released

#31
post #29

Earlier quoted context omitted.

http://twistedmatrix.com/trac/browser/trunk/twisted/web/_new... I run a web crawler out of Twisted, so I sort of care about HTTP.

I am aware of that code: it is undocumented, and does not have support for things as fundamental as keep alive. The underscoring does not inspire confidence either.

You're meant to use the public API twisted.web.client.Agent (which uses _newclient). If anyone's interested in finishing keep-alive support, the ticket is http://twistedmatrix.com/trac/ticket/3420

Re: Tornado 2.0 released

#32

I know that nobody outside of the Python community cares, but it's disappointing to see that Tornado still doesn't use Twisted for its event handling.

There are some philosophical reasons for not using twisted's io loop (for example, because it uses ctypes to interface with epoll et al, or because of the FactoryFactoryFactory Java envy). As was mentioned already, competition is good.

Twisted doesn't use ctypes to interface with epoll, it uses a Cython module. Also, the Factory stuff in Twisted usually makes sense, as the alternative is worse (some object in a long-lived closure).

Re: Tornado 2.0 released

#33
post #3

I know that nobody outside of the Python community cares, but it's disappointing to see that Tornado still doesn't use Twisted for its event handling.

What advantages would switching to Twisted bring to the Tornado project?

See "if it used Twisted for the event loop and none of the HTTP stuff:" at http://glyph.twistedmatrix.com/2009/09/what-i-wish-tornado-w...

(Some of these things might have been fixed, I haven't checked)

Re: Tornado 2.0 released

#34

I know that nobody outside of the Python community cares, but it's disappointing to see that Tornado still doesn't use Twisted for its event handling.

I'm glad to see that, out of all the top-level comments, the ones about Flask and Jinja2 were not highly criticized, but I will never understand the rather massive butthurt that this community seems to feel over Twisted. Is it because people love Tornado, or because people hate Twisted?

Also, as always, since somebody said "Twisted is big," I'd just like to counter: Django is twice as big as Twisted and nobody seems to mind.

Post reply on HN