> On 4/19/06, Donald Bruce Stewart <[hidden email]> wrote:
> > Question:
> > Can I manipulate 1G strings in Haskell?
> > Failed due to memory exhaustion.
> > Almost made it though, just need a tad more ram than I had.
> > filter !
> > unlines !
> > unwords !
> > reverse ! -- copy
> > cons ! -- copy
> > snoc ! -- involves a copy
> > ++ ! -- can't concat two 1G strings on this box
> I would say given the nature of the experiment that you want to feed
> these functions with values that lead to 1 GB results. At least, that
> makes sense in the case of ++, but maybe not the others.
Yes, good point. Previous experiments with 500M strings indicated that
these all worked fine: