[Shootout-list] Safety vs. speed

Peter Hinely phinely@hawaii.edu
Tue, 21 Sep 2004 18:17:38 -1000 (HST)


On Wed, 22 Sep 2004, Einar Karttunen wrote:

> Haskell provides a numeric tower with both integers which may overflow
> and integers which switch to bignums when needed. Int will overflow,
> Integer switch to bignum. The same is with array bounds - both safe
> and unsafe operations are provided.

I think the important question is "Is bounds checking disabled or enabled
for the particular Haskell benchmark as it is run on the shootout test
machine?"

GHC entries
-------------
type-checking            ?
bounds-checking          ?
integer-overflow safe    no

CMUCL entries
-------------
type-safe                no
bounds-checking          no
integer-overflow safe    no

C entries
---------
type-safe                no
bounds-checking          no
integer-overflow safe    no

Gwydion Dylan entries
---------
type-safe                yes
bounds-checking          yes
integer-overflow safe    no

etc.