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

Comments

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

AI Mathematical Olympiad – Progress Prize 3

https://www.kaggle.com/competitions/ai-mathematical-olympiad-progress-prize-3
1•kristianp•52s ago•0 comments

MADvent – A Math and Logic Advent Calendar for Your Kids

https://madvent.amithm.ca/about
1•amitpm•1m ago•1 comments

Noodl.ist

https://jetgirl.art/introducing-noodlist/
1•jetgirl•1m ago•0 comments

Agents need good developer experience too

https://modal.com/blog/agents-devex
1•birdculture•2m ago•0 comments

Richard Feldman, "New Ways to Roc" [video]

https://www.youtube.com/watch?v=VnPw9rk8FI8
1•stephdin•3m ago•0 comments

Show HN: A "what-if" budget planner app born from new-parent chaos

https://planstheapp.com
1•riario•3m ago•0 comments

Helping Agents Debug Webapps

https://blog.fsck.com/2025/12/02/helping-agents-debug-webapps/
1•Ch00k•6m ago•0 comments

Oracle Credit Fear Gauge Hits Highest Since 2009 on AI Bubble Fears

https://www.bloomberg.com/news/articles/2025-12-02/oracle-credit-fear-gauge-hits-highest-since-20...
1•petethomas•7m ago•0 comments

Honduran ex-president released from US prison after Trump pardon

https://www.bbc.com/news/articles/cpvdr8k7xjro
2•wslh•12m ago•0 comments

H-1B to Plan B: India's top tech talent looks beyond the U.S.

https://restofworld.org/2025/india-tech-talent-diversifies-beyond-us/
1•nanfinitum•15m ago•0 comments

Comparison of Waymo Rider-Only crash rates by crash type to human benchmarks

https://www.tandfonline.com/doi/full/10.1080/15389588.2025.2499887
1•agnosticmantis•18m ago•0 comments

Rebinding for Observer-Safe Information Design

https://rebinding.is/
1•isaacbowen•22m ago•0 comments

Ask HN: Which web browser are you using and why?

4•throwaway81998•23m ago•4 comments

Claude the albino alligator in Cal Academy passed away at age 30

https://www.calacademy.org/press/releases/claude-the-albino-alligator-passes-away-at-age-30
1•elinear•25m ago•0 comments

Claude Died

https://abc7news.com/post/cal-academy-announces-beloved-claude-albino-alligator-has-died-30/18241...
8•jumploops•28m ago•2 comments

Cloth Simulation

https://cloth.mikail-khan.com/
1•adamch•29m ago•0 comments

Show HN: Build CLI apps with Ink that run in the browser

https://www.ink-web.dev/
2•thoughtfulchris•30m ago•0 comments

Time Became Money: Clocks, Capitalism and Wealth

https://www.ft.com/content/696d9ced-9022-49bc-9cd9-501fce897146
1•skx001•34m ago•0 comments

The FY26 NDAA: The Critical Power Pivot in Strategy, Silicon, and Steel

https://nerdrums.com/inside-the-fy26-ndaa/
1•Justin_N•35m ago•1 comments

LST-1 follow-up of the exceptionally bright gamma-ray burst GRB 221009A

https://arxiv.org/abs/2512.01747
1•belter•36m ago•0 comments

The Most Common Signs of a Heart Attack

https://www.nytimes.com/2025/10/10/well/common-signs-heart-attack.html
1•brandonb•37m ago•1 comments

Waymo hits a dog in San Francisco, reigniting safety debate

https://www.latimes.com/business/story/2025-12-02/waymo-strikes-dog-in-san-francisco-weeks-after-...
3•petethomas•39m ago•1 comments

Vintage Computing Christmas Challenge

https://logiker.com/Vintage-Computing-Christmas-Challenge-2025
2•varjag•39m ago•0 comments

Exploring Large HTML Documents on the Web

https://calendar.perfplanet.com/2025/exploring-large-html-documents-on-the-web/
7•zdw•40m ago•0 comments

Academic society bans Larry Summers for life over close ties to Jeffrey Epstein

https://apnews.com/article/larry-summers-harvard-jeffrey-epstein-bebad1142f859c15467ed010c08ea6fa
1•bikenaga•42m ago•0 comments

Windows 11 October 2025 Update Triggers Major Gaming Performance Regression

https://www.guru3d.com/story/windows-11-kb5066835-update-triggers-major-gaming-performance-regres...
6•d3Xt3r•45m ago•3 comments

The Three Rights of the Patent Office [video]

https://www.youtube.com/watch?v=Tfh8fFyR-tM
1•aregue•45m ago•0 comments

Derby Computer Museum

https://www.derbycomputermuseum.co.uk/
1•thorin•45m ago•0 comments

Codex Skills

https://github.com/openai/codex/blob/main/docs/skills.md
1•geri4•47m ago•0 comments

What Time Is It on Mars? NIST Physicists Have the Answer

https://www.nist.gov/news-events/news/2025/12/what-time-it-mars-nist-physicists-have-answer
2•geox•48m ago•1 comments