| ▲ | edoceo a day ago | ||||||||||||||||
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? | |||||||||||||||||
| ▲ | jjmarr a day ago | parent | next [-] | ||||||||||||||||
The CUDA/HIP APIs are mostly C-like APIs but are really C++ language extensions. e.g. you need triple angle brackets when calling a GPU kernel. The compiler turns that into placing the kernel onto the GPU and running it. The GPU kernel code itself needs to be compiled and for CUDA that is done with the proprietary nvcc, which is clang-based. HIP is better because it's an open-source llvm backend/frontend but you'd still need to add GPU-specific support to zig/rust/whatever. | |||||||||||||||||
| |||||||||||||||||
| ▲ | t0mpr1c3 a day ago | parent | prev [-] | ||||||||||||||||
I don't know really. My guess is that Zig cannot be considered mature until someone has written an application in it that contains a Lisp interpreter. I'm banking on Ghostty. Your move MH ;) | |||||||||||||||||