[Haskell] Re: Compilation of big, static tables

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Thu Feb 23 12:05:42 EST 2006


Atila Romero <atilaromero at yahoo.com.br> wrote:

> >Perhaps I should propose a new syntactic construct for the language?
>
> And how about create a 'reduction rules' syntax? It maps a common
> construct that usually becomes slow code in predefined fast code. So
> the optimization done by compiler becomes more transparent, easy to
> ennhance and the user can include his own reduction rules.

I believe ghc already has something like this: the {-# RULES #-}
pragma.  The problem is that there is no portable notation for the
target of the rule, if you want to specify a constant array.

Regards,
    Malcolm


More information about the Haskell mailing list