FUTHARK-WASM-MULTICORE(1)
π FUTHARK-WASM-MULTICORE π
okay bestie, so this is futhark-wasm-multicore, a page from the Futhark manual set (section 1, as the girlies say) β and it's the one you want when you're tryna compile Futhark to parallel WebAssembly. yes, parallel. multi-threaded. main character energy. periodt.
β¨ NAME β¨
futhark-wasm-multicore β compile Futhark to parallel WebAssembly π¦
πΈ SYNOPSIS πΈ
futhark wasm-multicore [options...] <program.fut>
that's it. that's the whole thing. options go in, your .fut program goes in, magic comes out π
π DESCRIPTION π
so here's the tea, bestie β β futhark wasm-multicore takes a Futhark program and translates it into multi-threaded WebAssembly code. how? it does it in two little steps:
- it first generates C, exactly the way
futhark cwould. - then it runs that C through Emscripten (
emcc).
and what you get out the other side is a .js file π β which is iconic because it means the compiled code can be invoked from JavaScript.
also, the executables it produces implement the Futhark server protocol, so you can literally run them with Node.js. no cap. fr fr. π«Ά
β OPTIONS β
- accepts the same options as
futhark-cβ go read that page, bestie, it's all the same flags, we're not retyping them here π
π ENVIRONMENT VARIABLES π
- respects the same environment variables as
futhark-wasmβ same vibes, same env vars, go check that one out π
π EXECUTABLE OPTIONS π
- generated executables accept the same options as those generated by
futhark-wasmβ so like, whatever the spawned-out binaries fromfuthark-wasmtake, these take too. identical behaviour, different thread count β¨
π SEE ALSO π
futhark-cfuthark-wasm
π Copyright π
2013-2020, DIKU, University of Copenhagen πΈ
and that's the whole page, babe π§ version 0.25.32, dated Mar 11, 2026 β written up by the Futhark girls, and you should read futhark-wasm next, iykyk π
β¨
π¦ 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