From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Async DNS redux Date: Mon, 06 Feb 2012 22:12:10 +0100 Message-ID: <877gzzd5ud.fsf@gnus.org> References: <87ty3494yb.fsf@gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1328562755 21884 80.91.229.3 (6 Feb 2012 21:12:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Feb 2012 21:12:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 06 22:12:32 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RuVrP-0002Yn-22 for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 22:12:27 +0100 Original-Received: from localhost ([::1]:43114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVrO-0006jh-EK for ged-emacs-devel@m.gmane.org; Mon, 06 Feb 2012 16:12:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:44422) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVrK-0006hX-Gb for emacs-devel@gnu.org; Mon, 06 Feb 2012 16:12:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuVrI-0006aV-Es for emacs-devel@gnu.org; Mon, 06 Feb 2012 16:12:22 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:33299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuVrI-0006a1-8u for emacs-devel@gnu.org; Mon, 06 Feb 2012 16:12:20 -0500 Original-Received: from 93-41-188-50.ip82.fastwebnet.it ([93.41.188.50] helo=rusty) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1RuVrA-0000A7-Kk; Mon, 06 Feb 2012 22:12:12 +0100 In-Reply-To: (Stefan Monnier's message of "Mon, 06 Feb 2012 09:44:08 -0500") User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) X-MailScanner-ID: 1RuVrA-0000A7-Kk MailScanner-NULL-Check: 1329167532.85296@4S1wJv3aRWQ1O74OFzlQYQ X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:148286 Archived-At: Stefan Monnier writes: > Can you explain why you think we need to export the async interface > to Elisp? When doing async URL retrievals, like (url-retrieve "http://fsf.org" #'our-callback) To implement this, `url-retrieve' needs to do the resolving asynchronously, so it would first decompose the URL, then call (dns-resolve "fsf.org" #'continue-doing-the-retrieval), and then contact the host, before finally calling `our-callback'. I don't quite see how to get async chain going without exposing it to Elisp... An alternative would be to make `make-network-process' fully asynchronous, and do the DNS resolving in an asynch manner there. -- (domestic pets only, the antidote for overdose, milk.) http://lars.ingebrigtsen.no * Sent from my Rome