From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id CMivJW9ksl/iZwAA0tVLHw (envelope-from ) for ; Mon, 16 Nov 2020 11:37:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GCCrIW9ksl/ZDgAA1q6Kng (envelope-from ) for ; Mon, 16 Nov 2020 11:37:19 +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 1D71494011C for ; Mon, 16 Nov 2020 11:37:19 +0000 (UTC) Received: from localhost ([::1]:36126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kecow-0002pM-2A for larch@yhetil.org; Mon, 16 Nov 2020 06:37:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48100) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kecog-0002lK-DR for bug-guix@gnu.org; Mon, 16 Nov 2020 06:37:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kecog-00038f-41 for bug-guix@gnu.org; Mon, 16 Nov 2020 06:37:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kecog-0004x3-1O for bug-guix@gnu.org; Mon, 16 Nov 2020 06:37:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#44612: Read standard input in `guix repl' Resent-From: Pierre Neidhardt Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 16 Nov 2020 11:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44612 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Bengt Richter Received: via spool by 44612-submit@debbugs.gnu.org id=B44612.160552657418968 (code B ref 44612); Mon, 16 Nov 2020 11:37:01 +0000 Received: (at 44612) by debbugs.gnu.org; 16 Nov 2020 11:36:14 +0000 Received: from localhost ([127.0.0.1]:55268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kecnu-0004vr-89 for submit@debbugs.gnu.org; Mon, 16 Nov 2020 06:36:14 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:34043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kecnq-0004vY-9Q for 44612@debbugs.gnu.org; Mon, 16 Nov 2020 06:36:12 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id D0556E0010; Mon, 16 Nov 2020 11:36:03 +0000 (UTC) From: Pierre Neidhardt In-Reply-To: <87blfx1wmf.fsf@gnu.org> References: <87h7ptzj8t.fsf@ambrevar.xyz> <20201113190830.GA2995@LionPure> <87blfx1wmf.fsf@gnu.org> Date: Mon, 16 Nov 2020 12:36:02 +0100 Message-ID: <87wnylbkkd.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.4 (++) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 2.4 (++) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 44612@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: o4DjERpcCiyX --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Hi, > > Bengt Richter skribis: > >> On +2020-11-13 10:41:38 +0100, Pierre Neidhardt wrote: >>> `guix repl` is a fantastic, hassle-free tool to bind Guix with >>> third-party languages. I've done it here: >>>=20 >>> https://github.com/atlas-engineer/nyxt/blob/2-pre-release-4/libraries/o= spama/ospama-guix.lisp > > I recommend using =E2=80=98guix repl -t machine=E2=80=99 Looks like `-t machine` has the same issue. This does what I want: =2D-8<---------------cut here---------------start------------->8--- $ echo "(display \"Hi.\\n\")" | guix repl -t machine /dev/stdin Hi. =2D-8<---------------cut here---------------end--------------->8--- This does not: =2D-8<---------------cut here---------------start------------->8--- $ echo "(display \"Hi.\\n\")" | guix repl -t machine=20=20 (repl-version 0 1 1) Hi. (values (non-self-quoting 2052 "#")) =2D-8<---------------cut here---------------end--------------->8--- > and keeping the REPL process around instead of respawning it for every > expression. At first glance, we would want to do this indeed. But in the case of Nyxt, there would be no point when to terminate the process, so it would be around for the whole time Nyxt is running, which may not be desirable. Alternatively, I could simply keep it alive for a given duration (1 minute?) and automatically spawn it if the process is dead. Any recommendations? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+yZCISHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/PYEH/idb2ePvYX2y4ClOV8lVSLTHRHSBCjqI uLTg+yM9ix8F/dot+1Z2rtGcu63RwKsJOnNHQkk9hCPpcrS9BwnMiyiqlGkYoqqz k10AjBrruCV4qd9DhRTASag2SS1M8P/JlK/4MrxAhUAFqF1A+KjgvBaPoPOmzE/F oVCTM7MoB9L7OkDC+PZKy78VRBZfy4ucFpztGE+g2iU5Aw6L3tBkGt+li/dHukIv Oc4/jak76WX30tUnWZiy+c8NoxLCcfu5+3v1oGj698+Q/diwyHEs+FUvuMAMCcI1 EZ+6QsU2xJK92J2f8k2TL5bHbNG5FvnYC4Vi3ZDj8ZY1UpvBFlZOc2Y= =lBW5 -----END PGP SIGNATURE----- --=-=-=--