Re: Guile bugs

2017-07-20 Thread Marko Rauhamaa
Mark H Weaver : > Marko Rauhamaa writes: > >> l...@gnu.org (Ludovic Courtès): >> >>> libgc knows which regions it must scan and mmap’d regions like this >>> are not among them. >> >> Wow, where is that documented? I would have imagined it scanned all >> writable RAM and CPU registers. > > It's do

Re: Questions about the (web client) module.

2017-07-20 Thread Mark H Weaver
Roel Janssen writes: > Here's the entire code I use: > > (define* (sparql-query-post query >#:key >(host "localhost") >(port 8890) >(graph "") >(type "json")) > (let ((base-ur

Re: Questions about the (web client) module.

2017-07-20 Thread Mark H Weaver
Roel Janssen writes: >>> Then my next question is about "multipart/form-data" content types. >>> My code looks like this: >>> >>> #:headers `((content-type . ,(string-append >>> "multipart/form-data; boundary=" boundary)) >>> (Accept . "*/*")) >>> >

Re: Guile bugs

2017-07-20 Thread Mark H Weaver
Marko Rauhamaa writes: > l...@gnu.org (Ludovic Courtès): > >> libgc knows which regions it must scan and mmap’d regions like this are >> not among them. > > Wow, where is that documented? I would have imagined it scanned all > writable RAM and CPU registers. It's documented here: http://www.hbo

Re: Questions about the (web client) module.

2017-07-20 Thread Roel Janssen
Hi Ludo’, Thanks for your response. Ludovic Courtès writes: > Hi Roel, > > Roel Janssen skribis: > >> When I use http-post, and I want to change the HTTP header called >> "Content-Type", I seem to need to spell it as "content-type" in the >> #:headers part of the 'http-post' section. Other hea

Re: Guile bugs

2017-07-20 Thread Marko Rauhamaa
l...@gnu.org (Ludovic Courtès): > libgc knows which regions it must scan and mmap’d regions like this are > not among them. Wow, where is that documented? I would have imagined it scanned all writable RAM and CPU registers. Marko

Re: Guile bugs

2017-07-20 Thread Ludovic Courtès
Hi Marko, Marko Rauhamaa skribis: > taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer"): [...] >>> 2. What would prevent Guile's GC from scanning the mmapped area for >>> pointers? >> >> I don't know the details but AFAIK this is no problem with Boehm GC. > > I don't understand. It c

Re: Guile bugs

2017-07-20 Thread Marko Rauhamaa
taylanbayi...@gmail.com (Taylan Ulrich "Bayırlı/Kammer"): > Marko Rauhamaa writes: > >> l...@gnu.org (Ludovic Courtès): >> >>> I’m very skeptical about this use case (I’d use ‘mmap’ and get a >>> bytevector.) >> >> Please elaborate. >> >> 1. Does Guile offer mmap to Scheme code? > > It's pretty

Re: Guile bugs

2017-07-20 Thread Taylan Ulrich Bayırlı/Kammer
Marko Rauhamaa writes: > l...@gnu.org (Ludovic Courtès): > >> I’m very skeptical about this use case (I’d use ‘mmap’ and get a >> bytevector.) > > Please elaborate. > > 1. Does Guile offer mmap to Scheme code? It's pretty easy to call C functions from Scheme. Here's a trivial example. $ cat m

Re: Guile bugs

2017-07-20 Thread Marko Rauhamaa
l...@gnu.org (Ludovic Courtès): > I’m very skeptical about this use case (I’d use ‘mmap’ and get a > bytevector.) Please elaborate. 1. Does Guile offer mmap to Scheme code? 2. What would prevent Guile's GC from scanning the mmapped area for pointers? 3. How do I efficiently encode infor

Re: Questions about the (web client) module.

2017-07-20 Thread Ludovic Courtès
Hi Roel, Roel Janssen skribis: > When I use http-post, and I want to change the HTTP header called > "Content-Type", I seem to need to spell it as "content-type" in the > #:headers part of the 'http-post' section. Other headers like "Accept" > do not seem to follow the same lowercase style rout

Guile bugs

2017-07-20 Thread Ludovic Courtès
Hi Linas, Linas Vepstas skribis: > Lack of decent science libraries for scheme is a major stumbling block, for > me. Simply having sine and cosine is not enough. I got excited (a decade > ago) when I realized that guile supported GnuMP, and then rapidly deflated > when I realized it only suppo

Questions about the (web client) module.

2017-07-20 Thread Roel Janssen
Dear Guilers, When I use http-post, and I want to change the HTTP header called "Content-Type", I seem to need to spell it as "content-type" in the #:headers part of the 'http-post' section. Other headers like "Accept" do not seem to follow the same lowercase style route. More confusingly, using