From: Sam S. <sd...@gn...> - 2008-09-25 17:03:38
|
Don Cohen wrote: > Vebjorn Ljosa writes: > > > I noticed just now that CLISP's array dimension limit is only 2^24 - 1, > > so the question of mmapping is moot, as I'll have to read chunks into > > smaller arrays anyway. > This limit is larger on 64 bit machines, so maybe not as moot as you > thought. I've recently asked how hard it would be to increase the > limit but I didn't see any replies. I'd very much like to see it Bruno should be able to elucidate this. (as well an a sudden decrease in string size a few years ago). > increased. My view is that an array should be allowed to be close to > the size of VM. this is non-trivial since array limit constants are constrained to be fixnums and clisp fixnums are 24 bits on 32-bit platforms and 48 bits on 64-bit ones. (I don't see any reason for them to be less than 56 bits there though). > I still think you can do what you want via FFI. > You probably can't treat the file as a lisp array, but I expect you'll > be able to write a similar accessing function taking a byte index and > returning a byte. you might want to take a look at the matlab interface where I have to access C arrays from lisp. |