Re: Growable arrays?

2012-06-12 Thread David Kastrup
Mark H Weaver writes: > Hi David, > > David Kastrup writes: >> I don't think I need yet another data structure deficient in some >> respects. We have vectors that can't grow, hashtables that can grow but >> only index through a hash function, vlists that can grow but have >> immutable content..

Re: Growable arrays?

2012-06-12 Thread Hans Aberg
On 9 Jun 2012, at 14:32, David Kastrup wrote: > Scheme/Guile vectors are fixed size. Now I have a situation where I > have a basic type lattice with records stored in vectors, and this type > lattice may be extended dynamically (which typically happens at the > start of a whole file, for potentia

Re: Growable arrays?

2012-06-12 Thread Mark H Weaver
Hi David, David Kastrup writes: > Mark H Weaver writes: >> Simpler data structures can usually be implemented with less memory, >> shorter code sequences with fewer conditional branches and less space in >> the instruction cache, which in turn means they can be implemented more >> efficiently.

Re: Growable arrays?

2012-06-12 Thread David Kastrup
Mark H Weaver writes: > Hi David, > > David Kastrup writes: >> Mark H Weaver writes: >>> Simpler data structures can usually be implemented with less memory, >>> shorter code sequences with fewer conditional branches and less space in >>> the instruction cache, which in turn means they can be i

Re: Growable arrays?

2012-06-12 Thread Mark H Weaver
David Kastrup writes: > Mark H Weaver writes: >> C++, like Scheme, already supports fixed-size vectors in the core >> language, so it would be redundant to include them in a library. > > A vector with run-time determined size? Which variant of C++ offers > that? Um, this is basic functionality

Re: Growable arrays?

2012-06-12 Thread David Kastrup
Mark H Weaver writes: > David Kastrup writes: >> Mark H Weaver writes: >>> C++, like Scheme, already supports fixed-size vectors in the core >>> language, so it would be redundant to include them in a library. >> >> A vector with run-time determined size? Which variant of C++ offers >> that? >

features.h in wip-rtl

2012-06-12 Thread Noah Lavine
Hello, I've hit a problem building a recent wip-rtl. It now includes the file libguile/elf.h, which does "#include ". I'm building Guile on Mac OS X, and I think that doesn't have features.h, so the build breaks. However, I don't see any uses of feature.h in elf.h - in particular, there aren't any

A better way to run shell cmd?

2012-06-12 Thread Nala Ginrut
hi folks! I'm on my trip and inconvenient to meet you guys on IRC. Things gonna be normal next month. Anyway, there's a problem for you. I'm trying to write a simple wrapper for "sed" with our popen module: --code (use-modules (ice-9 popen) (rnrs)) (define (sed pattern str)