IRC channel logs
2023-11-21.log
back to list of logs
<festerdam>Is there a way to use traditional xpaths with sxml, rather than sxpaths? I'm having some difficulty understanding the documentation on sxpaths. <dthompson>Kolev: pagination-template is not currently in a released version of haunt. if you're using 0.2.6 it's not available. <Kolev>dthompson, your manifest.scm is being used, so I should be getting the latest Haunt. <apteryx>what would be the best way to implement a FIFO in Guile? <dthompson>Kolev: what does 'haunt --version' say? should say 0.3.0 <dthompson>apteryx: any particular features that your queue needs? <apteryx>maybe I don't mean FIFO; more like a size-limited list to which adding one item above its max size would cause the oldest item to be discarded <Kolev>dthompson, oh dear, it says 0.2.6. Hm. Maybe I need to `guix shell` again. <apteryx>I want to keep track of recently opened ports file names, which could be in theory infinitely large, so I need to place a cap on that <Kolev>dthompson, ah, the manifest.scm does not give me 0.3.0. <dthompson>Kolev: make sure you are using a recent commit from master <Kolev>dthompson, why doesn't the manifest.scm give me Haunt 0.3.0? It looks like it would. The manifest pulls Haunt from your site. <apteryx>that looks neat; I think I may be constrained to use something more primitive -- for the include bug fix I'm reworking, I'd like to define a fluid in libguile/fports.c that is loaded very early in boot-9.scm <apteryx>a fluid whose value is a ring buffer of recently opened port file names <dthompson>Kolev: could be something wrong in your environment. do you happen to have haunt installed in your guix profile or something? what does 'which haunt' say? <apteryx>that I could then try in most recent to least recent order in a call-with-include-port override later defined in boot-9.scm <Kolev>dthompson: /gnu/store/igrdyj5hgxj8w8k05aqz0p5j5m62iwqh-profile/bin/haunt <dthompson>apteryx: ah you're really in the weeds, huh? <apteryx>the fluid would have a name like %file-port-original-relative-names <Kolev>I do not have Haunt installed into my user profile. <apteryx>which would preserve the original port file names before they get stripped according to the 'relative canonicalization scheme (when they also happen to be found on %load-path) <dthompson>apteryx: I'm not sure what advice to offer in your situation :( <Kolev>dthompson, the manifest.scm lists commit 63afd408c890aec7d62c754ae1399c901ff2a794 for Haunt. <apteryx>I'll try stuff, it's good to a have a ring buffer reference around :-) <dthompson>Kolev: have you tried 'guix shell --container -- haunt --version' or 'guix shell --pure -- haunt --version'? <apteryx>it also kinda feels like I'm papering over the actual problem, so if someone has a bright idea, feel free to chime (see bug #66046) <dthompson>and is the manifest file actually including the customized haunt? <dthompson>but I'm not on your system so I couldn't say what <Kolev>dthompson, those commands do not read manifest.scm. <dthompson>Kolev: but you know what I mean right? add in -m manifest.scm <Kolev>`guix shell -m manifest.scm --pure -- haunt --version` gives 0.2.6. 😞️ <Kolev>dthompson, I copied manifest.scm directly from 2f40ed6841d4c61a8a1660c1f81012af73c336c4 of your blog. <Kolev>(And your site builds on my machine.) <dthompson>if you have my site repo, what does 'guix shell -m manifest.scm --pure -- haunt --version' say there? <Kolev>dthompson, hm, it says 0.2.6 in your repo too. I'm so confused. <dthompson>can I see the actual code you're trying to run that uses pagination-template? <dthompson>okay the code in that file looks fine. the manifest.scm file at that commit is using haunt 0.2.6 though <Kolev>In the commit for that error, manifest.scm is the copy from your repo. <dthompson>Kolev: have you tried 'guix shell --rebuild-cache' <Kolev>dthompson, I hate to say this, but I still get 0.2.6 after --rebuild-cache. <dthompson>I dunno what it is, something is not right with your environment. you could check the guile source modules in that guix shell profile and verify that #:pagination-template is not a keyword argument for 'theme' in (haunt builder blog) <dthompson>that would be a clear indicator that you've got the wrong version somehow. I can't explain why it's not the right version but it isn't. <Kolev>I'm drowning in code. I can't get this site to work. <Kolev>I'm sorry i cant figure this out. ☹️ <apteryx>is it possible to return multiple values from C? <euouae>I've cloned guile-config but after autoreconf, the ./configure step gives me invalid syntax <euouae>"./configure: line 2541: syntax error near unexpected token `3.0' ./configure: line 2541: `GUILE_PKG(3.0 2.2 2.0)'" <apteryx>do you have pkg-config and guile available? <euouae>wait maybe this is an issue with the latest commit <euouae>I tried other commits as far as 2021 but I'm still getting these errors <apteryx>hmm, I'm not sure. I've built it successfully recently <euouae>My bad. Wow. I was missing guile-3.0-dev on debian because I didn't bother with apt. <euouae>I thought I had all the necessary dependencies <apteryx>how do I make use of a scm_values returned value in C ? <cow_2001>(using it alongside a debian, not a full guix installation) <isaneran>hooray, I made a lame compiler from rpn math expression to risc-v assembly haha <cow_2001>somehow not providing a procedure what it wants makes guile explode with a segmentation fault <cow_2001>it also explodes when run in a guix shell -C <isaneran>I might wanna post it later to get some feedback, I often feel like I get a bit too much nesting when I write code in lisp <isaneran>or, at least when I write it with more functional style <chitochi>it's really flaky but i finally succeeded in linking guile to a flutter android app \o/ <isaneran>ah, I thought maybe you would have to disable it to make it work <isaneran>I guess it's also possible that your example code didn't trigger it <isaneran>or it is also possible that it runs without any problem on android <chitochi>do you have any idea of how to test if the JIT is running? <chitochi>(if not don't worry i will look for that myself!) <isaneran>hmm you can set a GUILE_JIT_LOG environment variable to 1 2 or 3 <chitochi>i use `setenv` via the dart ffi, so i can try <chitochi>but i have this issue right now where i can't see any logs coming from guile <chitochi>(i know it's working because it's exchanging messages with dart) <isaneran>then I suspect that logging would be missing as well <isaneran>and I'm not sure if you can set native code breakpoints with the dart debugger <chitochi>but i am working on fixing the logging issue right now so i will be able to try that soon! <chitochi>i don't know, i never used the dart debugger :/ <chitochi>but honestly i don't think i will stay with flutter + guile for long, i want to find a way to do the ui in guile too <isaneran>if you can settle for doing the ui in scheme you might want to give kawa a look <chitochi>i want to use Goblins too tho, i don't think it will be possible using kawa? <isaneran>probably not without doing some kind of polyfilling for missing features or incompatible functions <isaneran>also I don't think kawa fully supports continuations all the way (tho it supports a subset) <isaneran>so if goblins is dependent on that to work then it might be trouble <isaneran>one approach though, could be to do the UI in kawa, while also embedding guile <chitochi>since i am doing this for fun, i may try to build a hobby gui toolkit in guile <chitochi>i always wanted to try doing something like that <chitochi>maybe with some work Chickadee can work on android? <isaneran>the main thing would probably be if it's not able to wrk with opengl ES <isaneran>I guess there could be other things too though, like file system access assumptions etc <chitochi>a quick search for SDL + Android is giving results \o/ <chitochi>i just started learning haunt, but maybe you can use the static thing to store the css, and then import it using a link tag in the html layout? <chitochi>there is probably a better way, but i don't know it xD <cddr>Hi how do I use geiser to browse guile sources <cddr>My %load-path in guile repl shows all relevant directories but I can't jump to symbol definition <rebiw>Is there a way to define a module with "stub functions" ? . Functions that will be implemented in some other module.