frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Zig and GPUs

https://alichraghi.github.io/blog/zig-gpu/
57•Cloudef•10mo ago

Comments

LegNeato•10mo ago
See also https://github.com/Rust-GPU/rust-gpu and https://github.com/rust-gpu/rust-cuda
ladyanita22•10mo ago
Surprisingly, it seems this project just supports Spir-V and PTX, but not DXIL or AMDGCN.

I say surprisingly, because I'd expect Rust support to be more mature than Zig's.

lostmsu•10mo ago
Microsoft indicated they are switching to SPIR-V from DXIL: https://devblogs.microsoft.com/directx/directx-adopting-spir...
skywal_l•10mo ago
I am a complete noob in GPU but is AMDGCN the older generation with the new one being RDNA? If you generate a binary for AMDGCN, will it run on the newest cards?

Also, I though that these GPU ISAs were "proprietary". I wonder how reliable the binary generation can be.

AliChraghi•10mo ago
AMD ISAs are changing for almost every generation so LLVM[1] continues to keep the architecture name "amdgcn" and handle the variation based on the model flag (e.g., -mcpu=gfx1030 for RDNA2, -mcpu=gfx1100 for RDNA3).

> I though that these GPU ISAs were "proprietary"

PTX spec[2] is publicly available but the actual hardware assembly (SASS) is not. Although i believe Nsight allows you to view it.

1. https://llvm.org/docs/AMDGPUUsage.html#processors

2. https://docs.nvidia.com/cuda/parallel-thread-execution

imtringued•10mo ago
If LLVM can target AMD GPUs what exactly prevents AMD and ROCm from supporting all the damn GPUs?

At this point I'm convinced that the real problem with AMD GPUs isn't necessarily the compilers (although they do produce mediocre code) or even the hardware itself, but some crappy C++ driver code that can't handle running graphics and compute at the same time. The datacenter GPUs never had to run graphics in the first place, so they are safe.

slavik81•10mo ago
In my experience, the compiler, compute drivers, and HIP runtime work fine for all modern AMD GPUs. The only parts of the stack that don't run on all GPUs are the math and AI libraries. And that is mostly because AMD isn't building and testing those libraries for unsupported GPUs. The actual work required to enable functional support was straightforward enough that I ported them myself when packaging the libraries for Debian. Though, I had a lot of help on the testing.

See the Debian Trixie Supported GPU list: https://salsa.debian.org/rocm-team/community/team-project/-/...

SomaticPirate•10mo ago
While I admire the work of hobbyists it still looks like C/C++ will be the default until a GPU vender makes the decision to support these libraries.

From my understanding, Vulkan and OpenGL are nice but the true performance lies in the specific toolkits (ie CUDA, Metal).

Wrapping the vendor provided frameworks is liable to break and that isn't tenable for someone who wants to do this on a professional basis.

pjmlp•10mo ago
They also miss that on CUDA's case it is an ecosystem.

Actually it is C, C++, Fortran, OpenACC and OpenMP, PTX support for Java, Haskell, Julia, C#, alongside the libraries, IDE tooling and GPU graphical debugging.

Likewise Metal is plain C++14 plus extensions.

On the graphics side, HLSL dominates, following by GLSL and now slang. There are then MSL, PSSL and whatever NVN uses.

By the way, at GTC NVIDIA announced going all in with Python JIT compilers for CUDA, with feature parity with existing C++ tooling. There is now a new IR for doing array programming, Tile IR.

dismalaf•10mo ago
I don't quite get this comment.

This is supposed to be used in place of CUDA, HIP, Metal, Vulkan, OpenGL, etc... It's targeting the hardware directly so doesn't need to be supported as such.

The site also seems to clearly state it's a work in progress. It's just an interesting blog post...

slowmovintarget•10mo ago
The Zig compiler can compile C, though.

Ohio EPA weighs allowing data centers to dump wastewater into rivers

https://www.nbc4i.com/news/local-news/columbus/ohio-epa-weighs-allowing-data-centers-to-release-w...
1•randycupertino•43s ago•0 comments

What if LLM uptime was a macroeconomic indicator?

https://lab.sideband.pub/status/
1•shawnyeager•1m ago•0 comments

Watch Out Bluetooth Analysis of the Coros Pace 3 (2025)

