Numeric improvements in stable-2.0

2013-03-20 Thread Mark H Weaver
Hello all, I wanted to briefly highlight some of the improvements to numerics that I've recently pushed to stable-2.0. * 'number->string' now reliably outputs enough digits to produce the same number when read back in. Previously, it badly mishandled subnormal numbers (printing them as "#.#"

Re: Numeric improvements in stable-2.0

2013-03-20 Thread Noah Lavine
Wow, that's great. Thank you! Noah On Wed, Mar 20, 2013 at 2:49 PM, Mark H Weaver wrote: > Hello all, > > I wanted to briefly highlight some of the improvements to numerics that > I've recently pushed to stable-2.0. > > * 'number->string' now reliably outputs enough digits to produce the > s

[PATCH] Bindings for ‘sendfile’

2013-03-20 Thread Ludovic Courtès
Hi, I plan to commit the patch below, which adds bindings for ‘sendfile’. Comments? Ludo’. >From a10f5d5d69d63495cab5432d858b1af52a2bacbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Wed, 20 Mar 2013 23:04:11 +0100 Subject: [PATCH] Add bindings for Linux's `sendfile'

makeinfo swallows page breaks

2013-03-20 Thread Ludovic Courtès
Hello, Guile (ab)uses ‘makeinfo’ to generate a file, guile-procedures.txt, from Texinfo. That file is then read at run-time to get docstrings for Guile’s primitives. The input looks like this (note the page breaks, aka. ^L): --8<---cut here---start->8--- ac

[PATCH] Add SRFI-41

2013-03-20 Thread Mark H Weaver
Hello all, Chris K. Jester-Young has been hard at work getting his SRFI-41 implementation ready in time for Guile 2.0.8, and I think it might be ready to push. What do you think? Reviews solicited. Mark PS: Although I put cky's name on this commit (he's certainly the primary author)

Re: [PATCH] Bindings for ‘sendfile’

2013-03-20 Thread Noah Lavine
Hi, sendfile looks very useful! I've thought for a while that if I had time (which I know I won't) I would make a module called (linux) with bindings for non-POSIX Linux kernel features. What do you think of this idea? If so, what do you think of putting sendfile there and expanding it with other

Re: [PATCH] Bindings for ‘sendfile’

2013-03-20 Thread Nala Ginrut
On Wed, 2013-03-20 at 23:21 +0100, Ludovic Courtès wrote: > Hi, > > I plan to commit the patch below, which adds bindings for ‘sendfile’. > > Comments? > As a server-develop fan, I definitely love it. Besides, can we add more linux-specific features and add them into a place like (ice-9 linux)?

Re: [PATCH] Bindings for ‘sendfile’

2013-03-20 Thread Mark H Weaver
Hi Ludovic, l...@gnu.org (Ludovic Courtès) writes: > I plan to commit the patch below, which adds bindings for ‘sendfile’. > > Comments? Looks great to me, modulo one comment below. I especially like the fact that although it can make use of the non-standard Linux syscall, it works properly on a

Re: [PATCH] Bindings for ‘sendfile’

2013-03-20 Thread Mark H Weaver
Mark H Weaver writes: >> +for (result = 0, left = c_count; result < c_count; ) > > If 'c_count's does not fit in a 'ssize_t', then this loop will go > forever and 'result' will wrap around to negative numbers and undefined > C behavior. Having just consulted the relevant C standards, I see th

Re: Special variables to relax boxing

2013-03-20 Thread Mark H Weaver
Hi Stefan, Stefan Israelsson Tampe writes: > I wouldl like to start a discussion of introducing a way to mark > variables as special, and by that mean that set! variables does not > nessesary get boxed. I don't think you fully understand the ramifications of what you're proposing here. In the g