<cmhobbs>can someone point me to examples of a guile program running as a daemon and a guile program taking arguments from the command line? <mark_weaver>cmhobbs: for command-line access, see section 4.3.3 of the manual (Command Line Handling) <mark_weaver>regarding running as a daemon, I don't have an example handy, but we have 'primitive-fork' and 'setsid'. see section 7.2.7 of the manual (Processes) <ijp>one of the nicer thinks about systemd is that you just have to write a config to get a daemon <ijp>the traditional way is kind of silly <mark_weaver>cmhobbs: well, of course guile comes with a few built-in daemons, e.g. the web server in module/web/server.scm and module/web/server/http.scm <mark_weaver>and the repl server in module/system/repl/server.scm <ArneBab>ijp: is it very different from what you can do with start-stop-daemon or runit? <ArneBab>(because asking “how is that different from <simple but scarcely documented feature>?” isn’t a useful question ☺) *artyom-poptsov is preparing a new Guile-DSV release <lloda> where do I need to look to have quasiquote support in #2(...) ? <civodul>lloda: scm_read_array in read.c, i think ***first-healer is now known as healer
<civodul>paroneayea: just saw your post about pipes <civodul>more reliable than opening pipes, if that's an option for you <paroneayea>civodul: I looked into it! The main thing about it is it seemed like it would require that I resolve a few other imports of other guix libraries <paroneayea>civodul: also, I got interested in the idea of, why is this so much harder in guile than it is in python? maybe that's worth fixing! :) <civodul>paroneayea: it's really just two files, guix/{gcrypt.scm,hash.scm} <civodul>i wouldn't be surprised if there were other bindings out there though :-) <paroneayea>I do think I want to write a (open-pipe-stdports) which does a multi value return of stdin, stdout, stderr <paroneayea>I probably will snarf the guix stuff in the meanwhile, yes :) <paroneayea>but I do think I want that to exist in guile. I wonder how hard it would be to do? <civodul>i agree it's useful and definitely feasible <sneek>Welcome back davexunit, you have 1 message. <sneek>davexunit, ArneBab says: nice! <davexunit>propagation of constraints, the circuit simulator <davexunit>paroneayea: I took the "agenda" from the circuit simulator ***first-healer is now known as healer
<paroneayea>davexunit: looking at the sicm book brings back to my mind <paroneayea>I wish there was a "math notation for computer programmers" book <davexunit>I understand math better when I can incorporate the concepts with computer programs <paroneayea>I started re-reading my old calculus textbook and thinking, "hey, I go through some of these things every day, but I've forgotten what all these symbols map to" <davexunit>for example: derivatives and integrals. very handy for game programming. <paroneayea>because I can't think in terms of the symbols because there's been such a disconnect of time <ijp>too much overloading to do it effectively <davexunit>I don't know if many people actually like reading those long papers <ijp>paroneayea: what does * mean? <davexunit>one of the things mentioned is cyclic dependencies <ijp>a sum type instead of exceptions? definitely a haskeller <paroneayea>davexunit: and that article is why R5RS is all you need ;) *ijp loads his gfdl and makes all paroneayea worst features invariant. <civodul>though i find the argument against exceptions a bit weak ***michel_mno is now known as michel_mno_afk
<sneek>daviid, you have 3 messages. <sneek>daviid, mark_weaver says: 'remove-dot-segments' will do the wrong thing for something like .././../foo/../bar <sneek>daviid, mark_weaver says: you need to remove all the . and .. components from the front, but keep track of how many of those were .., and then add that many .. components back to the front when the loop is finished. <sneek>daviid, mark_weaver says: I haven't looked closely at your 'merge-paths' yet <daviid>mark_weaver: changed your name already <daviid>mark_weaver: i did think about that and it works, what makes you think it does not ? <daviid>(remove-dot-segments ".././../foo/../bar") <daviid>paroneayea: all i do is (C) fsf, till now it is what i want indeed <daviid>mark_weaver: this corrects your name, a tipo in the commentary, and some indentation - I prefer this way for named let and (_ code) on the same line when using match: http://paste.lisp.org/+35I5 but nothing changd in the algo itself <paroneayea>daviid: you've assigned all your stuff to the FSF? <daviid>of topic, wrt gitorious, any one can tell me how to get/save a copy of what is there so i can reinstall somewhere else later, i've not decided yet what will do ... <paroneayea>daviid: did you sign something with them to do a blanket assignment? <daviid>paroneayea: i did sign the contribution documents, like you maybe? this was necesary to have write access to guile-gnome, clutter and g-wrap... but (C) is something else, i think, anyone can write GPL based code and assign the (C) to the fsf [i've been told...] <paroneayea>daviid: hm, nope, I don't think that's how it works <paroneayea>to assign copyright the FSF has to also be party to it <paroneayea>so for the projects you've assigned to I believe that's true <davexunit>but it sounds like daviid has signed the documents for guile-gnome, so it's okay? <daviid>the (C) is who will enforce if someone or a company enfringe, from what i did read and chat here [2y ago] i can assign (C) to the fsf <daviid>Kisê is (C) fsf, and everything actually, but if that is a problem let me know <daviid>davexunit: could you ask maybe? i just fell happier to grant the (C) to the fsf for all i do <paroneayea>I asked because I didn't think grip was a GNU project <paroneayea>also sorry, I don't mean to be annoying or persnickety daviid, but I think that people have been confused about this before <daviid>paroneayea: yes i actually did read i could, but ... <paroneayea>eg Aaron Swartz said on his website "on death all my copyright is assigned to the FSF" but I talked to someone who said "yeah it's not that simple" <paroneayea>anyway davexunit is probably right that you should email licensing@fsf.org if you want clarity <paroneayea>I'm glad you're enthusiastic about assigning to the fsf :) <paroneayea>and don't mean to be a burden here on such things <daviid>yeah, code is not mine, it is from and for humanity <daviid>we are just messengers, in that field, others in other fields, everything is ideas and art, all this pertence to hunabity <paroneayea>whoo just 1.75 hours of contracting left then I'm done for the week