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•11mo ago

Comments

LegNeato•11mo ago
See also https://github.com/Rust-GPU/rust-gpu and https://github.com/rust-gpu/rust-cuda
ladyanita22•11mo 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•11mo ago
Microsoft indicated they are switching to SPIR-V from DXIL: https://devblogs.microsoft.com/directx/directx-adopting-spir...
skywal_l•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo 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•11mo ago
The Zig compiler can compile C, though.

Best practices for improving supply chain visibility in road freight (2023)

https://www.sennder.com/blog/improving-supply-chain-visibility-in-road-freight
1•mooreds•39s ago•0 comments

TarPit.pro – honeypot that catches and auto-bans attackers

https://tarpit.pro/
1•chka•1m ago•1 comments

Inside the 'self-driving' lab revolution

https://www.nature.com/articles/d41586-026-00974-2
1•salkahfi•1m ago•0 comments

Why Every AI Scores Below 1% on ARC-AGI-3: A Structural Explanation

https://medium.com/@dlugli76/why-every-ai-scores-below-1-on-arc-agi-3-a-structural-explanation-c5...
1•Dailui•2m ago•0 comments

Claude and Taxes

https://simonsafar.com/2026/claude_and_taxes/
1•speckx•2m ago•0 comments

The hypercurious mind: How ADHD may have helped humans thrive

https://aeon.co/essays/how-the-hypercuriosity-of-adhd-may-have-helped-humans-thrive
1•dinosor•3m ago•0 comments

Understanding Is About Constraints

https://thepatrickglenn.substack.com/p/understanding-is-about-constraints
1•pwmglenn•3m ago•0 comments

What Happens When You Tell AI Agents the Rules but Don't Enforce Them

https://github.com/liuhaotian2024-prog/ystar-bridge-labs
1•zippolyon•4m ago•0 comments

2027 Chevy Corvette Grand Sport: New LS6 and Z06 Aero

https://www.thedrive.com/news/2027-chevy-corvette-grand-sport-the-goldilocks-spec-returns-with-ne...
2•PaulHoule•7m ago•0 comments

Show HN: Zerobox – Sandbox any command with file and network restrictions

https://github.com/afshinm/zerobox
2•afshinmeh•8m ago•0 comments

SpaceX's monster IPO is unlike anything we've seen

https://www.axios.com/2026/03/30/spacex-ipo-elon-musk-wall-street
3•rurp•8m ago•0 comments

Hackers now exploit critical F5 BIG-IP flaw in attacks, patch now

https://www.bleepingcomputer.com/news/security/hackers-now-exploit-critical-f5-big-ip-flaw-in-att...
3•Brajeshwar•9m ago•0 comments

Foxing aspires to be an eBPF-powered replication engine for Linux filesystems

https://codeberg.org/aenertia/foxing
2•tanelpoder•10m ago•0 comments

Vibe check: AI may replace SaaS (but not for a while)

https://www.ncsc.gov.uk/blogs/vibe-check-ai-may-replace-saas-but-not-for-a-while
2•jruohonen•10m ago•0 comments

Analyzing round trip query latency

https://www.datadoghq.com/blog/analyzing-roundtrip-query-latency/
2•amw-zero•11m ago•0 comments

The future belongs to small companies

https://nicolaiarocci.com/the-future-belongs-to-small-companies/
2•speckx•11m ago•0 comments

2 Australian States Waive Transit Fares as Fuel Prices Soar

https://www.nytimes.com/2026/03/30/world/australia/australia-melbourne-free-transit.html
2•bookofjoe•14m ago•0 comments

Only-fans – CLI tool to bypass Apple's fan speed cap on macOS

https://github.com/ryanshahine/only-fans
3•ryanshahine•15m ago•0 comments

The Infinite Game: What Artists Know That Founders Don't

https://www.nfx.com/post/infinite-game
2•ossa-ma•15m ago•0 comments

How do you estimate LLM costs for automation workflows upfront?

https://llm-architecture-cost-modeler.vercel.app/
2•indiegoing•16m ago•0 comments

Show HN: Giving HTML, Canvas Superpowers

https://github.com/yeargun/chromium5/pull/1
2•yeargun•18m ago•0 comments

Does the Shy Girl Mess Mean We Give Up the Em Dash?

https://annerallen.com/2026/03/does-the-shy-girl-ai-accusation-mean-writers-should-stop-using-the...
1•speckx•18m ago•0 comments

Debating the Sharing Economy (2014)

https://greattransition.org/publication/debating-the-sharing-economy/
2•robtherobber•19m ago•0 comments

BurgerDisk News

https://www.colino.net/wordpress/archives/2026/03/28/burgerdisk-news/
2•ibobev•22m ago•0 comments

A Fast Immutable Map in Go

https://lemire.me/blog/2026/03/29/a-fast-immutable-map-in-go/
2•ibobev•22m ago•0 comments

Show HN: We scored 50k PRs with AI – what we learned about code complexity

https://gitvelocity.dev
5•chuboy•22m ago•0 comments

If You Have Been an Investor – This Is Your Moment to Act

https://manus.im/share/file/c68b4a9f-90dc-4501-9c63-54894d3e1dfb
2•stevendekoenigs•22m ago•0 comments

2026 has been the most pivotal year in my career and it's only March

https://nullprogram.com/blog/2026/03/29/
2•ibobev•24m ago•0 comments

BubbleWrap your dev env and agents

https://dpc.pw/posts/bubblewrap-your-dev-env-and-agents/
2•birdculture•24m ago•0 comments

Show HN: Gameplan – Play poker against a solver

https://gameplan.poker/
2•joelmanner•25m ago•0 comments