|
Prev: Someone explain (Mc)Clim to me as if I were 5 years old
Next: Using lisp to generate .net business applications
From: victor.kryukov@gmail.com on 26 Oct 2006 00:30 Hello group, I have a program which allocates memory arrays of significant size (to be precise - 25,120,127 structures V containing (fixnum, fixnum, unsigned-byte, fixnum) = 13 bytes each). I'm using SBCL 0.9.17 on Intel Macbook 2.0 Ghz 2.0Gb, Mac OS X 10.4.8 My program is structured like this (in lisp pseudo-code): (defun do-nasty-thing (i) (make-V-array 25,120,127) (read-V-array-from-file) (do-something-nasty-with-V-array) (write-V-array-to-another-file)) (defun do-everything-nasty (() (dotimes (i 4) (do-nasty-thing i))) After successful execution of (do-nasty-thing 0) (I believe that it was successful because the file was created and all information messages were printed), I got the following from SBCL: fatal error encountered in SBCL pid 1098: fake_foreign_call fell through LDB monitor ldb> It seems that problem occured when (do-nasty-thing 1) tried to allocate more memory, and I guess that for some reason the memory from previous do-nasty-thing call was not garbage collected. Is it a bug/feature in SBCL or just a problem between my ears? Thanks, Victor. PS. It seems that simple (make-array '(100000000 5) :element-type 'unsigned-byte) produces the same error for me.
From: victor.kryukov@gmail.com on 26 Oct 2006 00:44 victor.kryukov(a)gmail.com wrote: > After successful execution of (do-nasty-thing 0) (I believe that it was > successful because the file was created and all information messages > were printed), I got the following from SBCL: > > fatal error encountered in SBCL pid 1098: > fake_foreign_call fell through > LDB monitor > ldb> Which leads to the following question: what lisps are available on Intel Macbook? So far I've only managed to install sbcl 0.9.17 and acl80_express; the latter has a heap limit. There is no LW express edition for Intel Mac yet. I've failed to find easy instructions to install clisp, gcl, openmcl etc. on the Intel Mac; in particular, fink doesn't support clisp anymore: http://www.mail-archive.com/fink-devel(a)lists.sourceforge.net/msg14255.html Anybody has any experience that s/he can share? Thanks, Victor.
From: Bill Atkins on 26 Oct 2006 01:41 "victor.kryukov(a)gmail.com" <victor.kryukov(a)gmail.com> writes: > victor.kryukov(a)gmail.com wrote: >> After successful execution of (do-nasty-thing 0) (I believe that it was >> successful because the file was created and all information messages >> were printed), I got the following from SBCL: >> >> fatal error encountered in SBCL pid 1098: >> fake_foreign_call fell through >> LDB monitor >> ldb> > > Which leads to the following question: what lisps are available on > Intel Macbook? So far I've only managed to install sbcl 0.9.17 and > acl80_express; the latter has a heap limit. There is no LW express > edition for Intel Mac yet. > > I've failed to find easy instructions to install clisp, gcl, openmcl > etc. on the Intel Mac; in particular, fink doesn't support clisp > anymore: > http://www.mail-archive.com/fink-devel(a)lists.sourceforge.net/msg14255.html > > Anybody has any experience that s/he can share? > > Thanks, Victor. I've had success with LispWorks Pro and SBCL. I'd have to imagine that OpenMCL would work too.
From: Rob Warnock on 26 Oct 2006 02:28 victor.kryukov(a)gmail.com <victor.kryukov(a)gmail.com> wrote: +--------------- | My program is structured like this (in lisp pseudo-code): .... | (defun do-nasty-thing (i) | (make-V-array 25,120,127) | ...) +--------------- I do hope you're not using commas like this in your actual Lisp code... -Rob ----- Rob Warnock <rpw3(a)rpw3.org> 627 26th Avenue <URL:http://rpw3.org/> San Mateo, CA 94403 (650)572-2607
From: victor.kryukov@gmail.com on 26 Oct 2006 11:05
Bill Atkins wrote: > "victor.kryukov(a)gmail.com" <victor.kryukov(a)gmail.com> writes: > > > Which leads to the following question: what lisps are available on > > Intel Macbook? So far I've only managed to install sbcl 0.9.17 and > > acl80_express; the latter has a heap limit. There is no LW express > > edition for Intel Mac yet. > > > > > > Anybody has any experience that s/he can share? > > > > Thanks, Victor. > > I've had success with LispWorks Pro and SBCL. I'd have to imagine > that OpenMCL would work too. According to openmcl.closure.com, their last stable release is 1.0 dated back at 10/5/2005, and it's not available for Intel MacOS X [http://openmcl.clozure.com/Distributions/Download_005f1_005f0.html#Download_005f1_005f0] My next step would be to try to get the latest version out of cvs (I don't know it it's stable though) and try to recompile it myself. One should never underestimate compiling things himself, as I learned yesterday. Been a long time ubuntu user, I get accustomed to apt-get install, and the whole idea of compiling something _from source_ seemed uneasy to me. Last night, however, I discovered then getting sources of clisp-2.41 (and a couple of dependencies) and compiling them is just as easy as reading couple of README/INSTALL files and play with ../configure and make. Therefore, I now have clisp-2.41 and sbcl-0.9.17 working (not counting ACL 8.0 Express). Will investigate situation with gcl today. Victor. |