From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: Re: Hack the (init) system! Date: Sat, 26 Sep 2015 12:30:43 -0500 Message-ID: <87bncprsn7.fsf@dustycloud.org> References: <87oahjz05m.fsf@gnu.org> <874mjb0wvm.fsf@netris.org> <87a8t2wfod.fsf@gnu.org> <87k2rertcf.fsf@dustycloud.org> <87h9mh49m2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZftN5-0006BY-Nc for guix-devel@gnu.org; Sat, 26 Sep 2015 13:34:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZftN4-0004i9-GD for guix-devel@gnu.org; Sat, 26 Sep 2015 13:34:51 -0400 In-reply-to: <87h9mh49m2.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Court=C3=A8s writes: > Christopher Allan Webber skribis: > >> I wonder if it's about time that Guile get something along the lines o= f >> a well-supported, general event loop system? > > Sure. My take on this is that we want FRP, as implemented in Sly, or a > synchronous reactive API like HIPHOP=C2=B9. I wouldn=E2=80=99t want Gu= ile to invite > users to use a JavaScriptish asynchronous framework with callbacks and > IoC all over the place. > > Then of course that=E2=80=99s a bit of work, including work to integrat= e that > with ports. > > Ludo=E2=80=99. > > =C2=B9 http://www.inf.fu-berlin.de/lehre/SS13/Sem-Prog/material/HIPHOP.= pdf HIPHOP looks interesting! And Sly is of course great, I'd love to see more Guile programs exploring that design. I haven't thought about what a web application that was Sly-like would look like. Just a side note: I don't know much about what IoC (presumably Inversion of Control) translates to in practice, though I can say that asyncio avoids callback hell pretty well through clever use of coroutines... it reduces some of thes stresses that node.js brings. I wonder if clever use of delimited continuations can allow us to also make things nice. - Chris