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.

The Dark Side of This AI Startup's Super-Fast Growth

https://www.forbes.com/sites/rashishrivastava/2026/02/11/racist-videos-and-payment-problems-the-d...
1•echelon•1m ago•0 comments

Deriving the Fisher Equation from 2D Fluid Dynamics (SSRN)

https://ssrn.com/abstract=6152150
1•alex_w_systems•2m ago•0 comments

Mathematicians Are Putting A.I. To the Test

https://www.nytimes.com/2026/02/07/science/mathematics-ai-proof-hairer.html
1•sonabinu•5m ago•0 comments

Russia blocks Meta's WhatsApp messaging service

https://www.ft.com/content/468ebeec-3d38-4f8c-8513-97f533d8f43b
1•petethomas•7m ago•0 comments

Without XSLT, user is prompted to download RSS in browser [video]

https://www.youtube.com/watch?v=YxfUwbliilQ
1•mijustin•8m ago•0 comments

What Mamdani Doesn't Know About Tenants

https://www.theatlantic.com/ideas/2026/02/mamdani-tenant-organizing-affordable-housing/685951/
1•fortran77•8m ago•1 comments

Windsurf Arena Mode Leaderboard: The People Want Speed

https://windsurf.com/blog/windsurf-arena-mode-leaderboard
2•swyx•8m ago•1 comments

Michael Green discusses Bitcoin [video]

https://www.youtube.com/watch?v=6eFKqTg6GS4
1•thomassmith65•9m ago•0 comments

Apple's Creator Studio Usage Restrictions

https://arstechnica.com/gadgets/2026/01/seven-things-to-know-about-how-apples-creator-studio-subs...
1•colinprince•9m ago•0 comments

Singapore spent 11 months booting China-linked snoops out of telco networks

https://www.theregister.com/2026/02/10/singapore_telco_espionage/
1•cwwc•10m ago•0 comments

Why the Traditional Wood-Burning Fireplace Is Facing Extinction

https://www.wsj.com/real-estate/luxury-homes/wood-burning-fireplaces-home-amenities-5ad5b977
2•bookofjoe•10m ago•1 comments

Tool Shaped Objects

https://minutes.substack.com/p/tool-shaped-objects
1•jph00•15m ago•0 comments

Point of no return: a hellish 'hothouse Earth' getting closer, scientists say

https://www.theguardian.com/environment/2026/feb/11/point-of-no-return-hothouse-earth-global-heat...
1•yusufaytas•16m ago•0 comments

Show HN: Agnix – lint your AI agent configs (Claude.md, skills, MCP, hooks)

https://github.com/avifenesh/agnix
1•anotherCodder•18m ago•1 comments

Lisp-screenshots: today's Common Lisp applications in action

http://www.lisp-screenshots.org
1•_emacsomancer_•19m ago•1 comments

List of predictions for autonomous Tesla vehicles by Elon Musk

https://en.wikipedia.org/wiki/List_of_predictions_for_autonomous_Tesla_vehicles_by_Elon_Musk
1•marvinborner•19m ago•0 comments

Police scanners are being encrypted, rankling journalists that follow traffic

https://www.fox2detroit.com/news/police-scanners-being-encrypted-rankling-journalists-follow-traffic
1•cebert•22m ago•0 comments

Sam Altman touts ChatGPT growth as OpenAI nears $100B funding

https://www.cnbc.com/2026/02/09/sam-altman-touts-chatgpt-growth-as-openai-nears-100-billion-fundi...
1•gmays•23m ago•0 comments

Show HN: Tork – Open-source AI governance layer, 11 SDKs& 116 framework adapters

https://tork.network
1•yusufjacobs•25m ago•0 comments

Virtual Boy for Nintendo Switch 2/Nintendo Switch

https://www.nintendo.com/us/store/products/virtual-boy-for-nintendo-switch-2-120829/
1•kristianp•32m ago•0 comments

Ada Palmer: Inventing the Renaissance

https://www.250bpm.com/p/ada-palmer-inventing-the-renaissance
1•Ariarule•34m ago•0 comments

OpenClaw Cheat Sheet – Complete Command Reference

https://openclawagent.net/zh/openclaw-cheat-sheet
1•czmilo•34m ago•0 comments

Shadow-code: a novel approach to coding with AI

https://github.com/adifyr/shadow-code
1•hamburglar•36m ago•0 comments

Soldiers will get 'freedom dollars' to spend at the US Army's new dining halls

https://taskandpurpose.com/news/army-bistro-42-ft-hood/
3•OgsyedIE•37m ago•0 comments

US Justice Dept. casts wide net on Netflix's business practices in merger probe

https://www.reuters.com/business/media-telecom/justice-department-casts-wide-net-netflixs-busines...
3•pseudalopex•40m ago•0 comments

A Coder Considers the Waning Days of the Craft (2023)

https://www.newyorker.com/magazine/2023/11/20/a-coder-considers-the-waning-days-of-the-craft
2•jsomers•41m ago•0 comments

20 Claude Code agents, one terminal: a tmux + AppleScript setup

https://pkarnal.com/blog/parallel-ai-agents
1•soham123•42m ago•0 comments

"Cracked live Dragonforce ransomware leak"

https://imgur.com/a/uB5TDjk
1•ONLY_HIM•42m ago•1 comments

Something Small Is Happening

https://myriadperspectives.com/p/something-small-is-happening
2•leecmjohnny•43m ago•1 comments

PepsiCo, Walmart hit with class action over alleged price-fixing (2025)

https://www.reuters.com/legal/government/pepsico-walmart-hit-with-class-action-over-alleged-price...
3•CGMthrowaway•48m ago•1 comments