Re: propose deprecation of generalized-vector-*

2013-01-23 Thread Andy Wingo
On Tue 22 Jan 2013 15:31, Daniel Llorens writes: > On Jan 21, 2013, at 17:11, Andy Wingo wrote: > > The patch attached applies over yours and is to document this function > and a couple others in the manual. Thanks, applied and pushed to wip-generalized-vectors. > Maybe we should have scm_array

Re: propose deprecation of generalized-vector-*

2013-01-23 Thread Andy Wingo
Hi, On Wed 23 Jan 2013 00:27, Daniel Llorens writes: > I guess I don't value that much having a specific interface just for > rank 1 objects. I don't care much either; I don't think I have ever used the generalized vector routines. If I wanted real polymorphism, I think I would also want it ov

Re: [PATCH] add new read-delimited option to return #f while terminating delimiter can't be found.

2013-01-23 Thread Andy Wingo
On Wed 07 Mar 2012 17:32, Nala Ginrut writes: > I found current read-delimited will return the whole string if delimiter > can't be found. It's inconvenient for some cases. > > I expect it return #f for this. > And Andy said it maybe because some back compatible reasons. So I decide > to add an o

Re: [PATCH] add new read-delimited option to return #f while terminating delimiter can't be found.

2013-01-23 Thread Nala Ginrut
On Wed, 2013-01-23 at 11:00 +0100, Andy Wingo wrote: > On Wed 07 Mar 2012 17:32, Nala Ginrut writes: > > > I found current read-delimited will return the whole string if delimiter > > can't be found. It's inconvenient for some cases. > > > > I expect it return #f for this. > > And Andy said it ma

[FEATURE] List all available languages

2013-01-23 Thread Nala Ginrut
As I talked with Andy, we may add a feature to list all available languages. And if users add a new language to the %load-path, they may see it listed out. Besides, this feature could be used in 'guild compile' to detect all the language available. Attached is a proc named 'get-all-available-langu

Re: propose deprecation of generalized-vector-*

2013-01-23 Thread Daniel Llorens
On Jan 23, 2013, at 10:06, Andy Wingo wrote: > For C, that makes sense. Something should be done for Scheme as well, > but it's not terribly urgent. Perhaps make scm_array_ref not be bound > to "array-ref", and instead bind "array-ref" to some function that takes > two optional arguments and a

Re: propose deprecation of generalized-vector-*

2013-01-23 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > What is a vector? > > Possible answers: > > 1. A vector is something that answers #t to vector?, which contains > some number of storage slots accessible in a mostly-O(1) way, the > number of slots is given by vector-length, and the slots can be > accessed with

stable-2.0 merged to master; wip-rtl rebased

2013-01-23 Thread Andy Wingo
Hi, Just a note that I have merged stable-2.0 to master, and rebased wip-rtl on top of that. `master' should build and pass make check for everyone. If that is not the case, please let me know. Thanks, Andy -- http://wingolog.org/

Re: More RTL Tests

2013-01-23 Thread Andy Wingo
On Sun 14 Oct 2012 21:59, Noah Lavine writes: > I have been working on understanding RTL, and I wrote the following > tests. They're mostly to illustrate for myself how calling works in > RTL, but they also serve to test it. Any objections if I commit them > as part of rtl.test? Committed, thank

rebased wip-rtl-cps

2013-01-23 Thread Andy Wingo
Hi Noah, A brief note to let you know that I rebased wip-rtl-cps, as wip-rtl itself was rebased. Cheers, Andy -- http://wingolog.org/

Re: Thread-unsafe initialization problems in Guile

2013-01-23 Thread Mark H Weaver
Hi Andy, Andy Wingo writes: > On Thu 29 Nov 2012 23:42, Mark H Weaver writes: > >> SCM >> scm_local_eval (SCM exp, SCM env) >> { >> static SCM local_eval_var = SCM_BOOL_F; >> >> if (scm_is_false (local_eval_var)) >> local_eval_var = scm_c_public_variable ("ice-9 local-eval", >> "local-e

Re: Thread-unsafe initialization problems in Guile

2013-01-23 Thread Mark H Weaver
I wrote: > For a good introduction to what is needed to write robust multithreaded > code on modern weakly-ordered memory architectures, I recommend the > following article: > > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2480.html and if you want a deeper understanding of what's goin

Re: bug#13342: Errors trying to build Guile 2.0.7

2013-01-23 Thread Peter Teeson
Hi Andy: Thanks for your patient help. GNU make and friends is entirely new to me at the detail level. I did the following (starting from scratch): (0) Starting with the guile-2.0.7 tar ball ./configure && make && make check This used gcc and had 77 warnings and 1 test failure bad return from

Re: syntax closures

2013-01-23 Thread Stefan Israelsson Tampe
Hi, I managed to do what you said, the result is at https://gitorious.org/syntax-closures I changed it so that it is enough to do (use-modules (srfi srfi-72)) and hacking along with it using both #, and #,@ Especially #,@ was difficult but using the ck macro the appending become more natural.

Re: syntax closures

2013-01-23 Thread Alex Shinn
On Thu, Jan 24, 2013 at 8:24 AM, Stefan Israelsson Tampe < stefan.ita...@gmail.com> wrote: > Hi, > > I managed to do what you said, the result is at > > https://gitorious.org/syntax-closures > > I changed it so that it is enough to do > > (use-modules (srfi srfi-72)) > Note SRFI-72 is not an impl

Re: syntax closures

2013-01-23 Thread Stefan Israelsson Tampe
Hi Alex! > Note SRFI-72 is not an implementation of syntactic-closures. > It's an alternate hygiene algorithm closer to the R6RS one which > includes a compatible syntax-case and some convenience utilities. To comments to this: 1. The main reason for SRFI-72 is to e.g. capture the let bound y in