Show HN: Compile the same source for GPUs and CPUs
Category: devtools
Tags: heterogeneous-computing, data-parallel, compiler, gpu, cross-platform
Score: 7.0/10 (Innovation: 8, Technical: 9, Documentation: 5, Utility: 6)
xc is a heterogeneous data-parallel language and compiler (xcc) that can automatically run ordinary C-like loops across CPUs, multiple GPUs, and even remote machines, generating kernels for Metal, CUDA, Vulkan, and WebGPU. The project is technically ambitious, building its own IR, back ends, and runtime, but early-stage adoption is limited and documentation is still sparse.
Target audience: systems programmers, HPC developers, GPU compute engineers
Repository: https://github.com/ThrudTheBarbarian/xc · XC · GPL-3.0 · 10 stars
View on Hacker News