Re: [PATCH] Futures: Avoid creating the worker pool more than once

2012-11-10 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: + ;; setting 'create-workers!' to a no-op is an optimization, but it is + ;; still possible for '%create-workers!' to be called more than once + ;; from different

[PATCH]

2012-11-10 Thread Ludovic Courtès
Hello, As Mark suggested on IRC, here’s a patch that moves SRFI-9 under “Compound Data Types”, plus a new section “Record Overview” that aims to guide users through the maze of record APIs. Initially, I wanted to add a “Records Structures” section, and move SRFI-9, Guile records, and Guile

Re: Functional record setters, a different approach

2012-11-10 Thread Ludovic Courtès
Hello! Documentation attached. Comments? BTW, why does ‘set-field’ has the record as its 2nd argument instead of 1st (unlike ‘set-fields’)? Thanks, Ludo’. From f7877d47009dc85e74bc63fd562b77f552a54bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= l...@gnu.org Date: Sat, 10

Re: Import your CK macro into Guile?

2012-11-10 Thread Ludovic Courtès
Hi Mark, Mark H Weaver m...@netris.org skribis: I'd like to import your CK macro into Guile. Would you be willing to contribute it to Guile? If so, please respond to the list to say so. It's small enough (15 lines) that I guess we don't need papers. For the record, there’s usually no

Re: Functional record setters, a different approach

2012-11-10 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: Documentation attached. Comments? Thanks! Looks good to me, modulo a few comments below. BTW, why does ‘set-field’ has the record as its 2nd argument instead of 1st (unlike ‘set-fields’)? Good question. I followed the syntax of

Re: Import your CK macro into Guile?

2012-11-10 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: I'd like to import your CK macro into Guile. Would you be willing to contribute it to Guile? If so, please respond to the list to say so. It's small enough (15 lines) that I guess we don't need papers. For the

Re: [PATCH]

2012-11-10 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: As Mark suggested on IRC, here’s a patch that moves SRFI-9 under “Compound Data Types”, plus a new section “Record Overview” that aims to guide users through the maze of record APIs. Wow, thanks for doing this! Looks great, please push :) Mark

Re: [PATCH] Moving SRFI-9 doc under “Compound Data Types”

2012-11-10 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: As Mark suggested on IRC, here’s a patch that moves SRFI-9 under “Compound Data Types”, plus a new section “Record Overview” that aims to guide users through the maze of record APIs. Wow, thanks for doing this!

Re: Functional record setters, a different approach

2012-11-10 Thread Ludovic Courtès
Mark H Weaver m...@netris.org skribis: l...@gnu.org (Ludovic Courtès) writes: [...] BTW, why does ‘set-field’ has the record as its 2nd argument instead of 1st (unlike ‘set-fields’)? Good question. I followed the syntax of 'set-field' from your original patch, but that argument order did

Re: thoughts on native code

2012-11-10 Thread Stefan Israelsson Tampe
I would like to continue the discussion about native code. Some facts are, For example, consider this (define (f x) (let loop ((s 0) (i 0)) (if (eq? i x) s (loop (+ s i) (+ i 1) The timings for (f 1) ~ (f 100M) is 1) current vm : 2.93s 2) rtl

Re: thoughts on native code

2012-11-10 Thread Noah Lavine
Hello, I assume compressed native is the idea you wrote about in your last email, where we generate native code which is a sequence of function calls to VM operations. I really like that idea. As you said, it uses the instruction cache better. But it also fixes something I was worried about,

Re: Import your CK macro into Guile?

2012-11-10 Thread oleg
Hello! I'd like to import your CK macro into Guile. Would you be willing to contribute it to Guile? Yes, certainly. I'm glad you found it helpful. Cheers, Oleg

Re: [PATCH]

2012-11-10 Thread Ian Price
The patch looks fine to me (it had better be, since it is already pushed :P), however I wonder if it wouldn't be prudent to look to moving define-record-type into guile proper, and making (use-modules (srfi srfi-9)) effectively a no-op. -- Ian Price -- shift-reset.com Programming is like

Re: [PATCH]

2012-11-10 Thread Noah Lavine
SRFI-9 seems to be part of R7RS anyway (assuming there are no sudden last-minute changes), so I'd say we'll definitely want to do something like that soon. Noah On Sat, Nov 10, 2012 at 10:30 PM, Ian Price ianpric...@googlemail.comwrote: The patch looks fine to me (it had better be, since it

Re: [PATCH] Fix `get-string-n!' i/o-decoding exception behavior

2012-11-10 Thread Mark H Weaver
Hi Andreas, Thanks for the patch. See below for my comments. Andreas Rottmann a.rottm...@gmx.at writes: Previously, `get-string-n!' from `(rnrs io ports)' would not throw the exception required by R6RS, and could not easily do so due to being implemented entirely in C. This change fixes

Re: Adding to the end of the load path

2012-11-10 Thread Mark H Weaver
Hi Andreas, Andreas Rottmann a.rottm...@gmx.at writes: Ian Price ianpric...@googlemail.com writes: Hi guilers, On the #guile IRC channel, Mark Weaver has stressed to me that he thinks it would be a good idea for us to be able to add paths to the end of the load path, since it would allow

Re: Improving the API for read options

2012-11-10 Thread Mark H Weaver
l...@gnu.org (Ludovic Courtès) writes: Mark H Weaver m...@netris.org skribis: One problem I have with the existing API has to do with its treatment of square brackets. There are multiple things that one might want to do with square brackets, but since 'square-brackets' is a boolean option,