pythran
« Back to VersTracker
Description:
Ahead of Time compiler for numeric kernels
Type: Formula  |  Latest Version: 0.18.1@0  |  Tracked Since: Nov 15, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: compiler python scientific-computing numpy optimization
Install: brew install pythran
About:
Pythran is an Ahead-of-Time (AOT) compiler for Python modules that focuses on scientific computing kernels. It takes Python code annotated with specific type hints and compiles it into highly optimized C++ or native extensions. This process significantly accelerates numerical computations, often achieving performance comparable to C or Fortran libraries.
Key Features:
  • Ahead-of-Time compilation for Python modules
  • Automatic parallelization (OpenMP support)
  • Optimizes numerical kernels and array expressions
  • Seamless integration with Numpy and Scipy
Use Cases:
  • Accelerating computationally intensive scientific Python code
  • Compiling Python libraries for distribution as high-performance binaries
  • Optimizing loops and mathematical operations in data analysis pipelines
Alternatives:
  • Numba – Numba uses Just-In-Time (JIT) compilation, while Pythran focuses on Ahead-of-Time (AOT) compilation.
  • Cython – Cython requires writing code in a Python-like superset or C, whereas Pythran accepts standard Python with type hints.
Version History
Detected Version Rev Change Commit
Nov 15, 2025 5:13pm 0 VERSION_BUMP fc01fbf7
Oct 13, 2025 12:46pm 1 VERSION_BUMP 874cddf8
Dec 29, 2024 11:37pm 0 VERSION_BUMP 20feebe6