Live data from Hacker News

Tornado 2.0 released

groups.google.com

1–10 of 34 posts

Re: Tornado 2.0 released

#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?

Re: Tornado 2.0 released

#4

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 think that's because Tornado is fantastically simple, and Twisted just isn't.

Tornado is the bare-bones essentials for an async web application server. Twisted is not. You can start with Tornado, then put Django or Twisted on top, but that's optional.

Besides, people are kind of scared of Twisted.

Re: Tornado 2.0 released

#5

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 really like that Tornado is a small, self-contained project. I can read through the whole codebase and understand it.

Twisted is quite large nowadays http://twistedmatrix.com/trac/browser/trunk/twisted

Compare it to Tornado source, which is ~30 Python files https://github.com/facebook/tornado/tree/master/tornado

Re: Tornado 2.0 released

#8

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 think it's safe to say a lot of people inside the Python community don't care either. Twisted is incredibly complex and competition in the asynchronous networking space can only be a good thing.

Re: Tornado 2.0 released

#9

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 don't know if that many people inside the python community care either. Twisted is very big, documentation seriously lacking, and a lot of stuff in twisted not that useful if you only care about http. If you care about http, twisted is not that useful either (there is for example no http 1.1 support client-side AFAIK).

It would also have made porting tornado to python 3 a huge effort (given twisted code size).

Re: Tornado 2.0 released

#10

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.

Why would it switch to Twisted if it has always had its own lightweight event loop that's always benchmarked significantly faster? Same goes for fapws3 and gevent.
Post reply on HN