<ArneBab>CharlieBrown: however the easier way is to just guild compile *.scm and then import from wisp <paroneayea>ArneBab: it would be interesting to write a wisp pretty-printer if there isn't one <paroneayea>ArneBab: though it might also be interesting to have a scm -> wisp that preserves indentation and etc exactly the same... that would be harder to write though :) <CharlieBrown>ArneBab: How would I "guile compile *.scm and then import from wisp"? <daviid>CharlieBrown: any url of this similar app you were refering to that compares to foliot? <nikita1>nalaginrut: I have a question concerning artanis build process. Don't you object if I make the Makefile more polite with respect to *BSD systems? I have a lot of BSD installations where I'd use artanis.. and I'm porting it now on kqueue <codemac>is there any way to list all bound variables? <ArneBab_>paroneayea: a wisp pretty-printer would be great! scm->wisp with preserved indentation *and comments* is harder, because it requires doing actual parsing by hand (you can’t just defer everything to (read)). <ArneBab_>CharlieBrown: you just create a module, i.e. (example) in example.scm, call guild example.scm (creates the *.scm.go cache file), then you can use "import : example" to get the module <ArneBab_>CharlieBrown: since wisp and regular scheme both use the same bytecode (and libraries and so on), you can call any scheme module from wisp — as soon as it has been compiled. <ArneBab_>CharlieBrown: you might need to add the load path: `guile -L .` ← add current folder to load path <ArneBab_>manumanumanu: I did not realize that you’re the author of Nietzsche — kudos to that the great tools! <manumanumanu>ArneBab_: Thanks. The only things I end up using in my projects are some of the io things, the therading macros and the conditionals (if-let,cond-let and such) <manumanumanu>some of that stuff is already in guile, but it is nice to not have to change anything to get it to run on chez as well <ArneBab_>it would be cool to have a compatibility layer for each pair of racket/chez/guile/chicken <ArneBab_>ideally one which provides somewhat performant schims <ArneBab_>I just removed them, do you want a paste? <ArneBab_>manumanumanu: do you allow (or rather: not explicitely forbid) secondary licenses in Nietzsche? (needed for GPL compatibility) <manumanumanu>I am going to rewrite some parts of it to not depend on other parts, so that one can just pick and choose the files they want <nalaginrut>nikita1: it's ok to be compatible with BSD, only if not break GNU things <nalaginrut>nikita1: and if you want to modify Makefile, please modify Makefile.in <nikita1>nalaginrut: sure. Why don't you use automake? <manumanumanu>If I am writing a library using the r6rs library syntax, is there any way to import the "default" guile environment? (import (guile)) works, but doesn't give me vector-copy <manumanumanu>Which could be imported by importing srfi-43, but it would be much neater if I could just get the default environment <lloda>manumanumanu: (import (guile-user)) ? <ArneBab_>manumanumanu: if you call ,use in the guile shell, you get the imported modules <manumanumanu>Are the repl modules different from the default modules when run as "guile file.scm"? <ArneBab_>the REPL has additional tools you need to import when you run a file <ArneBab_>ecraven: could you re-run the guile part of your benchmark with guile-2.2.2? <nalaginrut>nikita1: when you can write compact and simpler Makefile easily, you never want to use automake <nikita1>nalaginrut: agree... I've just thought that automake is de-facto standard for any guile library... <nikita1>Is there some convinient way for guile applications/libraries packaging (like pip or CPAN)? <nalaginrut>nikita1: autoconf and make is the standard, but the tool generating them is unnecessary to be so <nalaginrut>I ever want to write a new tool in Scheme to replace configure, but compatible with configure, it's possible if we implement m4 language on Guile <nalaginrut>nikita1: you may take a look at guildhall and guix, the packaging info file is good to be followed <nikita1>what's the current status of guildhall? I see, it is far from critical mass of packages .. <ecraven>ArneBab_: I will, just need to update all packages on the benchmark machine <nalaginrut>nikita1: there will be a package manager for Artanis since 0.3 for building good community, it's welcome to contribute <nikita1>nalaginrut: you mean -- it will be a package of Artanis for guildhall/guix? or another one package manager for web applications/modules? <nalaginrut>nikita1: I've explain 3 kinds of package managers <nikita1>Is there a one single repository for such modules as guile-json, guile-redis, guile-dbi ? <ArneBab_>nikita1: guildhall could be, but is not — the current momentum rather points towards using guix <janneke>i have a spawn that takes some time (minutes) and sends partial results to stdout, progress to stderr <janneke>is there a recipe/example for that for me to steal? <ArneBab>janneke: is the spawn the program you want to write? <ArneBab>OrangeShark: guix potluck was what I meant — thank you! <janneke>ArneBab: I'm spawning a c++ binary from Guile <janneke>i would usually do open-pipe to read it all in one go <ArneBab>that’s also what I’m typically doing — add some char-ready? and drain-input to check for more input. <ArneBab>janneke: I’d guess that the ideal option would be a coroutine <janneke>Hmm, I just want an async pipe and register handlers on stdout, stderr, close ***micro` is now known as Guest24478
<janneke>ArneBab: yes, probably...easier to steal a solution, though :-) <spk121>So, I tried to take some C code from POSIX 'ed' and convert it to Scheme. After a few days of this, I am both in awe of and horrified by that codebase. <janneke>spk121: a friend of mine is trying to reimplement bash in Scheme, so I have some ideas. Would you like to elaborate on the `awe' you felt? <spk121>janneke: There is a the mix of hand-written C parsers and global state. It is hard to tell what controls what. <spk121>janneke: plus the interpretation of some of the tokens depends on later tokens, so it can't be parsed in order <spk121>janneke: but on the face of it, it looks so simple... <janneke>spk121: is it amazingly elegant, or is it a terrible hack -- that idea... <janneke>ed in Scheme...why; what are you doing? <spk121>janneke: OK. I have a document made of a list of strings. I want to describe changes to that document as a series of 'opcodes'. <spk121>Like 'add character' 'split line'. This would allow distributed editing of the document by sending just the opcodes. <spk121>So my test driver was already something like ed, so I got sidetracked trying to actually replicate ed. <spk121>functional doc creation! (append-string " world!" (append-line "hello" (empty))) <janneke>amz3`: no...that may be what I need...thanks <amz3`>janneke: re your issue you were... ok <janneke>i was thinking i would need to go fibers or async <amz3`>scroll at the bottom there is an example, but maybe not exactly like you describe, for the simple case where you need to close de input port before reading from output port <janneke>create my own soft-port and handle it there...nice <amz3`>maybe i dunno fibers that well, I am not even sure susupendable port work on file ports <wingo>suspendable ports works on files if they are marked nonblocking and if the underlying file will actually return -EWOULDBLOCK <wingo>which is not the case for files on disk but oh well <wingo>but for processes it should work as the ports are pipes <avoine>It still have some issues like when you hit enter it doesn't return the cursor to the first column or moving the cursor with the arrow is not visible immediately <avoine>also I needed to add a read-char/usleep loop because it was not blocking on eof (I'm obviously missing something here) <amz3`> (define-immutable-record-type <pos> <amz3`>is it legal to have exclamation mark procedures when the record is immutable? <spk121>sneek: later tell avoine that GNU Teseq is useful for debugging escape sequence output. I'll check out the code when I'm back home. <amz3`>nikita1: what's the library you use to render graphs? <paroneayea>sneaked in some SICP characters into ActivityPub and they got illusttrated by mray <paroneayea>which I think makes this the first fanart of the SICP characters I know of ;) <civodul>paroneayea: so "Candidate Recommendation", what does that mean in the W3C process? <paroneayea>civodul: it means it's on track to become an official recommendation, and we're now in the "please implement, we think it's ready for real implementations" phase <paroneayea>the next phase, after we're sure the implementations are working together <paroneayea>is to make it an actual Proposed Recommendation to the W3C <paroneayea>which the W3C and its members will put to a vote to ratify or not as a real Recommendation <civodul>woow, that sounds pretty encouraging no? <civodul>plus the implementation phase must be pretty fun i guess :-) <paroneayea>civodul: yeah... though I'm stuck on writing the test suite for the next couple weeks, which isn't fun :) <paroneayea>I've deployed a Guile application using http + websockets on Guix on DigitalOcean! <civodul>paroneayea: indeed, sounds like a déjà vu :-) <civodul>you managed to make a test suite look fun :-)