qmetrics.net

Codon

Ahead-of-time Python compiler to native code

Codon screenshot

Codon compiles Python to native machine code with large speedups over CPython on a single thread. It supports multithreading without a GIL, GPU kernels, and a compiled NumPy implementation.

Overview

Codon is a statically compiled Python implementation aimed at numerical and performance-critical workloads. It keeps much of Python syntax and semantics but rejects some dynamic patterns unsuitable for ahead-of-time compilation. Programs run via codon run, build to executables with codon build, and can emit LLVM IR for inspection.

Parallelism uses OpenMP annotations for multithreaded loops and optional GPU execution, including Mandelbrot-style kernel examples. A built-in NumPy reimplementation mirrors the familiar API with compiler optimizations such as fusion and allocation elision. Python interoperability imports existing packages through a dedicated bridge when configured with the CPython shared library.

Codon is not a drop-in CPython replacement; teams can embed it via JIT decorators, extension modules, or hybrid codebases. Binaries target Linux, macOS, and Windows on x86-64 with install scripts documented for PATH and toolchain setup.

Key features

  • AOT Python to native binaries
  • Native multithreading without GIL
  • OpenMP parallel loops
  • GPU kernel compilation
  • Compiled NumPy-compatible arrays
  • LLVM-based code generation
  • CPython library interoperability
  • JIT and extension integration paths

Use cases

  • Accelerated numerical Python
  • Standalone native executables
  • Multicore scientific computing
  • GPU data processing kernels
  • Hot-path JIT inside Python apps

Tags

Similar software

Dive

Terminal explorer for Docker image layers

Dive inspects container images layer by layer to show what changed and where space is wasted. It helps shrink Docker or OCI images during development and CI.

★ 54.8k⟳ 11 days agoMIT

Nx

Monorepo build system with caching and CI integration

Nx manages TypeScript and polyglot monorepos with task graph awareness, local and remote caching, and CI helpers. It can be added to existing npm, pnpm, or yarn workspaces.

★ 29.5k⟳ todayMIT

PostCSS

JavaScript toolkit for transforming CSS via plugins

Parses CSS into an AST and runs JavaScript plugins to lint, prefix, nest rules, inline assets, and apply other style transforms in build pipelines.

★ 29k⟳ yesterdayMIT

Emscripten

LLVM toolchain compiling C and C++ to WebAssembly

Emscripten turns C and C++ into WebAssembly via LLVM and Binaryen. Output runs in browsers, Node.js, and other WebAssembly runtimes.

★ 27.8k⟳ 2 days agoMIT · open core

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

★ 23.6k⟳ todayMIT

Slim

Container inspection, minification and security profiling CLI

SlimToolkit is a command-line toolkit for inspecting, shrinking and hardening container images without rewriting your Dockerfile. It analyzes what your application actually needs and strips unused layers and files.

★ 23.6k⟳ 2 months agoApache-2.0