On 5/31/2012 1:25 AM, Sara Pashmineh wrote:
> Hello Robert,
>
> thank you very much for your answer.
>
> I am using Maxima on both Windows and Unix.
>
> But the error message is from Windows.
I don't understand. The message you quote, "Error in PROGN ..." is from
Lisp, not from Windows.
Do you get a different error message from Maxima running on UNIX? If so,
what is that message?
> Could you please explain me how
> can I recompile Maxima via the Lisp program ASDF.
You are of course free to do this, but the probability is quite high
that you will just be wasting
your time.
The most likely reason your program runs out of memory is that
(a) Your program has a bug in it and it will fill up any finite amount
of memory without
computing anything useful. Getting more memory may allow it to run for a
longer time.
the second most likely reason is
(b) Your program is mathematically correct but it specifies a
computation that takes too
more (virtual) memory to complete than is available.
Multiplying the amount of available memory by 2 or 4 or 10 will not fix
problem (a).
It is unlikely to fix problem (b).
I suggest you try to figure out a more efficient way to solve your
problem. Since
you have not given us any hint as to what you are trying to do or how, I
can't make
any more recommendations on that.
>
> Many thanks in advance for your efforts.
>
> Best
>
> Sara
>
> 2012/5/30 Robert Dodier<robert.dodier at gmail.com>:
>> On 2012-05-30, Sara Pashmineh<sarapashm at googlemail.com> wrote:
>>
>>> Error in PROGN [or a callee]: The storage for CONS is exhausted.
>>> Currently, 58713 pages are allocated.
>>> Use ALLOCATE to expand the space.
>> Well, this means that Maxima created so many expressions that it used up
>> all of the memory that was allocated by the Lisp runtime. I suspect it
>> is not too useful to try to expand the memory allocation -- probably if
>> you expand it, the new space will get used up too.
>>
>> If I am not mistaken, GCL (which is the Lisp implementation used by the
>> version of Maxima you have) is more likely to run out of memory than
>> some other Lisp implementations. So my recommendation (no guarantees
>> here) is to try running Maxima with a different Lisp.
>>
>> If you are using Windows -- you can try CCL or ECL. I think there are
>> slightly out of date packages with Windows installers for CCL or ECL or
>> maybe both. Aside from that, it is relatively straightforward to
>> recompile Maxima via the Lisp program ASDF. I can explain how to do that
>> if you are interested.
>>
>> If you are on some form of Unix or you can get access to such a system
>> -- you can try CMUCL, SBCL, or Clisp. The rpm (Redhat) packages
>> available on the Sourceforge download page are built with Clisp, but
>> again, it is straightforward to recompile via ASDF.
>>
>> By the way, can you post the program which you are running? Perhaps
>> someone else can try it on their own system to see what happens.
>>
>> best
>>
>> Robert Dodier
>>
>> _______________________________________________
>> Maxima mailing list
>> Maxima at math.utexas.edu
>> http://www.math.utexas.edu/mailman/listinfo/maxima
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima