top | item 44679323

(no title)

conorbergin | 7 months ago

Zig is becoming a real do-everything tool for me. I was learning gpu programming recently and found you could compile it to SPIR-V!

discuss

order

AndyKelley|7 months ago

Oh yeah, everyone is sleeping on this use case. Plenty of work to go before we can advise people to try it out yet, but being able to share packed structs, enums, and compile-time logic across CPU and GPU code is going to be, quite literally, a game changer.

miki123211|7 months ago

Is this just for graphics programming, or are ML / scientific computing use cases (compiling to Cuda / SASS) considered too?

sgt|7 months ago

Forgive my ignorance but what would be some practical use cases for this, for someone who hasn't been doing any GPU programming to understand? I guess Machine Learning?

andyfleming|7 months ago

Is that similar to the functionality they're targeting with Mojo?