Show HN: Compile the same source for GPUs and CPUs
discuss
- Points3
- Comments0
discuss
I'm writing a language called xc and its compiler, xcc for the last 6 months or so (full disclosure: with a lot of help from Claude). I've finally got version 1 (actually v1.0.1) out, for Linux (x86-64 and arm64, including the Pi 5), macOS and Windows. The idea: you write an ordinary loop, the compiler works out whether it can run in parallel, and it emits both a multi-core CPU version and GPU kernels (MSL, PTX, SPIR-V or WGSL, all generated by xcc itself without needing an SDK installed). At…
Story details from Hacker News ↗ · linked article on github.com.
Show HN: Compile the same source for GPUs and CPUs was first seen on Hacker News · Front page on Nov 22, 2026. Since then it has appeared in 22 checks on 1 different day. Its best position was #19 of 30, reached on Nov 22, 06:29 UTC. It dropped off the list after Nov 22, 12:14 UTC.
Position on Hacker News · Front page at every check (lower is better).
Best rank per day (UTC).
Platform metric as reported by Hacker News.
Archived daily, weekly and monthly lists that include this entry.
Not at the moment. It was last on the list on Nov 22, 12:14 UTC, after 1 day of trending.
#19 on Hacker News · Front page, on Nov 22, 06:29 UTC. Trendoday checks this list every 15 minutes.
It was first seen on Nov 22, 2026 and has been on the list on 1 day (22 checks) since.
3 points and 0 comments; submitted by spacedcowboy on Nov 13, 2026.