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 02:03:52 +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> 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="31786"; 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 18:04:58 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 1tMVZa-00088f-3x for guile-user@m.gmane-mx.org; Sat, 14 Dec 2024 18:04:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMVYn-0003ck-9k; Sat, 14 Dec 2024 12:04:09 -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 1tMVYm-0003cV-9z for guile-user@gnu.org; Sat, 14 Dec 2024 12:04:08 -0500 Original-Received: from mail-pg1-x536.google.com ([2607:f8b0:4864:20::536]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMVYk-0005cT-EO for guile-user@gnu.org; Sat, 14 Dec 2024 12:04:08 -0500 Original-Received: by mail-pg1-x536.google.com with SMTP id 41be03b00d2f7-7fd17f231a7so1641300a12.0 for ; Sat, 14 Dec 2024 09:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734195844; x=1734800644; 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=RguJei06LZcbm2lqVsE45HOJS0EaVGWlpMIR/foVLCg=; b=iL3hhTLY9kWC/n+VCKGCowJjf5BQ4By78gK7+DIyMPP7rSklH3H9amh/EylMMIq8VS 1SWWtkJXfEoZSO9E/giZQudyeQaZvQeTdpYSwASnN3yLMbzy8+AlW0McuQpuo3rL8n8O r5Y0dEaJiriYNG+32pgTXvtLrWrlaEZuh9JIKnK4CliRfhmBzLhrfpy/BBXHXNNTRKLG 1f/aXwkUSjv3htJIXidtjzEjBtd4oAbROL1tKgbXKs92ns7icp16jlPfqn/w3/KvE26y 6FPsn7oy7XV1PSMp7NGSAsZHpUN94BhY0kh0zvn8BR2oKLk6oh9a7FeIEylsgOzezgdz Z6Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734195844; x=1734800644; 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=RguJei06LZcbm2lqVsE45HOJS0EaVGWlpMIR/foVLCg=; b=n8DXp3N39k4TRBgteNTCBeArLwwmd34cPWECaLFhmwDPGDMftaH3E6YrZeN1ESqci8 wcNeTyxOHueGb5OvWYYHARUBaEUsO+WxgPSahiYJJEDoB4ew/iMA/lmn3v+VxiIEjC75 B7fanH/z8/7G1Atn+orwNiVrEjOUoWfiIqxviKbP9aMHlCIe3Y820TZKNwyVVfa5BR1a XH5p51+ZDm8uzBFidwuMbUp4Ht7l+zuA65v04Yhu7e3dDnyYOPgFkz1b5yubuzz/Zg9j J+M68JKvNJGJs/f25GP0QVgDeMbvzJ5DcoC+w5pHi4TeL0ZFeDt6RjDen1GwBbZr9apa S1TQ== X-Forwarded-Encrypted: i=1; AJvYcCVbIQEk/y5WrETPM2JZIbvV0Tr87XvrwF95khYHC6YtCly8fo9pThHUrXDtHK1zQvf7J0rT8XBVuQlP@gnu.org X-Gm-Message-State: AOJu0Yy6nzZf9wKRles+5SQa9apSeX8kyi2Cj2c8qCmTPtOTQ0it6eOc dAAZjegXPjf2kpt8eYKUPSLj8R1S7Ynh1ZU/Uy7yN+TpRT+OyFsNkxksVQ3ez0WiR/JpQ6KXuVP pa39RdtdoHRSdWrzKC7w6AEPMfM8= X-Gm-Gg: ASbGncs4mkMfGXazCXxsCDd6pYV5xHcaeRRBI6lynM7IdJthweMpJNIZCtVfpez6R6v NH0U3etw9cwFvQNZp7vJJRdfFKdhlDfYGrT7ObA== X-Google-Smtp-Source: AGHT+IGoHOmDeqnpbRfe6uxQSZPF57G+CYcWONX8ptFXQQgtiC5leObEVCjtrPGlNh1hpfICFhbpHp1yNgflEX2hQfc= X-Received: by 2002:a17:90b:4b0f:b0:2ee:bbd8:2b7e with SMTP id 98e67ed59e1d1-2f28fb6aba4mr12789519a91.12.1734195843860; Sat, 14 Dec 2024 09:04:03 -0800 (PST) In-Reply-To: <20241214175016.ogqF2D00K1Y3F3G06gqG7h@michel.telenet-ops.be> Received-SPF: pass client-ip=2607:f8b0:4864:20::536; envelope-from=nalaginrut@gmail.com; helo=mail-pg1-x536.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:19991 Archived-At: > 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 bu= g 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. > Yet, simultaneously you say there is no way (without caches), _and_ you actually are using that way (=E2=80=9C-C obj=E2=80=9D). My opinion is the cached .go is not auto recognised by the cache for deps, but .scm can be recognised by default. I'm not saying "no way" without a cache, I mean "no way" even if there is a manual cached object. On Sun, Dec 15, 2024, 01:50 Maxime Devos wrote: > >> Guile doesn=E2=80=99t care about whether it is a cache or not, as long= as it > has the .go, the timestamps are ok, and (IIRC) corresponding .scm exists. > > >I wonder if you have tested the given example. Guile doesn't load .go as > the dependency, but .scm. > > I didn=E2=80=99t test it, because: > > - I know how you described it in the example, is how it works (except > for the =E2=80=98no way to load deps from .go without cache=E2=80=99 f= alsehood, and except > for the misnaming of the .go which I didn=E2=80=99t notice at first). > - As I mentioned in the beginning, I don=E2=80=99t have a Guile setup > currently. > > 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. > > >> You missed =E2=80=98-C=E2=80=99 (load-compiled-path) > > >I didn't miss load-compiled-path here, I think you confused with -c. -C > obj specified the current load compiled path to "./obj". > > No. I don=E2=80=99t care at all about lowercase =E2=80=98-c=E2=80=99 here= . I mentioned =E2=80=98-C=E2=80=99 > precisely _*because*_ it augments the load compiled path. At first I > didn=E2=80=99t notice the =E2=80=98-C=E2=80=99 because of the rest of the= message implied you > didn=E2=80=99t set it. > > >- the deps have to be loaded from the scm path specified by -L. IIRC > there is no way to load deps from .go, unless you provide a manual cachin= g. > > Namely, this. =E2=80=9C-C insert-directory-here=E2=80=9D is _*the*_ way t= o load > dependencies from .go (at least, dependencies in form of module imports, > I=E2=80=99m not too sure about how loading the initial file (as .scm) wor= ks) and it > doesn=E2=80=99t need to be a cache. Yet, simultaneously you say there is = no way > (without caches), _*and*_ you actually are using that way (=E2=80=9C-C ob= j=E2=80=9D). > > Best regards, > Maxime Devos >