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.

Lichess and Take Take Take Sign Cooperation Agreement

https://lichess.org/@/Lichess/blog/lichess-and-take-take-take-sign-cooperation-agreement/DZS0S0Dy
1•hyperbovine•2m ago•0 comments

Mcpnest

https://www.mcpnest.io/
1•malasartes•6m ago•1 comments

Bitcoin and Quantum Computing

https://nehanarula.org/2026/04/03/bitcoin-and-quantum-computing.html
2•nehan•7m ago•0 comments

Show HN: Custom Podcast Summarizer

1•jprorok•8m ago•0 comments

Cold Email Grader, check it out

https://getautocrm.com/tools/email-grader
1•BrendanSF•8m ago•0 comments

Death of the IDE?

https://addyo.substack.com/p/death-of-the-ide
1•robenkleene•9m ago•0 comments

Protecting against TPM interposer attacks

https://lwn.net/SubscriberLink/1064685/c29938fbf06e9d09/
1•Velocifyer•9m ago•0 comments

Anthropic's Project Glasswing sounds necessary to me

https://simonwillison.net/2026/Apr/7/project-glasswing/
2•simonw•10m ago•0 comments

The Design Index – A "Bloomberg Terminal" for Design Systems

https://thedesignindex.co/
1•prashaant•11m ago•0 comments

Social Impact Hackathon for Latinamerica

https://hack.indies.la/
1•jdiaz97•15m ago•0 comments

Backblaze Performance Stats Q1 2026

https://www.backblaze.com/blog/backblaze-performance-stats-q1-2026/
1•LaSombra•16m ago•0 comments

Intercepting React calls via a portal and a fake DOM to draw on Canvas

https://vezaynk.github.io/react-direct-canvas/
1•sattoshi•20m ago•0 comments

Digital Ocean blocked my account

1•ugly_munchkin•21m ago•3 comments

Show HN: An interactive map of Tolkien's Middle-earth

https://middle-earth-interactive-map.web.app/
3•frasermarlow•21m ago•0 comments

UCCL-EP: Portable Expert-Parallel Communication – Full Results

https://uccl-project.github.io/posts/uccl-ep-full/
1•matt_d•21m ago•0 comments

ErrataBench

https://github.com/reviseio/errata-bench
2•artursapek•21m ago•0 comments

Optimising a pipelined RISC-V core: from naive pipeline to near-superscalar perf

https://mummanajagadeesh.github.io/blogs/optm-riscv-core/
1•fanf2•21m ago•0 comments

Al-Khwarizmi ("Algorithm")

https://en.wikipedia.org/wiki/Al-Khwarizmi
1•profsummergig•22m ago•0 comments

Harrier – Microsoft Open-Sources Industry-Leading Embedding Model

https://blogs.bing.com/search/April-2026/Microsoft-Open-Sources-Industry-Leading-Embedding-Model
1•HanClinto•23m ago•1 comments

vLLM IR: A Functional Intermediate Representation for vLLM

https://github.com/vllm-project/vllm/issues/32358
2•matt_d•23m ago•0 comments

AWS S3 Files

https://aws.amazon.com/about-aws/whats-new/2026/04/amazon-s3-files/
2•dvrp•24m ago•0 comments

How do you prevent PII from leaking into test fixtures and staging datasets?

https://github.com/certifieddata/pii-scan
1•dk970•25m ago•1 comments

Section 4 of the 25th Amendment to the US Constitution

https://en.wikipedia.org/wiki/Twenty-fifth_Amendment_to_the_United_States_Constitution
3•OhMeadhbh•27m ago•2 comments

How Photofeeler (dating pic ranking site) works

https://getdatingphotos.com/how-photofeeler-works
3•nsokolsky•27m ago•0 comments

The best VR game I've ever played wasn't a VR game

https://alanmunirji.dev/#blog=vr-immersion
1•_345•27m ago•1 comments

Show HN: User-Friendly Persistent AI Memory Layer

https://www.reflectmemory.com/
1•vanstrata•30m ago•0 comments

We built a biological ALife chassis in our garage (open-source)

https://github.com/neurobotics-sci/neurobotics-biological-substrate/
1•Neurobotics_CIO•30m ago•0 comments

CS Trivia Crossword Puzzles

https://cstrivia.com/
2•delotrag•31m ago•0 comments

Local AI reads WhatsApp and books meetings – no cloud, no subscription

https://lmim.tech
2•iamonthemission•34m ago•3 comments

Agent SLOs: Grounding autonomous agents in metrics that matter

https://blog.firetiger.com/agent-slos-grounding-autonomous-agents-in-metrics-that-matter/
2•matsur•34m ago•0 comments