IRC channel logs

2024-08-04.log

back to list of logs

<Xeroine>Is there any way to embed guile scheme code or compiled guile scheme bytecode into an executable created by a C compiler so that I don't have to store the scheme file separately on the filesystem? I'm pretty sure this isn't supported but I just wanted to make sure.
<Xeroine>I know I could just use the libguile C API but still
<singpolyma>...if you're not using libguile what do you need it for?
<mwette>Xeroine: I played w/ code close to that: to load modules in a binary. See https://github.com/mwette/guile-saapp/tree/main
<mwette>I don't think I was 100% successful, as one needs to load some system modules before using those functions ...
<Xeroine>singpolyma: I'm using libguile, I just thought I could maybe write stuff like argument processing and then loading up the rest of the program in scheme instead of using libguile directly for that.
<Xeroine>mwette: Thanks, I'll check it out
<mwette>Xeroine: Please let me know if it works out
<Xeroine>I will =)
<mwette>If you have guile distribution installed but only want to have your non-guile .go files embedded, then it should work.
<Xeroine>mwette: yess, it worked. I'm on aarch64 so I had to readjust the bfdnames in objcopy but it worked, thank you <3
<mwette>Good to hear.
<ArneBab>Xeroine: Lilypond has some tooling for that, AFAIK.
<rlb>wingo: just a ping about 3.0.10's 32-bit arch incompatibility. (It'll be removed from debian unstable "soonish" if not fixed, but I can always reintroduce it later.) Oh, and I included a possible candidate for the cause (found via git bisect) in the bug report: https://debbugs.gnu.org/71891