qmetrics.net

Halide

Embedded language for fast image and array pipelines

Halide screenshot

Halide helps write high-performance image and array processing code, embedded in C++ or Python. Pipelines compile to CPUs and multiple GPU compute APIs.

Overview

Halide is a programming language aimed at high-performance image and array processing on modern hardware. Rather than standing alone, it embeds inside C++ or Python: you build an in-memory Halide pipeline with the language API, then compile it to an object file, JIT it in-process, or export ahead-of-time binaries.

The compiler targets CPU architectures including x86, ARM, Hexagon, PowerPC, RISC-V, and WebAssembly, plus GPU APIs such as CUDA, OpenCL, Metal, DirectX 12, and Vulkan. Supported host operating systems named in the docs include Linux, Windows, macOS, Android, iOS, FreeBSD, and Qualcomm QuRT. Halide separates the algorithm definition from its schedule, so developers can retile, vectorize, and parallelize without rewriting core math.

Distribution options include PyPI wheels split into compiler, binary, and runtime packages, Homebrew on macOS, vcpkg, and building from source with CMake against LLVM. Python bindings require C++17. Wheels cover Windows x86-64, macOS Intel and ARM, and Linux x86-64 with broad manylinux compatibility.

Tutorials, example apps, tests, and course notes walk through filters such as blurs and more complex imaging pipelines. Halide is used when hand-optimized loops are too costly to maintain but raw library calls lack portable performance control.

Key features

  • Algorithm and schedule separation
  • C++ and Python embedding
  • JIT and ahead-of-time compilation
  • CPU and GPU backend targets
  • Vectorization and tiling controls
  • PyPI and Homebrew distributions
  • CMake integration with LLVM
  • Image processing tutorial suite

Use cases

  • High-performance image filtering
  • Camera and vision processing pipelines
  • GPU-accelerated array kernels
  • Research on automatic scheduling
  • Cross-platform imaging in C++ apps

Tags

Similar software

TypeScript

Typed JavaScript language with compile-time checks

TypeScript adds optional static types to JavaScript and compiles to standard JavaScript. It targets application-scale code on browsers, Node.js, and other JavaScript runtimes.

★ 111.9k⟳ yesterdayApache-2.0

Carbon Lang

Experimental successor language interoperating with C++

Carbon Language is an experimental programming language and toolchain aimed at C++ interoperability, migration, and modernization. It is not ready for production use and remains under active development.

★ 34k⟳ yesterdayApache-2.0 · open core

Roslyn

Open-source C# and Visual Basic compiler platform APIs

Roslyn implements the .NET C# and Visual Basic compilers and exposes APIs for analyzing, refactoring, and generating .NET code in tools and applications.

★ 20.8k⟳ todayMIT

GopherJS

Go to JavaScript compiler for browser front-end code

GopherJS translates Go programs into JavaScript so front-end logic can run in browsers. Install the gopherjs CLI to build, test, and serve packages like the standard go tool.

★ 13.2k⟳ 16 days agoBSD-2-Clause

The Agda Wiki

Dependently typed functional language and interactive proof assistant

Agda combines a dependently typed functional programming language with an interactive environment for writing and checking constructive proofs.

★ 3k⟳ yesterdayMIT

Dingo

Go meta-language transpiling to idiomatic Go

Dingo is a language that compiles to clean Go code, adding Result types, error propagation, pattern matching, and related syntax while staying compatible with the Go toolchain.

★ 1.9k⟳ 2 months agoApache-2.0