<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>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? <sneek>lloda was in #guile 10 days ago, saying: (help) doesn't seem to like it when I export from a macro. <sneek>I last saw wingo in #guile 26 days ago, saying: all hail godbolt. <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. <cyclopsian>str1ngs: oh cool, is the patch anywhere public? I couldn't find anything about it on guile-user <greyeax>is there a library for interacting with REST APIs? <greyeax>artanis /kinda/ looks like what i want, but i cant tell... <cyclopsian>there is a "web client" module included that can send http requests, but I've never tried it ***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? <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>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. <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>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>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. ***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>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>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
<alextee[m]>hehe, my mess is popular on the internets now \o/ <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 ***ftknox_ is now known as ftknox
<mwette>sneek: later tell pkill9 call-with-input-file ... call-with-output-file ***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
***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
***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 <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. <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 <alextee[m]>is there a guile web server that's suitable for production use? <alextee[m]>i would need redirection to say docker ports and things like that <alextee[m]>on a systemd based server i guess i would have to write systemd configurations myself to make it run on reboot though <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 <alextee[m]>i already have some static websites and a few services like redmine <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]>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 ..