Since NVIDIA owns huggingface now and huggingface has the excellent Candle [1] crate for inference on Rust, this seems like a good step towards nice native Rust kernels.
Nobody cares if kernels are written in Rust. Kernels were meant to be written in C, but if you want to go more high-level try Triton or a similar DSL that nicely abstract tile sizes etc.
kernels aren't meant to be written by any defined language. C is just a traditionally good default language that took over from assembly. No particular reason we have to stick with C.
What reasons would you have to prefer Rust over C for compute kernels?
I am a great fan of Rust, but I don't see any benefit for kernels, due to their relatively simple nature.
dllu · · focus · HN ↗
[1] <a href="https://github.com/huggingface/candle" rel="nofollow">https://github.com/huggingface/candle
jacobgorm · · focus · HN ↗
keithnz · · focus · HN ↗
chadcmulligan · · focus · HN ↗
jacobgorm · · focus · HN ↗
chadcmulligan · · focus · HN ↗