[Haskell-cafe] Stack Overflow?

Ben Christy ben.christy at gmail.com
Thu Nov 11 14:29:00 EST 2010


It was basically that. I was doing TransformedMatrix = TransformedMatrix *
TransformMatrrix
and should have been doing Transformed Matrix = RotatedMatrix *
TransforrmMatrix

On Thu, Nov 11, 2010 at 10:03 AM, Dmitry Astapov <dastapov at gmail.com> wrote:

> On Thu, Nov 11, 2010 at 4:58 PM, Ben Christy <ben.christy at gmail.com>
> wrote:
> > I have implemented a scene graph in Haskell and I have a problem. I walk
> > down the scenegraph and at each node I recalculate translation matrix and
> > pass it to each child. Well it seems to be causing a stack overflow and I
> am
> > lost as to how to resolve the issue without issue a state variable of
> some
> > kind to hold a "matrix stack" as is common in imperative implementations
> of
> > scene graphs. When I run the program fromghci I get
> [snip]
> > Matrix4x4 {i1j1 = <interactive>: <<loop>>
> > <interactive>: interrupted
>
> Check the expression for i1j1 - seems like it boils down to "let x = x in
> x"
>
> --
> Dmitry Astapov
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101111/926b5566/attachment.html


More information about the Haskell-Cafe mailing list