Troels Henriksen
Troels Henriksen
This is crucial for targeting Vulkan and WebGPU, as these do not support setting the workgroup size on launch.
We can easily just do our own parenthesis handling by using ordinary functions for prettyprinting subexpressions. Type classes are never a requirement. But I agree that this is not something...
Some notes. * Apart from (obviously) running in a browser, there are also "native" WebGPU backends. Specifically wgpu (used to implement WebGPU in Firefox) and Dawn (used for Chrome). *...
It may be worth investigating how feasible it is to convert SPIR-V shaders to WGSL shaders. We already have parts of a SPIR-V codegen in the Vulkan backend branch, and...
This looks quite good, and delightfully simple. I left some review comments. I'll also take the liberty of merging master into your branch and fixing some style issues.
This PR now valides on a *single* GPU. I have not yet measured whether there are any performance regressions.
A Scala backend is not realistic. We once toyed with the idea of having many backends (we even had one for C# for a while), but it ended up being...
I know some have used SWIG before. It probably works as well as you expect, and doesn't require any Futhark-specific code. The C API generated by Futhark is explicitly designed...
I don't think an attribute is the right way to do this. What about a `:string` command that prints the result of the expression as a string literal (if it...
Yeah, now that I think about it, maybe a general `:format` command that accepts a `printf`-style format string would be better. The same machinery could be used for `futhark literate`.