From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: Running Compiled Guile Objects Date: Sun, 15 Dec 2024 03:17:57 +0900 Message-ID: References: <87frmroykg.fsf@free-comp-shop.com> <20241214140118.od1H2D00P1Y3F3G01d1JPj@xavier.telenet-ops.be> <20241214155337.oetc2D0091Y3F3G06etclL@albert.telenet-ops.be> <20241214171059.ogAy2D00B1Y3F3G01gAyTM@laurent.telenet-ops.be> <20241214175016.ogqF2D00K1Y3F3G06gqG7h@michel.telenet-ops.be> <20241214184838.ohod2D00D1Y3F3G01hoepQ@baptiste.telenet-ops.be> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9854"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Keith Wright , "hakancandar@protonmail.com" , "guile-user@gnu.org" To: Maxime Devos Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 14 19:18:48 2024 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMWj1-0002QV-IL for guile-user@m.gmane-mx.org; Sat, 14 Dec 2024 19:18:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMWiU-0004Nr-7I; Sat, 14 Dec 2024 13:18:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMWiT-0004Nj-EI for guile-user@gnu.org; Sat, 14 Dec 2024 13:18:13 -0500 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMWiR-0001TA-3M for guile-user@gnu.org; Sat, 14 Dec 2024 13:18:13 -0500 Original-Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7fbbe0fb0b8so1886433a12.0 for ; Sat, 14 Dec 2024 10:18:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734200289; x=1734805089; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4sKNveTJIgAKV2BSZzWTsyUGxXWBoUdq54HcvZS1xbw=; b=JXAEg3vEhR88P3eONahFaKR3+Zoe+MlC2EvcSWnlKoS+wrhmrcy8YvkEnMO802b42y 10xYoGYBhoIdHPn3jYnhHSoahvF051fQSir3rnrCJrcnlqhHsAAgHrBZ0NNDA94lP2Er nwy8TB4e52qN3edAIQk0E4S0OoUbT/X6ckFviO8lkbdoGVPE1axTUWnPQI9GOOIh6ls0 0kVJWBHcITo+XwmVM2CcXUydI4CwUoKdXM/NqrhQCTcQo61tJ9pDtwwF4ukHzlrnnON1 dbI6L7mlcPTHJTs9iIG6O//b5Qp2SpkwASpbdgLB8GBwwSRn1aRo3oEna4wIh4Pbrdv8 RFdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734200289; x=1734805089; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4sKNveTJIgAKV2BSZzWTsyUGxXWBoUdq54HcvZS1xbw=; b=IkHV2aZsYksKDDP7B1Q8c6quqHp00uTNEaHwSn3IT77ienVJguuJQckeLzqev1SSar OZX1RFoF9ngXKG7v3F3VAw/NBIogb1eavXpwWjKgzewF/xP+pnomFqQGZFB+vCQesD3/ yyQ8eN/lgD1G17O8P22fTEixU3I9Cnu8AQ7+bhDgRNHum859h2Ihq0VC8tnjZdQMu8rJ V1I0OVz1tWBiNVuOypIdmsrLzsElvKaAJHy915cMBfgVy34IbECaLQ1/yN+9Qhrdv3wa lebtERDaWMB3C1cAQ8j5JJjHudhV75GGnaEqMGvabAIShMrDO/B0D+AByVvjDKa2w1wM NjXw== X-Forwarded-Encrypted: i=1; AJvYcCWf+ZnMzweTU2yDSx+6JSWI+8/0+gcBLUe71A+sjmu6AuExRUZ/0N9k319oUsDi7jplvmrVMxDgYkuP@gnu.org X-Gm-Message-State: AOJu0Yyk8xbi5Np87LdwlvBNl+AmERr6p/6RJBgj21F0yilYTypjmcDm uS5MGr02OT39HKbeFjYmmWkGvkALCQXcnetBRuzkL+98mZxpS6p14GOxZBerzDFVHQflTo4DZPN 4GW0LLYyEq5iX3fzQqcJvTU9NNtaT2w== X-Gm-Gg: ASbGncuLS1kPX2SYhv1sMYsxHrmslAxXZ3scEzPHybdwYwaYZ9WbFMQDcL7t420oEW+ B+kt8xTkzH1xFaHfYYN3u4uZH631eS2ke8s/riw== X-Google-Smtp-Source: AGHT+IES4yhJRkfgB3d9Gp2jDW78GFMj/Fc/5K/sVVj/WsxV2wHF1QMs7uU5BGZJuY5S4qeXydfBBj2Rbi+XLVOfdc4= X-Received: by 2002:a17:90b:5350:b0:2ee:fd53:2b17 with SMTP id 98e67ed59e1d1-2f290d9883emr11369703a91.29.1734200289533; Sat, 14 Dec 2024 10:18:09 -0800 (PST) In-Reply-To: <20241214184838.ohod2D00D1Y3F3G01hoepQ@baptiste.telenet-ops.be> Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=nalaginrut@gmail.com; helo=mail-pg1-x52f.google.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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19995 Archived-At: I know this mechanism before and I completely agree with what you said. But I'm not sure if it's still the same before verify. Maybe there's order issue in my test sequence. Or I will compile Guile again. BTW, gmail app added it, out of my control. Best regards. On Sun, Dec 15, 2024, 02:48 Maxime Devos wrote: > >> Also, post-hoc: your example is wrong, in the sense that you gave the > compiled module the wrong name! You should name it ./obj/mod/X.go, not > ./obj/mod/X.scm.go. If it then still not loads the .go, that=E2=80=99s a = bug and a > regression. > > >I'm pretty sure to test both .go and .scm.go under 3.0.10. > >If I understand you correctly, you mean b.scm will try to find b.go, or > at least auto compile to b.go, right? Both .go and .scm.go can not deny > what I just described. > And the default naming is .scm.go as what I can see in the terminal. > > Yes, you need to adjust the default naming. IIUC, the default naming is > set up for Guile=E2=80=99s auto-compile cache, instead of for Guile=E2=80= =99s > load-compiled-path (these aren=E2=80=99t the same). (Confusingly .go are = installed > in subdirectories of a directory named =E2=80=98ccache=E2=80=99 (at least= on Debian), but > IIRC if you look at the .scm->.go mapping go, you=E2=80=99d see that the = code for > the auto-compilation cache is separated from the pre-compiled .go (and > .cache/guile/2.0/ccache has a different layout), and since it is only > updated at installation / package upgrades by copying over (pre-)compiled > files, by definition it isn=E2=80=99t a cache.) > > No, I don=E2=80=99t mean that =E2=80=98b.scm will try to find b.go=E2=80= =99. There is not reason > for it to try that, and is somewhat against the point of compilation. > Rather, b.scm is not loaded at all (except for some metadata: the time > stamp). I also don=E2=80=99t mean =E2=80=98auto compile to b.go=E2=80=99.= That=E2=80=99s against the point > of the whole pre-compilation thing. > > Instead, when the module (mod a) is loaded (whether from mod/a.scm or > obj/mod/a.go)), Guile module system is asked to load the module (mod b), > and it sees mod/b.go exists in load-compiled-path and mod/a.scm exists in > in load-path (and timestamps are ok), so it loads (obj/)mod/b.go. > > Since this mechanism is used for Guile=E2=80=99s own libraries as well ((= system > =E2=80=A6), (srfi =E2=80=A6), (ice-9 =E2=80=A6), =E2=80=A6), I would expe= ct this to still work in 3.0.10. > If you have proof of the contrary you should make a bug report about it. > > > > >On Sun, Dec 15, 2024, 01:50 Maxime Devos wrote: > > > [=E2=80=A6] > > > > I don=E2=80=99t need a copy of my own e-mails. > > Best regards, > Maxime Devos > > >