Skip to content

TypedPython: implement SPEC N-15 parallel order-independent loops (v1) #277

Closed

Description

@b-re-w

Implementation of SPEC N-15 / docs/design/typedpython-parallel-loops.md (design landed via #276, #151).

v1 scope: user-marked functions only; list (copy-in) and local-array loops (array.array buffer loops stay sequential); per-region C threads created and joined, no pool; i64 + * & | ^ reductions; min/max only if exactly Python's (NaN position, first element on ties incl. +-0.0); float + and * excluded pending #153. Thresholds TP_PAR_MIN_WORK and thread cap measured on the Mac mini in a quiet window (Android later, separate issue).

Done when: differential tests vs the interpreter (results, first failing iteration and partial writes on exception/deopt), race tests and TSan pass on 3.15t.

Activity

  1. added 5 commits that reference this issue on Oct 25, 2026
  2. b-re-w commented on Oct 25, 2026

    @b-re-w
    MemberAuthor

    Landed in develop via #283, #288, #293, #295 and the TSan PR from feat/tp-par-tsan. Thresholds TP_PAR_MIN_WORK and the thread cap remain placeholders to be measured in a quiet window (#151, Android #278).

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