On Sun, 12 Aug 2007, Lennart Augustsson wrote:

> CPU design cannot be changed, because they implement well defined ISA.

What is ISA? Why is it not possible to add CPU functions for `div` and
`mod`?

> The only processor I know of (NS 32k) with a different division is long
> dead.

If efficiency on current CPUs is the only advantage of `quot` and `rem`,
then for future versions of Haskell I propose to fix these functions to
the type Int rather than making them class methods. For non-machine types
like Integer the efficiency argument does certainly not hold.
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to