r/ProgrammingLanguages • Futhark • 20h ago

WebGPU - Futhark on your GPU in your browser

https://futhark-lang.org/blog/2026-12-04-webgpu.html
13 Upvotes

6 comments sorted by

1

u/pthierry 18h ago

I'm surprised that there are so many hurdles and incompatibilities. Well, many Web technologies "need" to be weird in large part because the underlying security model is ridiculously bad… I wonder if that's the case here.

3

u/Athas Futhark 18h ago

That is certainly one reason. Another is the need for portability down to very anemic devices (the cheapest of phones). It's also just an extremely complicated stack compared to non-web. I feel like a new project name crops up whenever I investigate any of the details.

1

u/pthierry 17h ago

Does that mean that support for f16 will be present in some higher-end GPUs but not the simplest that some smartphones may use?

1

u/Athas Futhark 17h ago

Yes. Although for the specific case of f16, that can be worked around in software.

1

u/pthierry 17h ago

It's funny, you'd expect the simplest would only lack bigger data types, but often smaller ones are used less and I suppose that warrants not supporting them when the number of features matters.

2

u/Athas Futhark 17h ago

Indeed, it's not so much about only having the features that are the easiest to implement, but about only having the most important ones. And the specifications are then written to allow this, by having a very small core of required functionality, and moving most other things to "extensions". Vulkan also suffers from this, where core Vulkan provides an almost uselessly small amount of functionality. I assume this really does help some implementers, since new standards keep doing it, but it is frustrating when you expect at least the functionality of a late 70s microcomputer.