A curated collection of example programs introducing the Futhark programming language, a high-performance purely functional data-parallel array language that runs on both GPU and CPU. Examples are organized from basic language features (factorial, arrays, scans, reductions, polymorphism) through advanced programming techniques (radix sort, merge sort, automatic differentiation, Kahan summation) to literate Futhark, plotting, and ports from the Dex language. Real-world projects using Futhark are also listed, including ray tracers, games, a Poseidon hash implementation for Filecoin, and a parallel compiler.

3m read timeFrom futhark-lang.org
Post cover image
Table of contents
Basic language featuresProgramming techniquesAutomatic differentiationLiterate FutharkPlottingExamples from DexExternal examplesProjects using Futhark
98 Impressions