From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Async DNS lookups Date: Thu, 04 Nov 2010 20:49:51 +0100 Organization: Programmerer Ingebrigtsen Message-ID: References: <35456.130.55.118.19.1288819785.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1288900275 17801 80.91.229.12 (4 Nov 2010 19:51:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 4 Nov 2010 19:51:15 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 04 20:51:11 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PE5pg-0000Pj-Q4 for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2010 20:51:11 +0100 Original-Received: from localhost ([127.0.0.1]:37463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE5pX-0001WO-1Q for ged-emacs-devel@m.gmane.org; Thu, 04 Nov 2010 15:50:39 -0400 Original-Received: from [140.186.70.92] (port=35458 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PE5pN-0001VD-SG for emacs-devel@gnu.org; Thu, 04 Nov 2010 15:50:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PE5p5-0000tX-8Y for emacs-devel@gnu.org; Thu, 04 Nov 2010 15:50:15 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:41351) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PE5p4-0000tG-VB for emacs-devel@gnu.org; Thu, 04 Nov 2010 15:50:11 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PE5oy-0008Kv-FH for emacs-devel@gnu.org; Thu, 04 Nov 2010 20:50:04 +0100 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Nov 2010 20:50:04 +0100 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Nov 2010 20:50:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEX09PbNzdOdnaM7Oj9h YGYKCQ10dHr////+//4JekSdAAACS0lEQVQ4jXXUwW6jMBAAUJOuthxjQ1GO2ElRjivG5l5woz2X OOdiqL+g2uRIpZXCZ++EAKFVdy5R/DL2MJ5Ajtc4dfPABXI8UiaoxxtlAMDSPno4USEozcEYZUo3 gyMmUNqYa1QcvyxHYBV9HuBwg5PgrAYzRn47Q9Dotm72c6D1DUpcF0O5lF4zynGvCZjCWpU5PF+B TfDW/x5U/5FSwa/g0Q1c1ne6B85GIF7iLlAlhTFSVdiIAUihLpAnTpW8toJPUPfQuF2RiXUuxpYQ sqnXCLVwOq93mDBB0NxhzwthneNWTE1syUKHeBelzJkV0Ry8onq8HJN7Fmult61+FumjyhRUnkjE 7T464jH5YPYNVESI2UW1hJAIy+KQE/YVSGQyW0v+KYP0URzSxuWC8+UXqPcya3aWs60328rjJCqN 1NLFtGtnGSGnkTEg8clX586bgGm9YbWpdO64f+4+3AghFOnSkwzAveLktnKAyOwfMiacFdL9bru2 0wPg8DjQWjtb6C3CuRkAb/RFFCCx67BqO3I/AEUoqztQmXPaRxgzRHgZmneFc9LYjrR+N0DygfD0 Q0MiNtZHOA7QUBxCuQghF4lbLbHeEWwNUobr/slj7nfjGQ1WqvI7/AMmWDH3T/czKLK/2CunnVve d5/hjzEZ7mW9p3a+VZG+G/laS8cjiP0BHMomDUwaB6Xka8j8zZSRq+zNHOJASWwNPIXDA2ptVfpo XuIAZIMjCUMGS3QFvwKzj4MM+hjuo8WxYNuF4KsFpfNXxvfxX/gHmq5GDzc4H0wAAAAASUVORK5C YII= Mail-Copies-To: never X-Now-Playing: Don Cherry's _Blue Lake_: "East" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:kPp2pQZlUIVE1rYBJYcXhyrJr2M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132370 Archived-At: Stefan Monnier writes: > I.e. you'll probably want to use some new variable, very similar to > pending_funcalls, but for "pending_c_funcalls" so that the pending calls > can first do some C preprocessing to turn the C result data into Lisp data > and then call the Elisp callback. So -- what I'm getting from this is that: 1) The normal Lisp functions (like Fcons) can only be used in the main thread, 2) so we need a new list, pending_c_funcalls, which might perhaps not be a Lisp thing at all, but would be (for instance) a chained struct containing pointers to the callback Lisp_Object data, as well as a place to stash C values and a mechanism to say what these C objects are, so that they can be converted to Lisp_Objects, and 3) nobody has done anything like this in Emacs before? :-) -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen