haskell array access

Hal Daume t-hald@microsoft.com
Fri, 27 Jun 2003 10:30:09 -0700


> At best case for Haskell, 15.5 times slower. The thing about=20
> bounds checking,=20
> in Haskell it's always there. In C, you might have it, you=20
> might not there is=20
> no certainty by the language, only by design and=20
> implementation. So with C,=20
> one is free to live dangerously.

If you're using GHC, there's Data.Array.Base.unsafeAt which is the one
which doesn't do bounds checking.