Skip to content

TypedPython: per-function fastmath opt-in (@compiled(fastmath=True)), not CPython-identical #332

Closed

Description

@b-re-w

Follow-up of #153 (decision: fastmath stays off by default). Proposal only, not scheduled for implementation: an explicit per-function opt-in such as @compiled(fastmath=True) that allows reassociation and contraction (so float reductions can vectorise), documented as NOT CPython-identical, never on by default, and never applied to a function the user did not mark. Open questions before any implementation: which flags (-ffast-math vs -fassociative-math only), how deopt/identity tests treat such a function, and measurements against numba fastmath=True / Cython -ffast-math once #41 items land.

Activity

  1. added a commit that references this issue on Oct 31, 2026
  2. b-re-w commented on Oct 31, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #360

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions