Skip to content
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

De-polymorphize all ops #497

Open
twizmwazin opened this issue Sep 18, 2024 · 0 comments
Open

De-polymorphize all ops #497

twizmwazin opened this issue Sep 18, 2024 · 0 comments

Comments

@twizmwazin
Copy link
Member

twizmwazin commented Sep 18, 2024

Description

We have ops that are polymorphic. The first one that comes to mind is If, but there may be others. For these cases, we should specialize the op for each type it could take, for example IfBV, IfFP, etc. This would allow us to more easily have fully typed ASTs in the future. It might be preferable to have a breaking API change to accommodate this, as that would reduce the amount of runtime type checking required, although this isn't strictly necessary, just a performance micro-optimization.

Known others: fpToFP

Alternatives

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant