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

Comments

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

YouTube has removed the ability to search by upload date

https://twitter.com/infolibnews/status/2009705738122539264
1•turrini•1m ago•0 comments

What is a Doomsday Plane and why did it land at LAX?

https://www.hindustantimes.com/world-news/us-news/what-is-a-doomsday-plane-and-why-did-it-land-at...
1•clanky•4m ago•0 comments

New evidence for a particle system that 'remembers' its previous quantum states

https://phys.org/news/2026-01-evidence-particle-previous-quantum-states.html
1•westurner•4m ago•1 comments

Recursive Language Models W: Alex Zhang [video]

https://www.youtube.com/watch?v=_TaIZLKhfLc
1•bob1029•10m ago•0 comments

Reason Studios acquired by AI music production specialist LANDR

https://www.musicradar.com/music-tech/this-isnt-about-changing-reason-its-about-giving-it-room-to...
1•CrypticShift•11m ago•0 comments

Americans Won't Ban Kids from Social Media. What Can We Do Instead?

https://www.newyorker.com/news/fault-lines/americans-wont-ban-kids-from-social-media-what-can-we-...
1•PaulHoule•16m ago•0 comments

Show HN: Scroll Podcasts Like TikTok

https://podtoc.com/app/
1•conradbez•18m ago•0 comments

Training Your Own LLM on a MacBook in 10 Minutes

https://opuslabs.substack.com/p/training-your-own-llm-on-a-macbook
1•opuslabs•20m ago•0 comments

Agentic ProbLLMs: Exploiting AI Computer-Use and Coding Agents [video]

https://www.youtube.com/watch?v=8pbz5y7_WkM
1•lynx97•23m ago•0 comments

How to Steal Any React Component

https://fant.io/react/
1•handfuloflight•23m ago•0 comments

ICEout.Tech demand letter from tech community

https://docs.google.com/forms/d/e/1FAIpQLSfCcCDd5aw2viBsT-sKAP5w9k66g8EdrSWpScTdM_-38v025g/viewform
3•theworkeragency•24m ago•2 comments

Amazon has big hopes for wearable AI – starting with this $50 gadget

https://www.seattletimes.com/business/amazon-has-big-hopes-for-wearable-ai-starting-with-this-50-...
1•walterbell•28m ago•0 comments

Show HN: Readable – A Swipeable Article Reader

https://chromewebstore.google.com/detail/readable-swipeable-articl/cegfoepnghfonapjdmjiigdekdnhnjof
2•randoglando•30m ago•0 comments

Bored

https://idiallo.com/static/bored.html
1•foxfired•31m ago•0 comments

Show HN: arxiv2md: Convert ArXiv papers to markdown

https://arxiv2md.org/
1•timf34•31m ago•0 comments

Firefox pinch zoom without trackpad

https://superuser.com/questions/1659519/firefox-pinch-zoom-without-trackpad
1•goodburb•32m ago•0 comments

Nvidia's AI Bubble [video]

https://www.youtube.com/watch?v=mFG3Ah-zf18
1•behnamoh•35m ago•0 comments

Show HN: WebTiles – create a tiny 250x250 website with neighbors around you

https://webtiles.kicya.net/
1•dimden•39m ago•0 comments

The Shape of Movies

https://www.theshapeofmovies.com/
3•florgy•43m ago•0 comments

Caltrain shows why every region should be moving toward regional rail

https://www.hsrail.org/blog/caltrain-shows-why-every-region-should-be-moving-toward-regional-rail/
28•gok•46m ago•23 comments

Vercel's sleep-deprived race to contain React2Shell

https://cyberscoop.com/vercel-cto-security-react2shell-vulnerability/
1•cramforce•48m ago•0 comments

See it with your lying ears

https://lcamtuf.substack.com/p/see-it-with-your-lying-ears
14•fratellobigio•48m ago•0 comments

Face masks 'inadequate' and should be swapped for respirators, WHO is advised

https://www.theguardian.com/global-development/2026/jan/09/health-professionals-respirator-grade-...
3•bookofjoe•50m ago•0 comments

Tiny TPU in a Week

https://5iri.me/blog/tiny-tpu-week
1•freediver•50m ago•0 comments

How do you forecast with tiny datasets (2–15M ARR)

1•Gransberry•52m ago•0 comments

Gemini: I can't help with that. Try asking something else about this video

https://www.youtube.com/watch?v=g-QyFIu8Zbc
1•bicepjai•57m ago•1 comments

Neo-Royalism, the Trump Administration, and the Emerging International System

https://www.cambridge.org/core/journals/international-organization/article/further-back-to-the-fu...
4•bikenaga•1h ago•2 comments

Australia's social media ban, one month on

https://www.bbc.com/news/articles/c0mpmgn3jv2o
3•dabinat•1h ago•2 comments

System: Control your Mac from anywhere with AI

https://github.com/ygwyg/system
1•latchkey•1h ago•0 comments

EU calls for input: How to strengthen EU Open Source

https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=intcom:Ares%282026%2969111
4•Flundstrom2•1h ago•2 comments