IRC channel logs

2025-10-18.log

back to list of logs

<old>I would like a way to specific a GOOP slot with: #:allocation #:each-subclass #:init-method a-method
<old>where `a-method' would be class with the class of the instance to initialize
<old>any easy way of doing so? If not, idea on where I need to hack the protocol?
<old>(define-method (a-method (cls <class>)) ...)
<resica>I request assistance from someone who knows g-golf (Guile bindings for GTK). I got it installed (or at least I think I do) and I get a cryptic error. No applicable method for #<<generic> run (3)> in call (run #<<gtk-application>.
<sneek>resica, you have 1 message!
<sneek>resica, dsmith says: That's normal for (define ... xxx)'s on (+ 1 2) should show "=> 3" in minibuffer
<resica>Here's the hello world I got from the docs. https://www.gnu.org/software/g-golf/manual/g-golf.html#Hello-World_0021
<daviid>resica: can you just run the distributed example, it could be the manaul has a tipo, i'll check
<daviid>resica: lokk at and run ..
<daviid>are you self installing from a clone or use a distro package?
<resica>I compiled from source because fedora doesn't have g-golf in the repos.
<daviid>ok, then the code is in <your-clone-dir>/examples/gtk-4
<daviid> you can cd there and then ../../pre-inst-env ./hello-world
<daviid>or if you installed, just ./hello-world ofc
<resica>Well I'll be damned, the hello world example from the docs worked, but it appears the manual was wrong.
<resica>s/docs/sources
<daviid>ah, I know
<daviid>i just patched but did not released yet, a user did report this problem, I fixed it recently ...
<resica>Thank you very much. I'll trust the source documentation that was created when I typed 'make install-html' :)
<daviid>if you cloned _and_ switch to the devel branch
<daviid>that doc patch isn't in master yet
<resica>Weird, I downloaded the stable tarball and using the env setup script I think fixed it. I think. Anyways, I'll keep the devel branch from git bookmarked.
<daviid>the tarbll definitely does not have the patch
<daviid>you're safe to clone and git checkout devel
<daviid>then run the amke danse again, then make install-html should have the patch
<resica>I'll be sure to do that. :)
<daviid>resica: ok, let me know and/or ping me if you need help
<daviid>resica: fwiw, here is the commit we're talking about - https://cgit.git.savannah.gnu.org/cgit/g-golf.git/commit/?h=devel&id=e270aa9c9e55b799fa31cbf263eb437168998aad
<daviid>which still is on the devel branch only ...
<euouae>Hello
<apteryx>shouldn't match match my literal 3 here and return #f instead of #t? https://paste.guixotic.coop/_Geiser_Guile_REPL_guix-master_-6392-6537.html
<apteryx>eh, I'm silly, that matches anything
<euouae>Hello
<euouae>I spent days trying to figure out why gdb wasn't loading the C macros in my debug session for Guile until someone pointed out that Guile sneaks -flto into CFLAGS... :)
<rlb>euouae: yeah, and imagine you saw, but you can ./configure --disable-lto ...
<rlb>(which also avoids a good long pause on every build -- I do that fairly often)