[racket] Racket Virtual Machine runs out of memory

From: Jon Zeppieri (zeppieri at gmail.com)
Date: Fri Jul 20 09:51:18 EDT 2012

It depends on what you're doing with these lists, but you might consider using integers, not lists, to represent the bit-strings. The representation is considerably more compact, and you can use bitwise ops to manipulate them.

On Jul 20, 2012, at 9:38 AM, Harry Spier <vasishtha.spier at gmail.com> wrote:

> Dear list members,
> As part of my application I create a list of lists of 1's and 0's
> from an image file.
> When the size of the list of lists is: 1055 x 1066 it works fine,
> but when the size of the list of lists is: 4091 x 5023 then the
> program aborts with the error message:
> Racket Virtual Machine run out of memory: Aborting
> I've narrowed the error down to where I create the l create the list.
> I.e. the error occurs during creation of the list and not during use
> of the list.
> I compiled the program with no debugging information using the
> DrRacket "create executable" option and then ran the executable.
> Any suggestions of what I can do to get around this?
> Thanks,
> Harry Spier
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Posted on the users mailing list.