FUTHARK-WASM(1)
β¨ FUTHARK-WASM β¨
okay bestie, welcome to futhark-wasm π β this is the page from the Futhark manual that teaches you how to compile Futhark to WebAssembly. no cap, it's giving "put your functional array code on the internet" energy π¦
π NAME π
futhark-wasm β compile Futhark to WebAssembly π
πΈ SYNOPSIS πΈ
futhark wasm [options...] <program.fut>
π DESCRIPTION π
so here's the tea β: futhark wasm translates a Futhark program to sequential WebAssembly code. the way it does this is honestly kind of a two-step queen move β first it generates C, exactly like futhark c does, and then it hands that C over to Emscripten (emcc) to do the wasm thing β¨
the result is a .js file, which means your compiled code can be invoked from JavaScript. iconic. π«Ά
oh and the executables implement the Futhark server protocol, so you can literally run them with Node.js. main character behaviour, fr fr ππ
β¨ OPTIONS β¨
it accepts the same options as futhark-c β go check that page, bestie, it's the blueprint π
π ENVIRONMENT VARIABLES π
CFLAGSβ a space-separated list of options passed toemcc. if it's unset, it defaults to-O3 -std=c99. lowkey a solid default ngl β¨EMCFLAGSβ a space-separated list of options passed toemcc. that's it, that's the vibe π
π EXECUTABLE OPTIONS π
these are the options accepted by the executables that futhark wasm generates for you π β they're the ones you get after the compile, so don't go looking for them in the compiler itself, bestie π
-h,--helpβ prints help text to standard output and then exits. classic, we love a polite exit π«Ά-D,--debuggingβ performs possibly expensive internal correctness checks plus verbose logging. heads up: this implies-L, so you're getting the logging whether you asked or not π-L,--logβ prints various low-overhead logging info to stderr while it's running. lowkey useful, highkey chatty π₯
π¦ SEE ALSO π¦
futhark-cfuthark-wasm-multicore
β COPYRIGHT β
2013-2020, DIKU, University of Copenhagen π
and that's the whole page, bestie!! this was Futhark 0.25.32, dated Mar 11, 2026, from the Futhark manual π go forth and compile some wasm, you absolute icon πβ¨π
π¦ 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