IRC channel logs

2020-07-21.log

back to list of logs

<daviid>str1ngs: tx for the g-golf guix pkg patch
<daviid>str1ngs: wrt your other quiz, i really wish not to change anything 'at that level'
<daviid>str1ngs: i hope you can find a hack, but note that make distcheck entirely removes build-aux
<cyclopsian>are any guile-cairo maintainers around?
<cyclopsian>I'm considering removing the smobs from it and using foreign objects instead
<RhodiumToad>I guess lloda and/or wingo would be the people to talk to?
<RhodiumToad>sneek, seen lloda?
<sneek>lloda was in #guile 10 days ago, saying: (help) doesn't seem to like it when I export from a macro.
<RhodiumToad>sneek, seen wingo?
<sneek>I last saw wingo in #guile 26 days ago, saying: all hail godbolt.
<cyclopsian>hmmm, actually it seems this was brought up a few months ago by someone else https://github.com/spk121/guile-gi/issues/82#issuecomment-605711588
<str1ngs>daviid: touch is more of a hack. ideally build-aux/config.rpath is generated by gettext which adds config.rpath to EXTRA_DIST so distributing config.rpath is pretty normal. anyways was more of a FYI I'll work around it.
<str1ngs>daviid: specially it's generated with gettextize I meant.
<str1ngs>cyclopsian: I was going to mention someone has done that work already. also total worth switching from vim to emacs from my expierence.
<dsmith>Also, emacs is fun to hack!
<cyclopsian>str1ngs: oh cool, is the patch anywhere public? I couldn't find anything about it on guile-user
<str1ngs>cyclopsian: spk121 did the work think this is the right repo https://gitlab.com/spk121/guile-cairo
<greyeax>is there a library for interacting with REST APIs?
<cyclopsian>thank you!
<greyeax>artanis /kinda/ looks like what i want, but i cant tell...
<cyclopsian>greyeax: Artanis is for making REST APIs
<cyclopsian>there is a "web client" module included that can send http requests, but I've never tried it
<cyclopsian> https://www.gnu.org/software/guile/manual/html_node/Web-Client.html
***catonano_ is now known as catonano
<pkill9>how do you read a guile file in guile?
<rlb>pkill9: depending on what you mean (open-input-file "something") and then the various read commands.
<dsmith>pkill9: Do you mean how to read s-expressions?
<rlb>heh
<dsmith>pkill9: That's real easy. (read)
<rlb>i.e. or get-string-all, get-bytevector-all, etc.
<rlb>depending on what you want...
<dsmith>Used to use read-delimited, with a delimeter of "", so the whole file..
*rlb has found that scheme (and guile) has moved along a good bit while he was preoccupied elsewhere.
<pkill9>dsmith: I'd like to open a guile file and modify it
<dsmith>pkill9: I would think it would be best to do that by expressions, instead lines or whatever. Then you can manipulate that as lists, using the full power of scheme.
<pkill9>yea that's wha ti want to do
<pkill9>to be honest since what I'm using is a record, I can just reconstruct the whole thing each time
<dsmith>(read) will do that for you. Reads by exprssion, not the whole file.
<pkill9>ah great
<dsmith>But you just loop or fold over that, or whatever until eof.
<pkill9>can you do the same in order to write? e.g. rewrite a specific expression?
<pkill9>like the second expression in the file
<pkill9>tbh what i'm trying to do would be better just rewriting the whole file each time
<dsmith>Yes, that's what you would need to do.
<dsmith>What are you wanting to do?
<dsmith>Does it need to be read/viewed by humans?
<dsmith>If so, you might want to use a pretty-printer.
<pkill9>I'm making a guix package definition generator, and I want it to be able to edit the package definition - though probably better to make a new script for editing the package definitions
<pkill9>yea I use that
<pkill9>i want to make an ncurses interface where you can do common changes to the package definition, like adding/removing an input, adding configure flag, etc
<dsmith>If you want to keep a hand-edited format of the file, like keeping comments, you probably can't just use read.
<pkill9>hmm yea, no worries about that
<greyeax>cyclopsian: tyty
<pkill9>why does running this return a bunch of numbers in the content I believe: (http-request "http://www.reddit.com/r/modhelp/comments/.json")
<pkill9>found ithttps://www.gnu.org/software/guile/manual/html_node/Bytevectors-as-Strings.html
***terpri__ is now known as terpri
<pkill9>i'm getting this error while trying to convert a json string to scm: In procedure integer->char: Argument 1 out of range: 55358
<pkill9>anyone know what it means?
<pkill9>I believe it may be due to an emoji
<dsmith>pkill9: Not a valid unicode codepoint perhaps?
<pkill9>I tested a different subreddit and it worked
<pkill9>yea i think so
<dsmith>Prob guile doesn't do emojis
<pkill9>and searching that number brings up a post mentioning a hugging emoji
<pkill9>how can you search for a nested pair recursively? I want to get all of particular keys after converting json to scheme
***wxie1 is now known as wxie
***apteryx is now known as Guest4223
***apteryx_ is now known as apteryx
***wxie1 is now known as wxie
***wxie1 is now known as wxie
***sputny1 is now known as sputny
<dsmith>Urr? https://www.zrythm.org/en/ https://docs.zrythm.org/group__guile.html
<alextee[m]>hehe, my mess is popular on the internets now \o/
<alextee[m]>sorry
<alextee[m]>dsmith: see https://manual.zrythm.org/en/scripting/intro.html
<alextee[m]>it's not much exposed but i can use it for unit tests now too, it's pretty cool how many use cases it has
<dsmith>Ok, I gots to play with this some
<alextee[m]>source for the guile stuff is here https://git.zrythm.org/cgit/zrythm/tree/src/guile
***ftknox_ is now known as ftknox
<mwette>sneek: later tell pkill9 to read/write scheme files look at last lines of http://git.savannah.nongnu.org/cgit/nyacc.git/tree/module/nyacc/lang/c99/ffi-help.scm
<sneek>Will do.
<mwette>sneek: later tell pkill9 call-with-input-file ... call-with-output-file
<sneek>Will do.
<dsmith-work>Tuesday Greetings, Guilers
<chrislck>ok this is funny: https://erkin.party/blog/200715/evolution/
<RhodiumToad>heh
<chrislck>I wonder where wingo's at
***terpri_ is now known as terpri
***apteryx is now known as Guest4026
***apteryx_ is now known as apteryx
***Guest4026 is now known as apteryx
***apteryx is now known as Guest13088
***apteryx_ is now known as apteryx
<a_v_p>Hello Guilers!
***Guest13088 is now known as apteryx
***apteryx is now known as Guest93264
***apteryx_ is now known as apteryx
***Guest93264 is now known as apteryx
***apteryx is now known as Guest23268
***Guest33859 is now known as apteryx
***Guest23268 is now known as apteryx
***apteryx is now known as Guest35780
***Guest81865 is now known as apteryx
***apteryx is now known as Guest77003
***apteryx_ is now known as apteryx
***Guest77003 is now known as apteryx
***apteryx_ is now known as apteryx
***Guest82453 is now known as apteryx
<str1ngs>hello a_v_p
***apteryx_ is now known as apteryx
***Guest90220 is now known as apteryx
***apteryx is now known as Guest11739
***Guest11904 is now known as apteryx
***Guest11739 is now known as apteryx
***apteryx is now known as Guest12029
***apteryx_ is now known as apteryx
***Guest12029 is now known as apteryx
***apteryx_ is now known as apteryx
***apteryx is now known as Guest7237
***Guest52373 is now known as apteryx
***apteryx is now known as Guest36388
***Guest7237 is now known as apteryx
***apteryx is now known as Guest70436
***Guest36388 is now known as apteryx
<stis>yay, got the python unittest library to work with python on guile
<stis>also hello guilers!
<dsmith-work>stis: Woah. Congratulations!
<dsmith-work>stis: Wait. You got the library working, or you got all tests passing?
<stis>well hold on, just got the library working, but now I can start working my way through cpython unit tests ...
<stis>It's a quite huge take to make a cpython on guile.
<dsmith-work>stis: It is an amazing task.
<stis>and then I want it to interact with guile. For example a simple return returns an implicit None, but to interact with guile you want it to retrun zero arguments, so a lot of effort is going into making the transition between python and guile seamless
<ArneBab>stis: wow! cool!
<alextee[m]>is there a guile web server that's suitable for production use?
<alextee[m]>i kinda don't get apache
<alextee[m]>i would need redirection to say docker ports and things like that
<alextee[m]>maybe i'll just use this https://www.gnu.org/software/guile/manual/html_node/Web-Server.html wonder what guix's websites use
<alextee[m]>on a systemd based server i guess i would have to write systemd configurations myself to make it run on reboot though
<daviid>alextee[m]: gnu artemis?
<daviid>sorry, i meant gnu artanis - https://www.gnu.org/software/artanis/
<alextee[m]>oof, i was reading something about a DNA sequencer. thanks
<daviid>alextee[m]: i don't know about guix servers, but most of the guix web-sites are powered by haunt
<daviid>here is haunt - https://dthompson.us/projects/haunt.html
<alextee[m]>i already have some static websites and a few services like redmine
<alextee[m]>i just need a web server to expose them
<daviid>alextee[m]: and so is guile's web-site, powered by haunt ...
<alextee[m]>oh i thought haunt was somehow integrated into the web server stuff
<daviid>ok, really not my domain, but i wanted to point to artanis .. so you may read and see ...
<alextee[m]>i saw a guile-haunt on github
<alextee[m]>the docs look very nice for artanis, thanks!
<daviid>wc!
<alextee[m]>heh: Although GNU Artanis has good server core, I would recommend you use Nginx as the front server. In addition to the enhanced performance, it'll also be less vulnerable to attacks.
<alextee[m]>maybe i can keep apache and only route some things to artanis as a start
<daviid>i'll let others how know help you with thoase quiz ..