FUTHARK(1)
π FUTHARK(1) π
okay bestie, welcome to the futhark manual page β yes the whole language, yes the whole tool, let's get into it β¨
β¨ NAME β¨
futhark β a parallel functional array language π¦
πΈ SYNOPSIS πΈ
futhark <subcommand> options...
π DESCRIPTION π
So Futhark is a data-parallel functional array language, no big deal. And through its various subcommands, the futhark tool is your little bestie for compiling, developing, or analysing Futhark programs. Obsessed with her, honestly.
Most subcommands have their own manpage, because they're that iconic. Like, futhark opencl gets documented as futhark-opencl <#futhark-opencl-1>. The remaining subcommands? They're documented right here, below, for you π«Ά
π COMMANDS π
π futhark benchcmp FILE_A FILE_B
Compare two JSON files produced by the --json option of futhark-bench <#futhark-bench-1>. The results show the speedup of the latter file compared to the former. FILE_B said "move, I'm faster" π
π futhark check [-w] [-Werror] PROGRAM
Check whether a Futhark program type checks. With -w, no warnings are printed. With --Werror, warnings are treated as errors. Harsh but fair, ngl.
π futhark check-syntax PROGRAM
Check whether a Futhark program is syntactically correct. Just the grammar vibe check, nothing more β¨
π futhark datacmp FILE_A FILE_B
Check whether the two files contain the same Futhark values. The files must be formatted using the general Futhark data format that is used by all other executable and tools (such as futhark-dataset <#futhark-dataset-1>).
All discrepancies will be reported. This is in contrast to futhark-test <#futhark-test-1>, which only reports the first one. datacmp is the friend who tells you everything, no gatekeeping π
π futhark dataget PROGRAM DATASET
Find the test dataset whose description contains DATASET (e.g. #1) and print it in binary representation to standard output. This does not work for script datasets. Sorry bestie π
π futhark defs PROGRAM
Print names and locations of every top-level definition in the program (including top levels of modules), one per line. The program need not be type-correct, but it must not contain syntax errors. So like... scrambled inside but the outside gotta be cute.
π futhark dev options... PROGRAM
A Futhark compiler development command, intentionally undocumented and intended for use in developing the Futhark compiler, not for programmers writing in Futhark. It's giving β¨backstageβ¨ β you're not on the list, babes.
π futhark eval [-f FILE] [-w] <exprs...>
Evaluates expressions given as command-line arguments. Optionally allows a file import using -f. Instant gratification, we love her π
π futhark hash PROGRAM
Print a hexadecimal hash of the program AST, including all non-builtin imports. Supposed to be invariant to whitespace changes. She does not care about your extra blank lines, periodt.
π futhark imports PROGRAM
Print all non-builtin imported Futhark files to stdout, one per line. The whole friend group, revealed π
π futhark lsp
Run an LSP (Language Server Protocol) server for Futhark that communicates on standard input. There is no reason to run this by hand. It is used by LSP clients to provide editor features. Like, unless you're an editor, mind your business π
π futhark query PROGRAM LINE COL
Print information about the variable at the given position in the program. Point at it and she'll tell you its whole lore π₯
π futhark thanks
Expresses gratitude. That's it. That's the command. π₯Ήπ
π futhark tokens FILE
Print the tokens the given Futhark source file; one per line.
π SEE ALSO π
futhark-opencl <#futhark-opencl-1>futhark-c <#futhark-c-1>futhark-python <#futhark-py-1>futhark-pyopencl <#futhark-pyopencl-1>futhark-wasm <#futhark-wasm-1>futhark-wasm-multicore <#futhark-wasm-multicore-1>futhark-ispc <#futhark-ispc-1>futhark-dataset <#futhark-dataset-1>futhark-doc <#futhark-doc-1>futhark-test <#futhark-test-1>futhark-bench <#futhark-bench-1>futhark-run <#futhark-run-1>futhark-repl <#futhark-repl-1>futhark-literate <#futhark-literate-1>
π Copyright π
2013-2020, DIKU, University of Copenhagen
okay that's the whole page bestie, you ate π β¨ and before you go β this was version 0.25.32, dated Mar 11, 2026, from the Futhark manual. mwah, go compile something iconic πΈπ¦π
π¦ where this page comes from
- ubuntu resolute: futhark 0.25.32-3build1 Β· ISC
- ubuntu stonking: futhark 0.25.32-3build1 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms