From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos via General Guile related discussions Newsgroups: gmane.lisp.guile.user Subject: RE: Running Compiled Guile Objects Date: Sat, 14 Dec 2024 17:50:16 +0100 Message-ID: <20241214175016.ogqF2D00K1Y3F3G06gqG7h@michel.telenet-ops.be> 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> Reply-To: Maxime Devos 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="22670"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Keith Wright , "hakancandar@protonmail.com" , "guile-user@gnu.org" To: Nala Ginrut Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat Dec 14 17:51:18 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 1tMVML-0005kf-Pw for guile-user@m.gmane-mx.org; Sat, 14 Dec 2024 17:51:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMVLc-0000CF-6N; Sat, 14 Dec 2024 11:50:33 -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 1tMVLU-0000Bq-Hy for guile-user@gnu.org; Sat, 14 Dec 2024 11:50:28 -0500 Original-Received: from michel.telenet-ops.be ([2a02:1800:110:4::f00:18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMVLP-0008L3-36 for guile-user@gnu.org; Sat, 14 Dec 2024 11:50:21 -0500 Original-Received: from [IPv6:2a02:1811:8c0e:ef00:77eb:21f9:4b67:5c0] ([IPv6:2a02:1811:8c0e:ef00:77eb:21f9:4b67:5c0]) by michel.telenet-ops.be with cmsmtp id ogqF2D00K1Y3F3G06gqG7h; Sat, 14 Dec 2024 17:50:16 +0100 Importance: normal X-Priority: 3 In-Reply-To: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r24; t=1734195016; bh=z+DCZcid+/Ia94fY0Plajfcq3l4LOQdmbFvECCY1mF4=; h=Message-ID:MIME-Version:To:Cc:From:Subject:Date:In-Reply-To: References:Content-Type:From; b=UtnpBz+cNXEcKM61eErvSd1RhA+Gurk1EueqjoChtqK61hlkLxp1Pe4yBrBbEExUr QqKDzaVpDPnTqfXK/FM4IwSn3nhQhDv/Bc9iOzrc/PdFOc5G+PJ4KFG10+9v9JXt7p ztHkuU88QAJs5CQsC4A0PjganTJ7YCnpHOQ5fqNojQp8ELuFXP3f9H5fFpWXXHWNmV JO2+OlrPHgJ7mEWjcxniHKWvwiGF73M2Ach021q68Tncu9wfCdXAS7p0divdNKTWl9 VKJEcK9hiTpaWSFxGKWOF3BIFieHEak3lQy7ah4G4Ntqp9IncH8P9gcIqYelN9teWx 2d/+K0pd7otbw== Received-SPF: pass client-ip=2a02:1800:110:4::f00:18; envelope-from=maximedevos@telenet.be; helo=michel.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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:19990 Archived-At: >> Guile doesn=E2=80=99t care about whether it is a cache or not, as long a= s it has the .go, the timestamps are ok, and (IIRC) corresponding .scm exis= ts. >I wonder if you have tested the given example. Guile doesn't load .go as t= he dependency, but .scm.=20 I didn=E2=80=99t test it, because: =E2=80=A2 I know how you described it in the example, is how it works (exce= pt for the =E2=80=98no way to load deps from .go without cache=E2=80=99 fal= sehood, and except for the misnaming of the .go which I didn=E2=80=99t noti= ce at first). =E2=80=A2 As I mentioned in the beginning, I don=E2=80=99t have a Guile set= up currently. Also, post-hoc: your example is wrong, in the sense that you gave the compi= led 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 r= egression. >> 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 ob= j 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 c= ompiled path. At first I didn=E2=80=99t notice the =E2=80=98-C=E2=80=99 bec= ause 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 caching. Namely, this. =E2=80=9C-C insert-directory-here=E2=80=9D is _the_ way to lo= ad 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) work= s) and it doesn=E2=80=99t need to be a cache. Yet, simultaneously you say t= here is no way (without caches), _and_ you actually are using that way (=E2= =80=9C-C obj=E2=80=9D). Best regards, Maxime Devos