IRC channel logs


back to list of logs

<janneke>mes now has a repl
<janneke>ACTION -> zZzzz
***holomorph is now known as Guest10135
***holomorp1 is now known as holomorph
***ivladak is now known as ivladak-work
***Bobbejaantje is now known as Galschreeuwracer
<amz3>héllo #guile :)
<amz3>OrangeShark: I pushed the test "framework", I am not using srfi 64 because it has a bug
<amz3>but once the bug is solved it should be possible to move to srfi 64 easily
<amz3>OrangeShark: also it's not integrated with autotools
<amz3>OrangeShark: did you made progress regarding git web replacement?
<amz3>TBH, right now I am overwhelmed
<amz3>I need to break the task into smaller tasks
***whiteline__ is now known as whiteline
***Galschreeuwracer is now known as bonsaishitten
<paroneayea>hi wingo
<roelj>I'm trying to put the contents of a binary file into a string with Guile, but `(with-input-from-file filename read-string)' doesn't seem to do it.. How can I properly do this?
<rekado>roelj: a string is for text. You could use a bytestream instead.
<rekado>sorry, bytevector
<roelj>rekado: So a string isn't the equivalent of `char *' or `uint8_t *'? :O
<roelj>Are bytevectors R6RS?
<rekado>see the “Bytevectors” section in the Guile reference. Provided by the ‘(rnrs bytevectors)’ module.
<roelj>Reading it as we speak
<rekado>you can convert between bytevectors and strings but this requires you to provide an encoding
<rekado>I’m using bytevectors to read HTTP POST payloads in rcas-web.
<roelj>I want to use it to serve static files from my web server (Using the (web server) module).
<rekado>roelj: maybe this will help you then:
<rekado>see render-static-file
<rekado>this was adapted from guix-web by davexunit
<roelj>Aha. There seems to be more interesting things I also have functions for (like file-extension).
<roelj>Thanks for sharing this!
<random-nick>roelj: strings are the equivalent to something like C++ strings
<roelj>Actually, it makes a lot of sense that strings need an encoding to interpreter the bytes.. Something I had just always taken for granted to work.
***random-nick is now known as lynch-erec
***lynch-erec is now known as random-nick