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

Commits on May 18, 2024

  1. [mypyc] Allow specifying primitives as pure

    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 committed May 18, 2024
    Configuration menu
    Copy the full SHA
    d609f3d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8f7ba1a View commit details
    Browse the repository at this point in the history