Scoopfeeds — Intelligent news, curated.
computer-science

Futhark by Example

Hacker News · May 16, 2026, 9:50 AM

Key takeaways

  • Some of the example programs use directives for plotting or rendering graphics.
  • Literate Futhark allows direct use of gnuplot.
  • The following examples are ported from Dex, a dependently typed functional array language that uses a somewhat different approach to describing loop processing.

The following is a hands-on introduction to Futhark through a collection of commented programs, listed in roughly increasing order of complexity. You can load the programs into the interpreter to experiment with them. For a conventional introduction to the language, Parallel Programming in Futhark may be a better choice. For more examples, you can check our implemented benchmarks. We also maintain a list of projects using Futhark.

Some of the example programs use directives for plotting or rendering graphics.

Literate Futhark allows direct use of gnuplot. These examples show simple and common cases.

Article preview — originally published by Hacker News. Full story at the source.
Read full story on Hacker News → More top stories
Aggregated and edited by the Scoop newsroom. We surface news from Hacker News alongside other reporting so you can compare coverage in one place. Editorial policy · Corrections · About Scoop