r/Compilers • u/Clear-Difference2294 • Sep 27 '26
I built a small tensor-first programming language with native CPU/GPU compilation, autodiff and ownership

I’ve been working on Thiran, an experimental numerical systems language for ML/research workloads.
The idea is to keep tensors, structured control flow, ownership-aware mutation, reverse-mode AD, CPU/GPU compilation, and deployable artifacts in one system instead of stitching together Python + frameworks + native code.
I just shipped v0.1.0. It has a real compiler, native CPU + CUDA/PTX backends, Scan/stateful computation, AD, research extensions, model/artifact deployment, and a bunch of reproducibility/robustness testing.
It’s definitely not performance-competitive yet — I published the benchmark graphs too, including the bad numbers rather than hiding them.
Would genuinely love feedback from compiler/PL/ML-systems people, especially on the architecture and what would make this actually useful.
2
u/c-cul Sep 27 '26
it would be very useful to see your ir in text form - as far I understood it currently exists in binary form only: https://github.com/Arnav-sivarams/thiran/tree/main/src/persistence/v0
and also mix them in output ptx too
7
u/GrogRedLub4242 Sep 27 '26
This text and the repo README have telltales of AI-gen and general fakery.
1
u/Gaming_Duo3615 Sep 27 '26
just two questions:
are you planning to support older cuda versions like 6?
does the compiler use the installed cuda compiler if there is one?
1
u/realestLink Sep 27 '26
I appreciate that you actually did benchmarks fr