From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: SAKURAI Masashi Newsgroups: gmane.emacs.devel Subject: Re: async.el: A simple asynchronous framework for Emacs Date: Wed, 20 Jun 2012 16:24:21 +0900 Message-ID: <20120620072447.573D613C624@vps1.kiwanami.net> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1340177107 6975 80.91.229.3 (20 Jun 2012 07:25:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 20 Jun 2012 07:25:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: jwiegley@gmail.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 20 09:25:05 2012 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 1ShFHg-0007GP-Av for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2012 09:25:00 +0200 Original-Received: from localhost ([::1]:50959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShFHg-0002Hx-90 for ged-emacs-devel@m.gmane.org; Wed, 20 Jun 2012 03:25:00 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShFHc-00028k-2V for emacs-devel@gnu.org; Wed, 20 Jun 2012 03:24:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShFHa-0001Wz-0r for emacs-devel@gnu.org; Wed, 20 Jun 2012 03:24:55 -0400 Original-Received: from vps1.kiwanami.net ([182.48.41.71]:24313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShFHZ-0001Vb-Nx for emacs-devel@gnu.org; Wed, 20 Jun 2012 03:24:53 -0400 Original-Received: from liza2.kiwanami.net (localhost [127.0.0.1]) by vps1.kiwanami.net (Postfix) with ESMTP id 573D613C624; Wed, 20 Jun 2012 16:24:47 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.4 Mule/6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 182.48.41.71 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:151045 Archived-At: Hi John, I'm interesting in your async solution. I have written async codes, deferred.el and concurrent.el, such as the green-thread in Emacs Lisp. At Wed, 20 Jun 2012 00:34:46 -0500, John Wiegley wrote: > : > All I see from the stdout of the child process is around 20 ^G characters= , and > then it blocks waiting for input. However, If I delete *any one* of the = setq > statements above (it doesn't matter which), it works just fine. So it do= esn't > appear to be triggered by the length, or by any special characters. I'm > having a tough time figuring this one out. >=20 > I've also implemented a message-passing scheme so one can implement status > updates for long-running async jobs, but I'm hesitant to enable it becaus= e it > relies on communicating over the pipe. For the long time jobs and fast communication with other processes,=20 I have written a RPC stack on the Emacs: EPC, Emacs remote Procedure Call. kiwanami/emacs-epc =C2=B7 GitHub https://github.com/kiwanami/emacs-epc Currently, I wrote the implementations for Emacs and Perl. Both implementations can act as client and server, such as Emacs client - Emacs server or Emacs client - Perl server. The protocol is the S-exp and asynchronous messaging on the=20 TCP socket, like SWANK in SLIME(http://common-lisp.net/project/slime/). The EPC may be solve the communication with the child process. I have not written the document for EPC yet, if some people are interesting in it, I would write some document. The EPC is used by Emacs DBI, the database management interface. kiwanami/emacs-edbi =C2=B7 GitHub https://github.com/kiwanami/emacs-edbi Emacs DBI (Sorry for Japanese article) http://d.hatena.ne.jp/kiwanami/20120305/1330939440 Thank you, -- SAKURAI, Masashi (family, given) m.sakurai@kiwanami.net