IRC channel logs

2020-07-25.log

back to list of logs

<pkill9>why does (scandir) include "." and ".." in the list?
<RhodiumToad>why not?
***zv is now known as Guest86335
***nalkri is now known as Guest64465
***Guest64465 is now known as nalkri
***apteryx_ is now known as apteryx
<a_v_p>Hello Guilers! I started Guile-Udev project that provides bindings to libudev: https://github.com/artyom-poptsov/guile-udev
<civodul>hi a_v_p! nice!
<a_v_p>civodul: Thanks. :-) There is a working example in the repository as well.
<civodul>a_v_p: in Guix there are several modules to deal with .ko files, finding out which modules need to be loaded, etc.
<civodul>you might find it interesting
<civodul>it could serve as the basis for some udev-like functionality in Scheme :-)
<pkill9>what would you use those udev bindings for?
<pkill9>i don't know much about udev, other than that you create rules for it to do things when hardware is plugged in/out
<a_v_p>civodul: Do you mean that it's possible to implement something "udev-like" w/o using libudev?
<civodul>yes
<a_v_p>pkill9: On one of my job I need to write a daemon that will track USB devices and do some logic upon it.
<a_v_p>Besides, although it's not Guile related ( yet :-) ), here's the project: https://gitlab.com/gkaz/mst
<a_v_p>It's a graphical multi-seat configurator.
<a_v_p>civodul: I went down the easier path and used libudev as the basis. It took me just around two days to implement Guile-Udev. I guess writing everything from the scratch will take longer.
<civodul>yup, that makes sense
<civodul>if you're curious: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/build/linux-modules.scm :-)
<a_v_p>civodul: I see. There's some code that reads events from the Linux kernel, but apart from that this module does other Guix-related things such as loading kernel drivers.
<a_v_p>I guess in a pure-scheme implementation of udev I may face some portability issues that are already solved in libudev.
<manumanumanu>Ahoy hoy, guilers!
<manumanumanu>I am having a happy moment. I just had an epiphany regarding Andy's fectors. I can probably change them to be RRB-trees with minimal work, which means a sliiight constant cost, but fast splitting, insertion in the middle, and concatenation
<manumanumanu>the constant cost could be nullified by making transients explicit instead of implicit, making the dispatch on whether it is still a strict 32-way trie or an rrb-tree.
<jackhill>a_v_p: Thanks for making and sharing guile-udev. It looks like the THANKS file could be updated :)
<jackhill>it mentions guile-ssh. Thanks for that too!
<jackhill>also, AUTHORS
<a_v_p>jackhill: Oh, a good catch, thanks. Fixed that.
<ArneBab>manumanumanu: will you benchmark the old and new version (pro-forma question, given that you’ve benchmarked everything, but I still wanted to ask, because I’d be very interested in the results)?
<a_v_p>I wonder, is there an official Guile room on the Matrix network, or at least any active rooms where lispers share their parenthesis and the ancient lore?
<Blukunfando>Whatever there is should be reachable from the URLs in the topic.
***nckx is now known as AMDinc
***AMDinc is now known as nckx
<dsmith>a_v_p: "Official" guile room is right here in #guile on irc
<dsmith>There are also plenty of people in #scheme too
<Blukunfando>a_v_p left before my reply.