Futhark by example (2020)
tosh
115 points
31 comments
May 16, 2026
Related Discussions
Found 5 related stories in 86.5ms across 8,303 title embeddings via pgvector HNSW
- Typst Examples Book slow_typist · 28 pts · March 06, 2026 · 46% similar
- A Forth-inspired language for writing websites speckx · 139 pts · May 22, 2026 · 45% similar
- Dabbling in Erlang, part 2: A minimal introduction (2013) pasxizeis · 23 pts · May 02, 2026 · 41% similar
- The Knight Programming Language tosh · 20 pts · April 26, 2026 · 41% similar
- Show HN: Crazierl – An Erlang Operating System toast0 · 52 pts · March 29, 2026 · 41% similar
Discussion Highlights (7 comments)
ethanlipson
Futhark is really such a great idea. I'm not convinced that dependent types are worth the cognitive overhead in general, but it's definitely worth it to include the length as part of the type information for dynamic arrays, e.g.: concat(Vec<T, n>, Vec<T, m>) -> Vec<T, n+m> matmul(Mat<T, n, m>, Mat<T, m, l>) -> Mat<T, n, l> head(Vec<T, n+1>) -> (T, Vec<T, n>) This would have saved me so much headache debugging CUDA kernels and numpy!! I wish it were a first-class feature in those frameworks, and even general-purpose languages, but alas.
rowanG077
Futhark is pretty great! And I have to say that the maintainer is insanely quick. It has happened on more than one occasion that I reported a bug and it's solved within the day. I have been using Futhark in prod for two years now and never had serious problems.
Ferret7446
It would be nice to not name your language after another language. (Yes I know it's a script, that doesn't change my point). I came here expecting something else.
fulafel
Futhark is a glimmer of light in the wasteland of C/C++ styled low level GPU languages.
guessmyname
Couldn’t have chosen a more difficult (and ambiguous) name to pronounce, could you? It almost sounds like a curse that I often hear people say out in the bad streets of New York City.
antran22
Was expecting to see some examples of how to read runes, but I am nonetheless equally satisfied. https://en.wikipedia.org/wiki/Elder_Futhark
lucb1e
I was so confused by the word factorial in the first example for a language , but decided to click it and just see what it means Turns out, Futhark != https://en.wikipedia.org/wiki/Futhark (runes, old germanic alphabet) That's like calling your programming language Latin?! The title could use some disambiguation...