[PATCH] Branch and pull-- now with remote
Aaron Bentley
aaron.bentley at utoronto.ca
Tue Jun 7 15:52:12 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
David Allouche wrote:
| On Mon, 2005-06-06 at 09:24 -0400, Aaron Bentley wrote:
|
|>Yes. I've done some thinking about this for Arch, and what I'd like is
|>an interface where "get" produces file-like objects. Each file-like
|>object is will asynchonously download. If there is not enough data to
|>satisfy the read() request, we do select(), and buffer data for other
|>get requests, until select() says there's data for the file we're
|>actually interested in. Lather, rinse, repeat.
|
|
| That looks like it stems from the process handling discussion we had
| about pybaz. I think that is hackish.
Basically, I think asychronous I/O sucks. It's necessary for
performance, but a pain in the ass to deal with. This was an attempt to
provide the minimum intrusion of asynchonicity, and letting most of the
program treat the I/O as synchonous.
| If the point is doing efficient asynchronous networking, which it
| appears to be, why not do it properly, and use Twisted?
Because people I respect have told me Twisted is crack. Didn't you tell
me that?
I also don't like the idea of having to rewrite a program to fit a
framework, which my uninformed impression of Twisted.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCpbSc0F+nu1YWqI0RAr29AJoDwE8GOjcPCWVacEg6wGC1g+LGIACeKHSB
UnM9sv3sstXMqfra0PQDhrY=
=Sey4
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list