encyclopegia.org

Futhark (programming language)

Futhark is a multi-paradigm, high-level, functional, data parallel, array programming language. It is a dialect of the language ML, originally developed at UCPH Department of Computer Science (DIKU) as part of the HIPERFIT project. It focuses on enabling data parallel programs written in a functional style to be executed with high performance on massively parallel hardware, especially graphics processing units (GPUs). Futhark is strongly inspired by NESL, and its implementation uses a variant of the flattening transformation, but imposes constraints on how parallelism can be expressed in order to enable more aggressive compiler optimisations. In particular, irregular nested data parallelism is not supported. It is free and open-source software released under an ISC license.

Futhark is a multi-paradigm, high-level, functional, data parallel, array programming language. It is a dialect of the language ML, originally developed at UCPH Department of Computer Science (DIKU) as part of the HIPERFIT project. It focuses on enabling data parallel programs written in a functional style to be executed with high performance on massively parallel hardware, especially graphics processing units (GPUs). Futhark is strongly inspired by NESL, and its implementation uses a variant of the flattening transformation, but imposes constraints on how parallelism can be expressed in order to enable more aggressive compiler optimisations. In particular, irregular nested data parallelism is not supported. It is free and open-source software released under an ISC license. def dotprod xs ys = f64.sum (map2 (*) xs ys)) It can also be equivalently written with explicit type annotations as follows. def dotprod [n] (xs: [n]f64) (ys: [n]f64) : f64 = f64.sum (map2 (*) xs ys)) This makes the size-dependent types explicit: this function can only be invoked with two arrays of the same size, and the type checker will reject any program where this cannot be statically determined. def matmul [n][m][p] (A: [n][m]f64) (B: [m][p]f64) : [n][p]f64 = map (\A_row -> map (\B_col -> dotprod A_row B_col) (transpose B)) A This shows how the types enforce that the function is only invoked with matrices of compatible size. Also, it is an example of nested data parallelism.

References

No reference rows published for this article.

Cite this article

MLA

"Futhark (programming language)." encyclopegia.org, 2025, https://encyclopegia.org/wiki/futhark-programming-language. Accessed 25 November 2026.

Chicago

"Futhark (programming language)." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/futhark-programming-language.

APA

encyclopegia.org. (2025). Futhark (programming language). Retrieved November 25, 2026, from https://encyclopegia.org/wiki/futhark-programming-language

Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1271834659 · 0.5 · snapshot enwiki-001271834659

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.