-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite rules #260
Comments
Yes! Is there any work toward this ongoing? My motivation is https://github.com/mlabs-haskell/apropos-tx/blob/26294dbaa3a1c9e794bdeab2af98d2f74624ab96/src/Apropos/Script/Iso/Arrow.hs#L49 These combinators introduce unnecessary construction/deconstruction of builtin pairs which could be reduced easily by a rewrite. |
I am working on this internally.
|
|
Just to be clear, are the rewrite rules supposed to operate on the compiled |
@blamario They operate on the precompilation AST. |
I think I have a viable design FWIW |
What sort of optimizations will rewrite rules provide? For instance, if I use |
That's general CSE and not something I have tried to implement in Plutarch. |
In some places however this means we have to do a |
They're supposed to operate on Plutarch terms.
|
We want rewrite rules to support things like #128.
Rewrite rules should function like GHC's rewrite rules, albeit they should fire consistently. This is easier for us
to do because of the lack of complex optimisations.
The text was updated successfully, but these errors were encountered: