If you just want to run the .go file, this is not a good way to go, since it's binary format inside ELF can be changed in different Guile version. And Guile compiler will handle these issues for you. So best practice is to always run from a script and let Guile do the rest for you.
But if you really want to load .go without source code for some reasons, you may do it in the REPL: (load-compiled "example.scm.go") Best regards. On Sat, Dec 14, 2024, 11:33 Nala Ginrut <nalagin...@gmail.com> wrote: > Hi Keith! > AOT stands for "Ahead-of-Time," and in this context, it refers to the > process of compiling source code directly into native machine code, > allowing the program to be executed as a regular binary file without > requiring a runtime interpreter. > > @Hakan > The current .go file will be generated and loaded automatically, so one > don't have to load it explicitly. > > To run a Guile source code, here's the document: > > https://www.gnu.org/software/guile/manual/html_node/Running-Guile-Scripts.html > > Basically, you run it as script, Guile will compile it to .go and load it. > > Best regards. > > On Sat, Dec 14, 2024, 10:14 Keith Wright <kwri...@keithdiane.us> wrote: > >> Nala Ginrut <nalagin...@gmail.com> writes: >> >> > The current Guile is not AOT yet. >> >> Google says: Attack On Titan. >> >> > Although the object file is ELF, it's just bytecode wrapped ELF >> > header. So you can't run it as a regular executable file. >> >> I don't think that was the question...Hakan wants to call the >> Guile executable and pass it a *.go file. >> >> > On Sat, Dec 14, 2024, 07:35 Hakan Candar via General Guile related >> > discussions <guile-user@gnu.org> wrote: >> > >> >> Dear Guile Users, >> >> >> >> I am unable to run guile objects directly from the command line. I >> >> >> inspected the manual thoroughly, however I did not see any mention of >> >> my desired action. Is it possible to execute guile objects directly, >> >> or are they reserved for internal caching mechanism only? >> >> >> >> I tried the following commands with no luck: >> >> guile3.0 example.scm.go >> >> guile3.0 --language=bytecode example.scm.go >> >> >> >> Your help and interest is much appreciated. >> >> >> >> Thanks, >> >> Hakan >> >