IRC channel logs

2026-02-24.log

back to list of logs

<tohoyn>when I include a (compiled) Guile module from a Tree-IL file the toplevel expressions of the module are not executed when the Tree-IL file is compiled. however, when I include the module from a Scheme file the toplevel module expressions are executed when the Scheme file is compiled. is this how it should be or do I have a bug somewhere?
<ekaitz>tohoyn: welcome to guile :)
<ekaitz>there are a few notes in the docs about it
<ekaitz>they are not easy to find
<ekaitz>but it explains how things are evaluated and when
<ekaitz>you should read a little bit about eval-when and macro-expand
<ekaitz>because the explanations given there leak some information about what just happened to you
<tohoyn>here is a simple example illustrating this behaviour: see <https://hastebin.de/xiwadokoju.rb> and <https://hastebin.de/repumetilo.rb> and execute command "GUILE_LOAD_COMPILED_PATH=. guild compile --to=tree-il -o mod22.tree-il mod22.scm". Now command "GUILE_LOAD_COMPILED_PATH=. guild compile -o mod22.go mod22.scm" displays "Hello World" but command "guild compile --from=tree-il -o mod22.go mod22.tree-il" does not.
<tohoyn>you have to execute command "GUILE_LOAD_COMPILED_PATH=. guild compile -o mod19.go mod19.scm" before the other commands.
<tohoyn>ekaitz: tx for info
<tohoyn>tohoyn: you have to add prefix "GUILE_LOAD_COMPILED=." to the last command, too.
<tohoyn>should be GUILE_LOAD_COMPILED_PATH
<mwette> Does guile still hash source expression as described in the following? https://www.gnu.org/software/guile/manual/guile.html#Hygiene-and-the-Top_002dLevel
<identity>probably
<mwette>it looks so, peeking into psyntax.scm
<daviid>sneek later tell tohoyn i couldn't read your paste "FYI: I added a test for an asynchronous method call ..." hastebin.de tracks and requires nonefree javascript ... - also, not sure what you expect from me on this subject?
<sneek>Okay.
<daviid>sneek: later tell tohoyn i couldn't read your paste "FYI: I added a test for an asynchronous method call ..." hastebin.de tracks and requires nonefree javascript ... - also, not sure what you expect from me on this subject?
<sneek>Got it.
<valorzard>whats the state of windows support for guile? ive been seeing some pull requests on codeberg, but idk how things are moving along
<valorzard>(i know it technically already works on windows, but its like 32bit for some reason because of gcc?)
<old>valorzard: I would not know I don't have a Windows machine. I do try to merge things tho that go into that direction
<old>The best person to ask (I think) is hahnjo. Idk if they are on IRC tho
<mwette>di