logoalt Hacker News

t0mpr1c3last Sunday at 8:00 PM2 repliesview on HN

This question strikes me as somewhat obtuse, but I will attempt an answer:

NVIDIA and AMD.

These are only two GPU manufacturers of any significance. (Intel is also a player, but not a major one.)

They supply SDKs (drivers and libraries required for software development) for their products that support C and C++ and precious little else.

There have been attempts to reverse engineer the toolchains in Rust but as I understand it they are not yet mature.


Replies

112233yesterday at 4:48 AM

Apple's Metal is C++ too. Like, actual, you can compile it with plain C++ compiler and a shim header.

edoceolast Sunday at 8:51 PM

The Zig group claims that Zig can interop with C based libraries w/o too much work. It's one of the reasons I'm digging into it now. But I don't know anything about CUDA and have only done trivial Zig<=>C tests (like my Zig code working with libpng) so far. Are their claims BS? Is Zig just not mature enough? Something else?

show 2 replies