Re: [Chicken-users] Large vector

2007-05-11 Thread felix winkelmann
On 5/10/07, Mark Voortman [EMAIL PROTECTED] wrote: 2. Have you considered the GC implications? There should be no garbage collection. I just load it into memory once and that's it. Since chicken uses a (generational) stop-and-copy collector, all data allocated will be moved from one space

Re: [Chicken-users] Large vector

2007-05-11 Thread felix winkelmann
On 5/11/07, felix winkelmann [EMAIL PROTECTED] wrote: On 5/10/07, Mark Voortman [EMAIL PROTECTED] wrote: 2. Have you considered the GC implications? There should be no garbage collection. I just load it into memory once and that's it. Since chicken uses a (generational) stop-and-copy

[Chicken-users] Large vector

2007-05-10 Thread Mark Voortman
Hi guys, I have an urgent need to create a vector with a capacity of over 100 million elements. However, I get an out of range exception when I call make-array since the numbers of elements is limited to 16777215. Where can I increase this limit? Thanks! Mark

Re: [Chicken-users] Large vector

2007-05-10 Thread John Cowan
Mark Voortman scripsit: I have an urgent need to create a vector with a capacity of over 100 million elements. However, I get an out of range exception when I call make-array since the numbers of elements is limited to 16777215. Where can I increase this limit? The simplest way is to move to

Re: [Chicken-users] Large vector

2007-05-10 Thread Zbigniew
On 5/10/07, Mark Voortman [EMAIL PROTECTED] wrote: I have an urgent need to create a vector with a capacity of over 100 million elements. However, I get an out of range exception when I call make-array since the numbers of elements is limited to 16777215. 1. Which is it, vector or array? If

Re: [Chicken-users] Large vector

2007-05-10 Thread Mark Voortman
John, Thanks for your reply. However, according to my calculator 2^30 is 1,073,741,824 which should be more than enough. Where did all the space go? I also thought about a vector of vectors but I'd like to keep it simple, if possible. A 64 bit machine is not an option at the moment. Cheers, Mark

Re: [Chicken-users] Large vector

2007-05-10 Thread Mark Voortman
Hey Zbigniew, 1. Which is it, vector or array? If array, which kind (srfi-25, array-lib, etc.) I tried a srfi-25 array with one dimension. 2. Have you considered the GC implications? There should be no garbage collection. I just load it into memory once and that's it. 3. Do you need a

Re: [Chicken-users] Large vector

2007-05-10 Thread Will M Farr
Mark, On May 10, 2007, at 2:19 PM, Mark Voortman wrote: Where did all the space go? Each scheme object has a header word which stores: 1) Various type tags and 2) the length of the object. So, the extra space went into type tags---there are 24 bits reserved for the length, and the

Re: [Chicken-users] Large vector

2007-05-10 Thread Mark Voortman
Thanks for the info! Mark, On May 10, 2007, at 2:19 PM, Mark Voortman wrote: Where did all the space go? Each scheme object has a header word which stores: 1) Various type tags and 2) the length of the object. So, the extra space went into type tags---there are 24 bits reserved for