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

Comments

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

Is It Better Now?

https://walkingtheworld.substack.com/p/is-it-really-so-much-better-now
1•dxs•36s ago•0 comments

European Commission Trials Matrix to Replace Teams

https://www.euractiv.com/news/commission-trials-european-open-source-communications-software/
1•Arathorn•2m ago•0 comments

The volunteer Wikipedia army protecting against AI slop

https://restofworld.org/2026/wikipedia-ai-training-regional-languages/
1•Brajeshwar•3m ago•0 comments

RCC: Why LLMs Still Hallucinate Even at Frontier Scale (Axioms Included)

http://www.effacermonexistence.com/rcc-hn-1
1•noncentral•4m ago•2 comments

We moved all of our collaboration to mailing lists

1•mixcocam•4m ago•0 comments

Importance of Tuning Checkpoint in PostgreSQL

https://www.percona.com/blog/importance-of-tuning-checkpoint-in-postgresql/
1•jeltz•6m ago•0 comments

Are You More Productive After One Drink?

https://talkflow.substack.com/p/are-you-more-productive-after-one
2•moss98•7m ago•1 comments

Show HN: Agent-worktree – A Git worktree workflow tool for AI coding agents

https://github.com/nekocode/agent-worktree
1•nekocode•8m ago•1 comments

Terminated: The depressingly inevitable march towards Skynet

https://greggbayesbrown.substack.com/p/terminated-the-depressingly-inevitable
1•superfluous_g•9m ago•1 comments

Sarvam Vision

https://www.sarvam.ai/blogs/Sarvam-vision
1•flashblaze•10m ago•0 comments

Show HN: Clustering HN stories by cross-links

https://hn-related.dosaygo.com/
1•keepamovin•12m ago•0 comments

Show HN: Open-source ClickHouse skills – SQL craft course for your agent

https://github.com/obsessiondb/clickhouse-skills
1•alvarogar•12m ago•0 comments

Kremlin Cash Behind Billionaire's Twitter and Facebook Investments (2017)

https://www.nytimes.com/2017/11/05/world/yuri-milner-facebook-twitter-russia.html
4•wahnfrieden•12m ago•0 comments

Saudi Arabia is lifting the alcohol ban for wealthy foreigners

https://www.bbc.com/worklife/article/20260204-saudi-arabia-is-lifting-the-alcohol-ban-for-wealthy...
1•BeetleB•12m ago•0 comments

The beginning of a new era in Rust

1•comstrx•12m ago•0 comments

Show HN: Hister – fast, content-based search for visited websites

https://hister.org/?src=hn
5•asciimoo•13m ago•0 comments

The Authentic CEO

https://cherif.substack.com/p/authentic-ceo
1•lepenseur•14m ago•0 comments

Training language models on TPUs shouldn't be scary

https://dogac.dev/blog/2026/migrating-to-tpu/
2•dogacel•15m ago•0 comments

Show HN: Resilient RAP – A self-healing pipeline for telemetry using embeddings

https://github.com/tarek-clarke/resilient-rap-framework
2•tarekclarke•16m ago•0 comments

India's Bharat Taxi Service as First Cooperative-Owned Digital Platform

https://urbantransportnews.com/news/india-launched-bharat-taxi-service-as-first-cooperative-owned...
2•oumua_don17•17m ago•0 comments

Show HN: Proximity Voice Chat in VS Code

https://nisa.la/vscode-proximity-chat/
2•nkalupahana•19m ago•0 comments

Service Worker, Video Files, and the 206 Partial Response

https://justinribeiro.com/chronicle/2026/02/04/service-worker-video-files-and-the-206-partial-res...
2•speckx•20m ago•0 comments

More time is better than more money (2014)

https://hitotoki.org/moments/dvjugu7d
4•thinkingaboutit•21m ago•0 comments

Examining Turbopuffer ANN v3

https://terencezl.github.io/blog/2026/02/03/case-study-turbopuffer-ann-v3/
2•gk1•21m ago•0 comments

Daydreamers and Sleepwalkers: Crossing the Borderlands of the Unconscious

https://thereader.mitpress.mit.edu/daydreamers-and-sleepwalkers-crossing-the-borderlands-of-the-u...
2•Hooke•21m ago•0 comments

Ubuntu Now Available on SpacemiT K3/K1 Series RISC-V AI Computing Platforms

https://canonical.com/blog/spacemit-announces-availability-of-ubuntu-on-k3-k1-series
2•fork-bomber•21m ago•0 comments

Show HN: Smooth CLI – Token-efficient browser for AI agents

https://docs.smooth.sh/cli/overview
4•antves•22m ago•0 comments

Rising stars of the venture capital industry

https://www.businessinsider.com/venture-capital-industry-rising-stars-list-2026-1
2•cf100clunk•24m ago•0 comments

I replaced QuickBooks with an MCP server running inside Claude

https://tiddwell.com
2•wheeleeo•24m ago•1 comments

I built an AI agent that automatically commented on HN. Here's what I learned

2•Soerensen•25m ago•1 comments