Re: Collecting suggestions of Guildhall

2013-01-22 Thread Nala Ginrut
On Tue, Jan 22, 2013 at 7:30 PM, Andy Wingo wrote: > On Sat 12 Jan 2013 16:21, Nala Ginrut writes: > > > We'd like to start up guildhall.gnu.org, which is a guilers community > > MAYBE based on savannah to let you guys share/fetch Guile packages. Just > > like rubygems.org does. ;-) > > FWIW we

Re: propose deprecation of generalized-vector-*

2013-01-22 Thread Daniel Llorens
On Jan 22, 2013, at 21:52, Andy Wingo wrote: Hello, > Handling stride and bounds is not a problem. The generic array handle > interface lets us do this in a straightforward way. Certainly, but in this case, a vector is just an array of rank 1. I guess I don't value that much having a specific

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

2013-01-22 Thread Andy Wingo
On Sat 19 Jan 2013 05:42, Peter Teeson writes: > bad return from expression `(f-sum -1 2000 -3 400)': > expected 3971999; got 3972255 > > FAIL: test-ffi > > > There are 2 compilers available from Apple for C/C++  > i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4

Re: Running non-scheme scripts: some thoughts

2013-01-22 Thread Ludovic Courtès
Andy Wingo skribis: > On Mon 21 Jan 2013 17:19, l...@gnu.org (Ludovic Courtès) writes: [...] >> Perhaps we could have a couple of tests for -c, for instance, as shell >> scripts in test-suite/standalone? > > That would be great. Would you be interested in doing this? :-) Sure. :-) The patch

Re: propose deprecation of generalized-vector-*

2013-01-22 Thread Andy Wingo
Hi Daniel, Thanks for thinking about this. On Tue 22 Jan 2013 19:31, Daniel Llorens writes: >> I think this is fair for type polymorphism. It makes sense to let >> vector- work on uniform vectors because the implementation should be >> identical. >> >> It's different for arrays because even fo

Re: syntax closures

2013-01-22 Thread Stefan Israelsson Tampe
Ok, the unsyntax-72 code cannot be cleanly done I think. You really need to use a reader macro. I leave the code base modding the reader char #. as before and will simple wait for a a possibility of per port reader option to be configured via a library. /Stefan On Tue, Jan 22, 2013 at 5:38 PM, An

Re: syntax closures

2013-01-22 Thread Stefan Israelsson Tampe
Hi wingo: Yes this is something I can do. But on a second thought I can't find a way to handle unsyntax-splicing without a splicing macro. Modding #, and not #,@ just screams for difficult errors to show up. Therefor I will in stead just write another macro unsyntax-72 that people can use. btw, I

Re: propose deprecation of generalized-vector-*

2013-01-22 Thread Daniel Llorens
On Jan 22, 2013, at 15:31, Daniel Llorens wrote: > On Jan 21, 2013, at 17:11, Andy Wingo wrote: >> I always wondered why vector-ref and vector-set! didn't do what >> generalized-vector-ref and generalized-vector-set! did. I mean, they >> are primitive generics. Might it make sense to allow vec

Re: syntax closures

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 17:19, Stefan Israelsson Tampe writes: >> > (read-hash-extend #\_ syntax-closure-reader) >> >> Have you tried having your srfi-72 module export a binding for unsyntax? > > I would like to use that of cause, but does it mix well with other > already written code? It should wor

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

2013-01-22 Thread Nala Ginrut
done. With little modify: 1. test-case/tests/rdelim.test: change 'delimiter fail, fail' to 'delimiter miss, fail' 2. doc/ref/api-io.texi: Sentence fix. Thanks! On Tue, Jan 22, 2013 at 8:44 PM, Andy Wingo wrote: > On Thu 17 Jan 2013 10:07, Nala Ginrut writes: > > > On Wed, 2013-01-16 at 18:42

Re: Guile build failure

2013-01-22 Thread David Pirotte
Hi Andy, > > ‘load.test’ uses ‘compile-file’, and it seems that ‘compile-file’ does > > an ‘open-input-file’ with no corresponding ‘close-port’. That may be > > the problem. > > Can you try the following patch? ./check-guile load.test on your NFS > machine should do it. I did try and it still

Re: syntax closures

2013-01-22 Thread Stefan Israelsson Tampe
Hi On Tue, Jan 22, 2013 at 1:56 PM, Andy Wingo wrote: > > Hi, > > On Thu 17 Jan 2013 21:51, Stefan Israelsson Tampe > writes: > > > Hi all, I wanted to resurrect the idea of a syntactic closure. I did > > some thinking and > > Meta: I seem to be receiving your mails with this really strange li

Re: Collecting suggestions of Guildhall

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 16:24, Nala Ginrut writes: > Yes, but do we have some kind of spec standard for guildhall packages? The zip bundles, no? The guild tool should create the bundles. I had another thought. When someone submits a bundle, they should HTTP POST it to a URL on guildhall.gnu.org.

Re: read-all ?

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 14:32, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> So, proposal: read-all{,!} to read-string{,!} and add optional count >> argument to read-string, and leave it in ice-9 rdelim. WDYT? > > Go for it! Done, thanks for the review :) Andy -- http://wingolo

Re: Running non-scheme scripts: some thoughts

2013-01-22 Thread Andy Wingo
On Mon 21 Jan 2013 17:19, l...@gnu.org (Ludovic Courtès) writes: > Bikeshedding: I’d prefer --language. Changed, and addressed your other comments. Attached. > Perhaps we could have a couple of tests for -c, for instance, as shell > scripts in test-suite/standalone? That would be great. Would

Re: propose deprecation of generalized-vector-*

2013-01-22 Thread Daniel Llorens
On Jan 21, 2013, at 17:11, Andy Wingo wrote: > Hi, > > Sorry for the long delay. > > Deprecating the generalized-vector functions sounds mostly sensible to > me, and the proposed semantics of array-length sound fine. Attached is > a first patch in that direction. The changes look good to me.

Re: read-all ?

2013-01-22 Thread Ludovic Courtès
Andy Wingo skribis: > So, proposal: read-all{,!} to read-string{,!} and add optional count > argument to read-string, and leave it in ice-9 rdelim. WDYT? Go for it! Ludo’.

Re: syntax closures

2013-01-22 Thread Andy Wingo
Hi, On Thu 17 Jan 2013 21:51, Stefan Israelsson Tampe writes: > Hi all, I wanted to resurrect the idea of a syntactic closure. I did > some thinking and Meta: I seem to be receiving your mails with this really strange line wrapping. It's been this way for a while, and it makes it difficult to

Re: Let's Talk About Backtraces and Stacks

2013-01-22 Thread Andy Wingo
On Thu 17 Jan 2013 16:34, Andy Wingo writes: > What first writing a prototype that uses the VM trap interface? ^about Andy -- http://wingolog.org/

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

2013-01-22 Thread Andy Wingo
On Thu 17 Jan 2013 10:07, Nala Ginrut writes: > On Wed, 2013-01-16 at 18:42 +0100, Andy Wingo wrote: >> On Wed 07 Mar 2012 17:32, Nala Ginrut writes: >> >> > (call-with-input-string "asdf" (lambda (port) (read-delimited "@" port >> > 'fail >> >> LGTM; just missing a test case. I would tig

Re: [PATCH] Move let/ec to top-level

2013-01-22 Thread Andy Wingo
Hi Nala, This form is missing documentation and a test case. I would also add it to (ice-9 control) instead of to the core, along with the corresponding call/ec and perhaps the longer names as well. On Mon 14 Jan 2013 16:20, Nala Ginrut writes: > +(define-syntax-rule (let/ec k e e* ...) > + (

Re: Scanning for coding declarations in all files (not just source)

2013-01-22 Thread Andy Wingo
On Tue 15 Jan 2013 10:32, l...@gnu.org (Ludovic Courtès) writes: > Mike Gran skribis: > >> Opening a file that contains a coding declaration using an encoding other >> than binary or the coding declared in the file seems like it would be >> something of a corner case.  So, IMHO it makes sense tha

Re: Collecting suggestions of Guildhall

2013-01-22 Thread Andy Wingo
On Sat 12 Jan 2013 16:21, Nala Ginrut writes: > We'd like to start up guildhall.gnu.org, which is a guilers community > MAYBE based on savannah to let you guys share/fetch Guile packages. Just > like rubygems.org does. ;-) FWIW we do have access to a guildhall.gnu.org and are in the process of s

Re: `include' relative to current file

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 11:16, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> From 856d0ef6e7a5236da36c2fae13271e643580507d Mon Sep 17 00:00:00 2001 >> From: Andy Wingo >> Date: Sun, 20 Jan 2013 20:26:59 +0100 >> Subject: [PATCH] `include' relative paths relative to including file

Re: [PATCH] Colorized REPL

2013-01-22 Thread Nala Ginrut
Hi folks! Manual of (ice-9 colorized) updated. Patch attached. Thanks! >From 4e4acbe884716b0c84f1c39bc054244112daf17d Mon Sep 17 00:00:00 2001 From: Nala Ginrut Date: Tue, 22 Jan 2013 19:02:06 +0800 Subject: [PATCH] Update manual for (ice-9 colorized). * doc/ref/misc-modules.texi: Add (ice-9 col

Re: read-all ?

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 11:01, l...@gnu.org (Ludovic Courtès) writes: >>> Are the names right? > > ‘read-all’ doesn’t convey the idea that it’s textual (unlike the R6RS > names). > > Perhaps ‘port-contents-as-string’, or ‘read-all-string’, or...? What about read-string with an optional #:count argumen

Re: Guile API for foreign languages: proposing SCM scm_list_0(void)

2013-01-22 Thread Andy Wingo
[trimming out guile-user] For me, here is the list of symbols with no C counterpart, followed by a commented list of all of them. Symbols that a non-C program would need to interact with Guile: SCM_BOOL_F SCM_BOOL_T SCM_ELISP_NIL SCM_EOF_VAL SCM_EOL SCM_UNBOUND

Re: `include' relative to current file

