Deferred Gratification
Additional Information
This section can be used by the presenter to provide additional information about the talk or tutorial. This might include reference material, links, or details or prerequisites that might be needed for attendees.
Questions / Suggestions
This section can be used by attendees before the event to ask questions of the speaker. This is most likely to be useful for tutorial events.
Reviews / Feedback
This section can be used for the audience to provide constructive feedback after the event. Attendees are encouraged to write reviews or to link to their blogs.
- Terry, I really enjoyed the talk and I share your enthusiasm for Deferreds. I'd like to add a couple of points:
There are various Javascript implementations of Deferred, the first (as far as I know) was in MochiKit and has since been ported to Dojo and Google Closure libraries. I have recently been using it to control the downloading of files (using Ajax) and to limit the number of parallel XHR requests made by the browser. See:
http://svn.mochikit.com/mochikit/trunk/MochiKit/Async.js (Mochikit implementation)
http://bazaar.launchpad.net/~richardw/jarmon/trunk/annotate/head:/jarmon.js#L64 (a deferred recipe which I have used recently)
- I've seen it discussed before on #twisted, but I wondered what it would take to get Deferred included in the Python standard lib. I noticed a Python PEP describing "Futures" which seems to cover much of the same ground as Deferred - although less elegant.
- -RichardW.
- Hi Richard - I only just saw these comments, thanks (I have no idea how long they've been here). Thanks for the javascript pointers. There's also an implementation of
inlineCallbacks for JS that I saw some time ago (Google?). As regards Deferred in the standard lib, have you seen https://launchpad.net/deferred ? It's not the standard lib, but it is at least split out from Twisted, which I guess is a good start.
Thanks for coming to the talk! Why don't you give one next year, and I'll come
