← Back to KHAO

Tech ·

Futhark by Example

2 min read

Compiled by KHAO Editorial — aggregated from 1 source + 1 reference discovered via search. See llms.txt for citation guidance.

◌ Single Source

Literate Futhark allows direct use of gnuplot.

Key facts

Summary

The following is a hands-on introduction to Futhark through a collection of commented programs, listed in roughly increasing order of complexity. For a conventional introduction to the language, Parallel Programming in Futhark may be a better choice. Some of the example programs use directives for plotting or rendering graphics. The following examples are ported from Dex, a dependently typed functional array language that uses a somewhat different approach to describing loop processing. Most written Futhark code is probably still Futhark’s own test and benchmark suites. Diving Beet is a falling sand game, which is a kind of simple particle simulator toy.

Read full article at futhark-lang.org →