23 Feb
2006
23 Feb
'06
5:05 p.m.
Atila Romero <atilaromero@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