From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0BSmH+h6YGJ8FgEAbAwnHQ (envelope-from ) for ; Wed, 20 Apr 2022 23:28:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id UNu5H+h6YGKtHQAA9RJhRA (envelope-from ) for ; Wed, 20 Apr 2022 23:28:08 +0200 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 2CFC61C12C for ; Wed, 20 Apr 2022 23:28:05 +0200 (CEST) Received: from localhost ([::1]:54494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhHrn-0002Cb-Kt for larch@yhetil.org; Wed, 20 Apr 2022 17:28:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36296) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhHrl-0002CG-BA for gwl-devel@gnu.org; Wed, 20 Apr 2022 17:28:01 -0400 Received: from sender4-of-o50.zoho.com ([136.143.188.50]:21018) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhHrj-0007LX-JX for gwl-devel@gnu.org; Wed, 20 Apr 2022 17:28:01 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1650490075; cv=none; d=zohomail.com; s=zohoarc; b=PWgS/jFCHfKclDRclMHCVvmvNos4OzjwF6uK5QyqdDLq6lrpFNzn72bzfjZ3P8Lr4m2rQazLG49lXiQzxbA2vy1TBNvz9OXE2N7f0c96Ii0UEI/fNEGb+rMykfkVNT1xwKho6lmsdeYl0lP5/S8dpHijkyIPo4WCXsX/ZFVWNi4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650490075; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=QhqsG9BS5tAGFt/bL9sFrgwda52V33VlDurtHNEKA0w=; b=VGHB86788MPvJO8OdsWcp2OSqRpZr0M94TIZ2HekufrUR1gI2IXzNblOEG1SgwP5c1+/357GIvCBh9UTzrKhRmiQVzjX7hWdtzjFckp952tO5z2CWeGx85f8Wh2Bbx4U/IdZ3k2wRJsoNn5xM7i/JiQ6IMGOE+n2ht+9GV+HTcM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1650490075; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=QhqsG9BS5tAGFt/bL9sFrgwda52V33VlDurtHNEKA0w=; b=SMdrblEpFZHPkxG39RlUXL8x/rUwKjKXvR93s/DqYf/V8TCtcef3OrbZ3Yf17NWt rbDe5QdkrlsbL4exCyApJLl2G0cNoCW+pMhZfN0+qy9BsUieGLMJslhqya+KWAXDNLf TurDfX5+A8LzmONvUg0T0jtaP3trnQPWzxCVX1gU= Received: from localhost (i5E862DCC.versanet.de [94.134.45.204]) by mx.zohomail.com with SMTPS id 1650490071445114.47267627278711; Wed, 20 Apr 2022 14:27:51 -0700 (PDT) References: <87h76oo26s.fsf@laura> <87r15srshn.fsf@elephly.net> <87ee1rohrk.fsf@laura> User-agent: mu4e 1.6.10; emacs 28.0.50 From: Ricardo Wurmus To: Olivier Dion Subject: Re: Guile code snippet Date: Wed, 20 Apr 2022 23:21:37 +0200 In-reply-to: <87ee1rohrk.fsf@laura> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Message-ID: <87ilr3sawb.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External Received-SPF: pass client-ip=136.143.188.50; envelope-from=rekado@elephly.net; helo=sender4-of-o50.zoho.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: gwl-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gwl-devel@gnu.org Errors-To: gwl-devel-bounces+larch=yhetil.org@gnu.org Sender: "gwl-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1650490088; 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:dkim-signature; bh=QhqsG9BS5tAGFt/bL9sFrgwda52V33VlDurtHNEKA0w=; b=EBz/UeQbAimOS2gx02rrUU1lIypsWz3ybkFkaS8cDZm1XzYsgGmkhl/x8df8XrLp32diQl Hrmj3UWXqDkb3IEneG0Ni4SeNLdEo/xDakMObycfYBlrgKEUfypd6e5exlCeU6GmETd+Tz F5S+awUmyrpbDXUH5SG7rs2aROYo/XjG5IugQHyQIw1l12WdXCo8aid+P9+AJSWGN6sax1 irsHYTZgUKb/vLMapKVHm62lD1ujU8hHFb2UR3K0fkaFx0uJbFX9ot18/CAn0SmZNsRuaI Zf8JsyvzfNBu4oXEq4sSGnK6RJ8+kawhrP773/LVmrrjFuiFTc4OqBBges1Q+w== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1650490088; a=rsa-sha256; cv=pass; b=sfm3ZvRi140CYHnWEYRZ9l+D3g/wGTVM6HAO2IGFQ8ONO4Q3XQuJg82bEjzXU8jH7ggWwK DOu5Ts+zDLszmOh4arzc+U6+QlFbDRPHfsISei9J2ZXCRBjFRf/V/+DJT9MnkhV/LPKm9T Af8KR7VNdEALySkJcogW12yZkldxJIPgvIn6nodJ7o11XvufHWnMbbBZ3YaD2RCcv5rtxn W4QPOl0MkWJis1r3DtM++z0Nq8w5om5AZk1D9JDs1E8DcM04s5DV70cPtDVjZm4DOB6Nlu 9FguKPTSW6wMfUDedsZxINsFl6lIMsyUHDXuE+W7NaUpSzQl3k4pFJ/9YnclJA== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=SMdrblEp; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elephly.net header.s=zoho header.b=SMdrblEp; arc=pass ("zohomail.com:s=zohoarc:i=1"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of "gwl-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="gwl-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 2CFC61C12C X-Spam-Score: -4.54 X-Migadu-Scanner: scn1.migadu.com X-TUID: IbLvn8xA3MXS Hi Olivier, > and when I try the guile shebang: > # /bin/guile { (display "foo") } > > | ERROR: In procedure %resolve-variable: > | Unbound variable: ungexp This is now fixed with commit dceec9ecb9e24252ab9130f7a3626c00b2ff1a68. I added a new test that checks the generated code when using a custom interpreter. Previously, it only checked that the interpreter was extracted correctly and code was generated at all=E2=80=A6 The problem was that we accidentally wrote code to a file that was supposed to be evaluated so that its *result* could be written to a file. It wrote: (apply system* (append (list (string-append (getenv "_GWL_PROFILE") (ungexp (sanitize-path (symbol->string name))))) =E2=80=A6)) =E2=80=A6instead of: (apply system* (append (list (string-append (getenv "_GWL_PROFILE") "/bin/guile") "-c") =E2=80=A6)) The cause was the use of a macro. It is now implemented as a procedure. It works with the custom interpreter, but also direct Scheme embedding works fine: --8<---------------cut here---------------start------------->8--- process run packages "guile" procedure `(display ,name) workflow do-the-thing processes run --8<---------------cut here---------------end--------------->8--- Could you please try again and report back? Thanks in advance! --=20 Ricardo