Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread John Cowan
On Wed, Sep 19, 2018 at 7:32 PM HiPhish wrote: > John Cowan wrote: > > How popular is r6rs anyway? From what I gathered it was pretty badly > received > and r7rs small was intentionally designed to be less ambitious, while the > upcoming r7rs will be larger than even Common Lisp. > That's basi

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread HiPhish
John Cowan wrote: > By convention, Scheme procedures whose only side effect is on a port > don't use the ! in their names: we write `read`, `write`, `display`, not > `read!`, `write!`, `display!`. > > I would suggest calling them pack-and-write and read-and-unpack; > you can leave out the "and-" i

Re: Streaming responses with Guile's web modules

2018-09-19 Thread Roel Janssen
Roel Janssen writes: > Amirouche Boubekki writes: > >> On 2018-09-18 21:42, Roel Janssen wrote: >>> Dear Guilers, >>> >>> I'd like to implement a web server using the (web server) module, but >>> allow for “streaming” results. The way I imagine this would look like, >>> is something like this

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread John Cowan
On Wed, Sep 19, 2018 at 8:33 AM HiPhish wrote: Since using MessagePack with > ports is a frequent task there is also a `pack!` procedure which takes in > a > port to pack to as well. > By convention, Scheme procedures whose only side effect is on a port don't use the ! in their names: we write `

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread HiPhish
Thompson, David wrote: > So does this allow for sending over arbitrarily nested s-expressions > (i.e. anything supported by Guile's 'read' and 'write' procedures)? > For example: > > (pack '((foo . 1) (bar . (2 3 4)) (baz . "hello"))) Not quite, you are limited to the types MessagePack defines

Re: [ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread Thompson, David
On Wed, Sep 19, 2018 at 8:34 AM HiPhish wrote: > > ## What is MessagePack ## > > MessagePack is a specification for how to turn data into byte and vice-versa. > Think of it like JSON, except instead of human readability it stresses speed > and size efficiency. The format is binary and well suited

[ANN] guile-msgpack: MessagePack for GNU Guile (+ help needed)

2018-09-19 Thread HiPhish
Hello Schemers, I am pleased to announce to the public a project I have been working on for a while: an implementation of the MessagePack[1] data serialization format for GNU Guile. https://gitlab.com/HiPhish/guile-msgpack ## What is MessagePack ## MessagePack is a specification for how to t

Re: Streaming responses with Guile's web modules

2018-09-19 Thread Roel Janssen
Amirouche Boubekki writes: > On 2018-09-18 21:42, Roel Janssen wrote: >> Dear Guilers, >> >> I'd like to implement a web server using the (web server) module, but >> allow for “streaming” results. The way I imagine this would look like, >> is something like this: >> >> (define (request-handler