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

[mypyc] Allow specifying primitives as pure #17263

Merged
merged 2 commits into from
May 19, 2024
Merged

[mypyc] Allow specifying primitives as pure #17263

merged 2 commits into from
May 19, 2024

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented May 18, 2024

Pure primitives have no side effects, take only immutable arguments,
and never fail. These properties will enable additional
optimizations. For example, it doesn't matter in which order
these primitives are evaluated, and we can perform common
subexpression elimination on them.

Only mark a few primitives as pure for now, but we can generalize
this later.

Pure primitives have no side effects, take only immutable arguments,
and never fail. These properties will enable additional
optimizations. For example, it doesn't matter in which order
these primitives are evaluated, and we can perform common
subexpression elimination on them.

Only mark a few primitivies as pure for now, but we can generalize
this later.
@JukkaL JukkaL merged commit ac8a5a7 into master May 19, 2024
13 checks passed
@JukkaL JukkaL deleted the mypyc-pure-prim branch May 19, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants