3 ms·
It seems the purpose of rust would be to use the borrow checker for safe compilation, but this is all in a macro? So the value add of rust here is the good macr
by rjeli 7y ago
It seems the purpose of rust would be to use the borrow checker for safe compilation, but this is all in a macro? So the value add of rust here is the good macro system?
- lightgreen 7y agoI think it is designed to embed OpenCL easily into Rust, not as standalone tool or embed it into other languages.
- ajkjk 7y agoWell, there's the value add in not having to touch C++...
- fulafel 7y agoIndeed. Though there are also other contenders (eg Futhark) in the sane GPU languages competition.
- auggierose 7y agoInteresting: https://futhark-lang.org https://futhark-lang.org
- fulafel 7y agoIf you want to snack on some Futhark code along with the docs, the Advent of Code solutions (linked from https://futhark-lang.org/blog/2018-12-25-futhark-0.8.1-released.html https://futhark-lang.org/blog/2018-12-25-futhark-0.8.1-relea...) might be a good place to start. I liked them because they include problems that are not good fit for Futhark, so it documents how to think about the applicability as well.
- nestorD 7y agoRust GPU iterators based on a Futhark like approach are one of my dreams (a sort of GPU equivalent for Rayon). The Rust community is used to high level functions via the iterator abstraction and wants high performance : it seems like a perfect match.
- pjmlp 7y agoDepends, as NVidia nowadays designs their GPGPUs for C++ as source language. "CppCon 2017: Olivier Giroux Designing (New) C++ Hardware" https://www.youtube.com/watch?v=86seb-iZCnI https://www.youtube.com/watch?v=86seb-iZCnI