News for hackers. Stuff that matters.
Re:Emu: Language for Programming GPUs in Rust by rjeli on Sunday June 02, 2019 @09:26PM (#20079704)
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?
Re:Emu: Language for Programming GPUs in Rust by lightgreen on Monday June 03, 2019 @12:18AM (#20080368)
I think it is designed to embed OpenCL easily into Rust, not as standalone tool or embed it into other languages.
Re:Emu: Language for Programming GPUs in Rust by ajkjk on Sunday June 02, 2019 @11:10PM (#20080107)
Well, there's the value add in not having to touch C++...
Re:Emu: Language for Programming GPUs in Rust by pjmlp on Monday June 03, 2019 @10:50AM (#20083674)
Depends, 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

Re:Emu: Language for Programming GPUs in Rust by fulafel on Monday June 03, 2019 @01:20AM (#20080582)
Indeed. Though there are also other contenders (eg Futhark) in the sane GPU languages competition.
Re:Emu: Language for Programming GPUs in Rust by nestorD on Monday June 03, 2019 @02:59AM (#20081001)
Rust 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.
Re:Emu: Language for Programming GPUs in Rust by auggierose on Monday June 03, 2019 @01:37AM (#20080645)
Re:Emu: Language for Programming GPUs in Rust by fulafel on Monday June 03, 2019 @01:43AM (#20080672)
If 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-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.