Live data from Hacker News

The Twisted Way

glyph.twistedmatrix.com

31–32 of 32 posts

Re: The Twisted Way

#31
post #30
post #21

Earlier quoted context omitted.

"Hard to read" is subjective; many Twisted afficionados, myself included, strongly disagree. What impact do you feel the destruction of locality has, specifically? Do you feel @inlineCallbacks and Corotwine answer these issues?

Destroying locality makes the program very difficult to read for anyone other than the person who wrote it. I've been there before and done that. I've written Z80 assembly code where functions had more than one entry point as well as exit point. Sometimes I didn't bother to keep a stack at all. Spaghetti code. I was proud of it at the time. Not so much now. My understanding of Corotwine and greenlet is that they're b…

It looks like Guido van Rossum has posted a proposal for adding asynchronous I/O support to the core Python libraries.

http://thread.gmane.org/gmane.comp.python.devel/136422

This will certainly improve the situation with interfacing different Python libraries together if it gets adopted. I still don't think asynchronous APIs are as easy to use as blocking ones, but I guess I've said enough about that already :)

Re: The Twisted Way

#32
I used Twisted in 2005 to develop and server and agent infrastructure.. Portions of the system are now in Java, but the distributed agents are still in Python and out there in production..

I am currently not using Twisted for anything, but often think that things I'm currently working on would be easier if done in Twisted.

I came to Twisted after 5 years of doing non-blocking servers in C with libevent (or hand rolled event loops). So I didn't have to wrap my head around don't call us, we'll call you aspect. I'm currently using Tornado for a websocket based service, but will probably use Twisted again for my next Python project.

Post reply on HN