2013-01-22 Thread Ludovic Courtès
Andy Wingo skribis: > From 856d0ef6e7a5236da36c2fae13271e643580507d Mon Sep 17 00:00:00 2001 > From: Andy Wingo > Date: Sun, 20 Jan 2013 20:26:59 +0100 > Subject: [PATCH] `include' relative paths relative to including file > > * module/ice-9/psyntax.scm (include): Like `load', interpret relative

Re: read-all ?

2013-01-22 Thread Ludovic Courtès
Hi! Andy Wingo skribis: > On Tue 22 Jan 2013 10:15, Andy Wingo writes: [...] >> Patch attached. I didn't update the docs because it wasn't clear to me >> that (ice-9 rdelim) is actually the right place to put it. >> >> What do you think? Should we perhaps put it in a new (ice-9 ports)? I w

Re: What's the plan about language-joiner?

2013-01-22 Thread Nala Ginrut
On Tue, 2013-01-22 at 09:22 +0100, Andy Wingo wrote: > On Sat 08 Dec 2012 16:47, Nala Ginrut writes: > > > Test code here: > > cut-- > > # echo "(+ 1 1)" > aa.scm > > # guild compile aa.scm --from=scheme --to=glil -o aa.glil > > # guild compile aa.g

Re: read-all ?