https://blog.syss.com/posts/bluetooth-analysis-coros-pace-3/
1•lqueenan•1m ago•0 comments

Risk, in Perspective

https://faingezicht.com/articles/2026/03/02/risk-in-perspective/
1•avyfain•1m ago•0 comments

No mentor? Learn from a 16th century French nobleman

https://www.magicreader.com/montaigne
1•mzelling•1m ago•0 comments

Show HN: I built a way to prove your software kept its promises

https://github.com/nobulexdev/nobulex
1•arian_•2m ago•0 comments

How do I market myself as a freelance Backend/Infrastructure engineer?

1•__0x01•2m ago•0 comments

The Limits of Today's AI Systems

1•Yinfan•2m ago•0 comments

Accept-Language Redirects Could Be Blocking Search Engines and AI Crawlers

https://merj.com/blog/your-accept-language-redirects-could-be-blocking-search-engines-and-ai-craw...
1•giacomoz•2m ago•0 comments

Is Unbound AI Video the most uncensored AI model in 2026?

https://unbound.video
1•gabrieln•3m ago•1 comments

Drizzle Joins PlanetScale

https://planetscale.com/blog/drizzle-joins-planetscale
2•alexblokh•3m ago•0 comments

Political market entropy in Rome. An analysis of different electoral cycles

https://www.frontiersin.org/journals/political-science/articles/10.3389/fpos.2026.1744381/full
1•PaulHoule•3m ago•0 comments

Show HN: Readme badge to quickly find related open source repos

https://relatedrepos.com/badge
1•plurch•4m ago•0 comments

Apollo sued for allegedly concealing Epstein business ties from shareholders

https://www.reuters.com/sustainability/boards-policy-regulation/apollo-leon-black-sued-allegedly-...
1•petethomas•4m ago•0 comments

Free Software Needs Free Tools: Making Your Project Open

https://cfp.cfgmgmtcamp.org/ghent2026/talk/LHWU8T/
1•Tomte•5m ago•0 comments

Show HN: A Write Barrier That Blocks Structural Collapse in LLM Reasoning

1•persistentVlad•5m ago•1 comments

Show HN: Exodus – we tracked 240 moves across companies to map the AI talent war

https://7min.ai/exodus/
1•fabioperez•6m ago•0 comments

Designing Search Experiences

1•CShorten•7m ago•0 comments

Deploy from GitHub Actions without Storing Secrets (Using OIDC)

https://www.even.li/posts/2026-03-03-deploy-github-actions-without-storing-secrets-using-oidc/
1•n_e•8m ago•0 comments

Two Months as a Vibe Coder

https://www.pinchofintelligence.com/two-months-as-a-vibe-coder/
1•rmeertens•8m ago•0 comments

Finance in the Dark

https://www.phenomenalworld.org/analysis/finance-in-the-dark/
1•speckx•8m ago•0 comments

I made the first eSIM service for OpenClaw

https://www.getesimpal.com/en-US/agents
1•deniurchak•10m ago•1 comments

The 10x inference tax you don't have to pay

https://www.distillabs.ai/blog/the-10x-inference-tax-you-dont-have-to-pay
1•maciejgryka•10m ago•0 comments

Show HN: Aside – Local meeting capture with vault-native AI distillation

https://github.com/jshph/aside/
1•jphorism•11m ago•0 comments

Package Management Is Naming All the Way Down

https://nesbitt.io/2026/03/03/package-management-is-naming-all-the-way-down.html
1•zdw•12m ago•0 comments

Plasma Bigscreen – 10-foot interface for KDE plasma

https://plasma-bigscreen.org
1•birdculture•12m ago•0 comments

Darwinian Post-Design

https://medium.com/@big.sebastian.ionut/darwinian-post-design-when-ease-of-use-becomes-the-only-h...
1•levabalkin•13m ago•1 comments

Qatar Shuts World’s Largest LNG Export Plant

https://www.bloomberg.com/news/articles/2026-03-02/european-gas-rallies-more-than-30-as-qatar-hal...
3•geox•14m ago•0 comments

Show HN: Kai – macOS native fully autonomous AI agent.

https://www.hikai.space
2•StephaneBessa•15m ago•0 comments

Invite people over to your home regularly

https://blog.mattglassman.net/you-should-invite-people-over-to-your-home-regularly/
3•speckx•17m ago•0 comments