[erlang-questions] Crash on alloc

Dave Smith dave.smith.to@REDACTED
Fri Feb 6 19:36:38 CET 2009


This is the type of thing Haskell is good at :)
([3,5..40000000],[3,5..40000000])

, or if you really wanted it to be unbounded...
([3,5..],[3,5..])

Unfortunately Erlang doesn't do lazy evaluation (and can't for good
reason),  so allocation is all done upfront.

--DS


2009/2/6 Francesco Cesarini (Erlang Training and Consulting) <
francesco@REDACTED>

> standard behaviour when the VM runs out of memory.... Try
> generating smaller lists or adding more memory to your computer.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090206/6a0aec23/attachment.htm>


More information about the erlang-questions mailing list