IRC channel logs

2025-09-27.log

back to list of logs

<mwette>I'm thinking v4, because I think the API should be split up a bit. But, we could always include the old stuff (as deprecated, if desired).
<rlb>Right --- my personal inclination is generally to favor backward compatibility where it's not overly expensive (but of course every now and then we may need to break things).
<mwette>Specifically, I think we may something like (pointer->procedure int (foreign-library-pointer "libfoo" "bar") (make-ffi-arity (list '* '*))).
<mwette>And it seems like 'int might be better than int from (system foreign).
<euouae>Hi
<sahar_sedigh>hello
<sahar_sedigh>I want to install guile on some linux distro. Please help me understand how guile works?
<sahar_sedigh>Is default installation directory the same as the linux distro?
<sahar_sedigh>/usr/bin? /etc /usr/share ....?
<sahar_sedigh>or Is guile package manager the same as nix. closed system. and it can managed the libraries and such!
<identity>sahar_sedigh: guile does not have a package manager, you might be thinking of Guix
<sahar_sedigh>identity: yes exactly
<sahar_sedigh>guix package manager
<sneek>wb dsmith :D
<Arsen>sahar_sedigh: that's a separate project and quite nix-like, try #guix
<ArneBab>mwette: I think it’s currently rather evolution for 3.0.11+
<mwette>ArneBab: yes, some of that is non-breaking; maybe a new ffi module to bring in a different API.
<mwette>There are some other updates slated for libffi v4 but don't know when that is coming.
<ArneBab>There’s a pull request by Jonas with the needed changes to get Guile working on 64bit Windows. IT would be great if someone with experience in C could review it: https://codeberg.org/guile/guile/pulls/22/files
<euouae>Hello
<mwette>sneek: fibers?
<mwette>I found fibers on codeberg.org/fibers. When I "use" it I get this: Undefined variable: %fibers-version
<mwette>Anyone else?
<euouae>mwette: now that I've attempted it, I see `no code for module (fibers config)`
<euouae>I checked that config.go is produced by `make` but does not seem to be installed anywhere by make install`.
<mwette>Ah, thanks.
<euouae>and %fibers-version is defined in config.scm.in so that seems to be the issue
<mwette>I'll file an issue.
<euouae>I could send you a patch for it later
<euouae>to your PR in codeberg
<ft>Hm. I built the thing and in "./env guile" I (use-modules (fibers)), and %fibers-version yields 1.4.1… but maybe my environment leaks in somehow.
<euouae>I mean, to your Issue*
<euouae>in ./env the load path is set to the directory that contains config.go
<euouae>but when installed, config.go is never moved with the rest of the *.go files
<euouae>nor is the produced config.scm (from config.scm.in) moved
<ft>Ah, okay. Fair. :)
<mwette>issue #147
<mwette>euouae: thanks!
<euouae>you're welcome
<euouae>I'll fix it today or tomorrow whenever I manage to get time for it