2013-01-22 Thread Andy Wingo
On Tue 22 Jan 2013 10:15, Andy Wingo writes: > Hi, > > On Sat 12 Jan 2013 22:22, l...@gnu.org (Ludovic Courtès) writes: > >> Andy Wingo skribis: >> >>> I find myself writing (read-delimited "" p) to slurp in a file as a >>> string, but it's not a very straightforward way to say that. >>> >>> Wha

Re: read-all ?

2013-01-22 Thread Andy Wingo
Hi, On Sat 12 Jan 2013 22:22, l...@gnu.org (Ludovic Courtès) writes: > Andy Wingo skribis: > >> I find myself writing (read-delimited "" p) to slurp in a file as a >> string, but it's not a very straightforward way to say that. >> >> What about `read-all'? We could add it to `(ice-9 rdelim)', I

Re: What's the plan about language-joiner?

2013-01-22 Thread Nala Ginrut
On Tue, 2013-01-22 at 16:31 +0800, Nala Ginrut wrote: > On Tue, 2013-01-22 at 09:22 +0100, Andy Wingo wrote: > > On Sat 08 Dec 2012 16:47, Nala Ginrut writes: > > > > > Test code here: > > > cut-- > > > # echo "(+ 1 1)" > aa.scm > > > # guild compil

Re: What's the plan about language-joiner?

2013-01-22 Thread Andy Wingo
On Sat 08 Dec 2012 16:47, Nala Ginrut writes: > Test code here: > cut-- > # echo "(+ 1 1)" > aa.scm > # guild compile aa.scm --from=scheme --to=glil -o aa.glil > # guild compile aa.glil --from=glil --to=assembly -o aa.asm > e