IRC channel logs

2025-06-13.log

back to list of logs

<old>is there a way to match a goop instances like we can match srfi-9 record with $ <type> ?
<dthompson>no
<adhoc>thanks rlb
<adhoc>afternoon folks
<adhoc>anyone using guile 3.x.y with C++ ?
<muabdalaleam>Why would anyone prefer C++ on C
<muabdalaleam>over*
<robin>adhoc, idk about guile 3 but gwm2 used c++ with guile 2 (a remake of an ancient lisp-based window manager, the only place i've seen a gpl version 1+ file in the wild)
<robin>er, guile 1.8 actually https://github.com/mnsanghvi/gwm
<adhoc>robin: ok, that must have been a while ago
<muabdalaleam>Good morning
<muabdalaleam>While i was looking into the 2.4 Writing Guile Extensions section. I didn't find a way to write C -> Guile extision written Guile I have to use C. am I understanding correctly or is there away to import C functions into Guile using guile
<muabdalaleam>written in*
<muabdalaleam>Nevermind I found the ansewr at 2.5.3 Putting Extensions into Modules
<adhoc>muabdalaleam: call C from Guile
<adhoc>I was looking at that earlier
<adhoc>night folks.
<muabdalaleam>adhoc, What's you local time
<muabdalaleam>How can I write a module in Guile that imports C functions. I am saying a module not extension.
<muabdalaleam>Is there a FFI in Guile for C
<muabdalaleam>I can't find any entry in docs mentioning FFI
<silasfox>muabdalaleam: There is a C FFI. I haven't used it myself yet, but the docs are here: https://www.gnu.org/software/guile/manual/html_node/Foreign-Function-Interface.html
<muabdalaleam>Thanks, I was searching using the term `FFI` and didn't find anything so i supposed there wasn't support
<muabdalaleam>:noh
<muabdalaleam>Sorry misclick
<dsmith>adhoc, Actually, the bot is built over bobot++
<dsmith>!version
<dsmith>sneek, version
<sneek>Sneeky bot running on Guile version 3.0.3 using bobot++ release.2.3.1-6-a463-dirty
<adhoc>dsmith: bit confused about which bit controls which;
<adhoc>"Bobot++ is an IRC Bot written in C++ that uses Guile to make it very extensible."
<adhoc>so is the loading part in scheme calling out to C++ to do things
<adhoc>or is that the other way around, a C++ program that calls into scheme do to things?
<adhoc>have been reading up a bit of event model things, from teh idea to have lispy/scheme interface to call C++ thingsin the back ground to poke 3D/gpu things and GUI stuff
<dsmith>Other way around. The C++ does all the protocol bits and calls into Scheme on various messages
<dsmith>bobot++ does not need scheme at all to function.
<adhoc>ah ok
<dsmith>The bot lives in a beaglebone black and it's quite a chore to build on, especially since the flash is 2G and there is only about 500M free
<dsmith>So it's running on a fairly old guile at this point
<adhoc>understood.
<dsmith>Oi! it's even less that that!
<dsmith> Filesystem Size Used Avail Use% Mounted on
<dsmith> /dev/mmcblk0p2 1.7G 1.5G 82M 95% /
<adhoc>BB blak have 512MB main ram ?
<dsmith>Yes
<adhoc>ACTION tries to build that stack on the roadkill box...
<dsmith>sneek, seen unknown_lamer
<sneek>Sorry, no.
<dsmith>!uptime
<sneek>I've been faithfully serving for 4 months
<sneek>This system has been up 20 weeks, 5 days, 21 hours, 41 minutes