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: Asynchronous DNS Date: Mon, 08 Feb 2016 18:52:55 +1100 Message-ID: <87pow7ocyw.fsf@gnus.org> References: <87si1gx6wz.fsf@gnus.org> <86y4b5zvzt.fsf@gmail.com> <8760y9kwrk.fsf@gnus.org> <8760y7nag7.fsf@gnus.org> <83oabzzsjq.fsf@gnu.org> <87fuxazkfe.fsf@gnus.org> <83io25yeqk.fsf@gnu.org> <87h9hpnreg.fsf@gnus.org> <83y4b0wi7m.fsf@gnu.org> <87si17evk6.fsf@gnus.org> <83twlnvcz2.fsf@gnu.org> <87vb63obm3.fsf@gnus.org> <87r3gqmg6g.fsf@gnus.org> <83egcqtfnm.fsf@gnu.org> <86mvrdmk8p.fsf@realize.ch> <877fihjo4m.fsf@gnus.org> <86io20n3xn.fsf@realize.ch> <8760y055l1.fsf@gnus.org> <8660xzmyyr.fsf@realize.ch> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454918038 11725 80.91.229.3 (8 Feb 2016 07:53:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 07:53:58 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 08 08:53:49 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aSgdp-0004dh-2F for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 08:53:49 +0100 Original-Received: from localhost ([::1]:42190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgdo-0006dr-AK for ged-emacs-devel@m.gmane.org; Mon, 08 Feb 2016 02:53:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51967) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgdb-0006dg-0v for emacs-devel@gnu.org; Mon, 08 Feb 2016 02:53:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSgdX-0003Gw-Qz for emacs-devel@gnu.org; Mon, 08 Feb 2016 02:53:34 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:33192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSgdX-0003Gs-Jw; Mon, 08 Feb 2016 02:53:31 -0500 Original-Received: from cpe-60-225-211-161.nsw.bigpond.net.au ([60.225.211.161] helo=mouse) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1aSgd4-0005na-75; Mon, 08 Feb 2016 08:53:03 +0100 In-Reply-To: <8660xzmyyr.fsf@realize.ch> (Alain Schneble's message of "Mon, 8 Feb 2016 08:40:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-MailScanner-ID: 1aSgd4-0005na-75 MailScanner-NULL-Check: 1455522783.37241@6ES0tD5PawsBtikdYUF1qg 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:199493 Archived-At: Alain Schneble writes: > Well, back to square /two/ I would say, depending on how you arrange the > squares ;) Because application code would just loose the > async-DNS-resolve benefits. As most of the functions such as > `set-process-coding-system', that would need to block, require only an > initialized socked (and not really a connected one). And if the author > of the code doesn't care, he just accepted that he wrote semi-optimized > async code -- but code that actually works. This doesn't sound wrong to > me. Yeah, that's true. It's less fragile. But I wonder whether being that application friendly can sometimes be a disservice? If you're an application writer, trying to be as async as possible (that is, after all, why you're using :nowait 'immediate), would you prefer that random functions block without telling you, or that they error out? Hm... I don't know what I'd prefer, really... *ponder* -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no