r/ProgrammingLanguages • u/rahen • Mar 19 '26
Sheaf: a Clojure-like for ML that compiles to GPU via MLIR (Rust)
https://sheaf-lang.org
20
Upvotes
r/ProgrammingLanguages • u/rahen • Mar 19 '26
7
u/tsanderdev Mar 19 '26 edited Mar 22 '26
Why does it feel like any new gpu language is only focused on AI, and slightly older ones only on compute?
2
u/Arthur-Grandi Mar 20 '26
Interesting direction.
I’m curious where you draw the semantic boundary between the Clojure-like source language and the MLIR lowering pipeline. Is the language mostly a high-level front-end for tensor/dataflow IR, or are you trying to preserve richer source-level semantics deep into optimization?
That boundary usually determines whether the system feels like a language with a compiler, or a clever syntax over an MLIR-based kernel generator.
1
u/mark-sed github.com/mark-sed/moss-lang/ Mar 20 '26
Looking good! Big props for the very nice website and clean documentation with getting started. I'll star it even though I don't do AI and not even functional programming as much, but I like it!
In the reference section do you generate the info, signatures and examples from source documentation or is it hand written?
1
u/phovos Mar 20 '26
Is 'sheaf' just a tag word? Are you making a sheafified kernel? Will certainly be trying this out, if so. I think fibers sheafs and topos are going to be a key part of branch prediction and such in the future.
3
u/AsIAm New Kind of Paper Mar 20 '26
I love langs with built-in tensors+AD. Bonus points for being a Lisp. I’ll may be stealing some ideas ;)