From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2AVhB33pmmCDYAEAgWs5BA (envelope-from ) for ; Tue, 11 May 2021 22:30:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +B7wAn3pmmCMMQAAbx9fmQ (envelope-from ) for ; Tue, 11 May 2021 20:30:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 97E0514C49 for ; Tue, 11 May 2021 22:30:52 +0200 (CEST) Received: from localhost ([::1]:36630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZ1n-0000OZ-M9 for larch@yhetil.org; Tue, 11 May 2021 16:30:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZ0w-0000BT-9k for guix-devel@gnu.org; Tue, 11 May 2021 16:29:58 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37342) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgZ0u-0005ty-Qq; Tue, 11 May 2021 16:29:56 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=33104 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgZ0t-00007m-88; Tue, 11 May 2021 16:29:56 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxime Devos Subject: Re: FYI: guile-scheme bindings to GNU Mach and the Hurd References: <87eeeq7awi.fsf@dismail.de> <228176b60edf4487b41da867d3fe8b74cbf64b16.camel@telenet.be> <87r1io5076.fsf@gnu.org> <1ba5e5147ae377d0e301863f8e794fe5b92b6a04.camel@telenet.be> <877dkbesf2.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 =?utf-8?Q?Flor=C3=A9al?= an 229 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 11 May 2021 22:29:53 +0200 In-Reply-To: (Maxime Devos's message of "Thu, 06 May 2021 22:58:07 +0200") Message-ID: <87o8dhvwse.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620765052; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=O0NJv3rV+sEW9QDMRIw4vlccDzQd2aV1oXBSj5kVc0A=; b=I4ZjoCDMAR6zljhWw3Jljv9SXR9BQqYgPWc5zE9yrFqKnJfnNTzoVChsNcdMGf/SkfsgI0 V+MOB9SlZb+b7iiIdE0VxWRXuVWT3lHoDFHWHoj6AeqX+fRk4yB/j73YOu4QRF9HvHJHRx 6gKrFsHqZ4BWOCmw3x1XzwV6mCX9+7lKupoEaRo/5O+OORAUZgKiOcJo8QckQAKD3SNPsI n+k8wgm1spRG8BFB38gjN78NXyivpomUfpWnDWJf9Ve1Y9cW1jNzfUdapR6UoQKkZYzbnI HubEkhW89eU0ohspt2/+xqLSEIZ3mdjestKMcT0mB/pb3XOE7z48RVNfWAWQFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620765052; a=rsa-sha256; cv=none; b=TVbyXt0MBMCZ5CbCbacSumuINHsreAgjpKMIYFN6CTmEdTH5OOodM3646/Ec6bxlcVOTni GUYed3M7LNJ4dU+kVn1zH3gtAXdL15guwnl9s0V2CA8NgyG7/ymQ0vvj/vk/ZcIuEWn/Q5 IuurEU51Xa9th0af5mZDkoRIWHEHqV9xhRxE5GGlFOo1Q9iqc7hIdPFKQU2zTyYNzR6Y0f smkoHZm+6FdwREdMMijsfj7UGqa54Lnznmf/KN5UR+y1+UCI7p4C7qmar3Rsal+JEn7wqB JNdZqumk9vbrMvQEuVmJbxnICcxT60xdnkgzxBEYHO041z1VakcgytUxEZL0Ag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -2.95 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 97E0514C49 X-Spam-Score: -2.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: hCOKJQujaeFl Hi! Maxime Devos skribis: > Ludovic Court=C3=A8s schreef op do 06-05-2021 om 18:30 [+0200]: >> BTW, a dream of mine was to implement RPCs in Scheme. That is, you=E2= =80=99d >> have a macro that would essentially do the same work as MiG (the Mach >> Interface Generator), and then we=E2=80=99d pass the bytes directly to >> =E2=80=98mach_msg=E2=80=99. > > The lisp bindings have a binding to =E2=80=98mach_msg=E2=80=99 (not yet s= chemified). > Note that the lisp hurd bindings never use "send-message", instead they > bind the C bindings generated by MiG. > > Also, =E2=80=98implementing RPCs in Scheme=E2=80=99 is something I would = like to see > as well. > > One thing I have in mind, is that MiG RPCs can block, but mach_msg > itself seems to be perfectly usable in a non-blocking way (maybe using > port notifications?). If we use something like guile-fibers, and integra= te > guile-hurd with fibers, then we may be able to do crazy things like: > > * asynchronuously opening files, for free! > * asynchronuous 'accept', for free! > * asynchronuous disk I/O, for free! > * asynchronuous ... practically anything, for free! Oh yes, it has great potential.=20 And it cannot be That Hard (famous last words). Food for thought! > Another possibility is debugging the translator responsible for IP > and at the same time running a web browser (or IRC client, or ...) > based on guile-fibers+guile-hurd. The web browser wouldn't be overly > bothered by the network translator temporarily being paused (for debuggin= g) > and therefore not responsing to the RPCs for 'connect' et al. > > Loading webpages will be delayed of course, but the browser itself won't > hang (so you can still scroll, copy & paste, perhaps browse the file syst= em > ...). This is already possible I believe, but mostly because browsers avoid blocking on networking I/O. Ludo=E2=80=99.