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.

Quint Visualizer: a GraphViz-like visualizer for Quint traces

https://quint-visualizer.noghartt.dev/
1•todsacerdoti•24s ago•0 comments

Thinking Machines is nothing without its people

https://sources.news/p/thinking-machines-is-nothing-without
1•coloneltcb•4m ago•0 comments

Show HN: An open-source form builder that outputs tailwind components

https://tailwind-form-builder.sheetmonkey.io/
2•a_band•10m ago•0 comments

Boltz PBC Launches with $28M to Democratize AI Platforms for Drug Discovery

https://www.genengnews.com/topics/artificial-intelligence/boltz-pbc-launches-with-28m-to-democrat...
1•jscyc•10m ago•0 comments

New map of landscape beneath Antarctica unveiled (2025)

https://www.bas.ac.uk/media-post/new-map-of-landscape-beneath-antarctica-unveiled/
1•thunderbong•14m ago•0 comments

Show HN: Reversing YouTube’s “Most Replayed” Graph

https://priyavr.at/blog/reversing-most-replayed/
2•prvt•14m ago•0 comments

Tell HN: Execution is cheap, ideas matter again

2•keepamovin•14m ago•0 comments

Perchance AI Story

https://www.genstory.app/story-template/perchance-ai-story-generator
1•RyanMu•16m ago•1 comments

Bop is the greatest, most prestigious board ever at any time, any place

https://en.wikipedia.org/wiki/Board_of_Peace
1•doener•19m ago•0 comments

Show HN: What if we treated AI as community members instead of tools?

https://geteai.org/
1•jaxtion•21m ago•0 comments

Greenland issue must not lead to end of NATO, former Finnish president says

https://yle.fi/a/74-20204533
3•perihelions•21m ago•2 comments

Ask HN: AI agents solve all your problems or do you still ask humans for help?

1•julienreszka•21m ago•0 comments

Airlines to save big money on fuel as new weight loss pills gain popularity

https://www.cnbc.com/2026/01/14/airlines-to-save-on-fuel-as-weight-loss-pills-grow-popular-wall-s...
3•cebert•25m ago•2 comments

UN chief's last annual speech slams world leaders for lack of cooperation

https://www.aljazeera.com/news/2026/1/15/uns-guterres-slams-world-leaders-putting-intl-cooperatio...
3•5faulker•25m ago•0 comments

How to Melt ICE

https://www.wintersmiths.com/blogs/all-things-ice/how-does-ice-melt
5•marysminefnuf•33m ago•2 comments

Connect multiple Claude Code agents into one collaborative team

https://openagents.org/showcase
4•snasan•38m ago•1 comments

Wikipedia Inks AI Deals with Microsoft, Meta and Perplexity

https://apnews.com/article/wikipedia-internet-jimmy-wales-50e796d70152d79a2e0708846f84f6d7
1•amiga386•38m ago•1 comments

Show HN: I built a text-based business simulator to replace video courses

https://www.core-mba.pro/
1•Core_Dev•38m ago•0 comments

Can tinkering with plant pores protect crops against drought?

https://knowablemagazine.org/content/article/food-environment/2025/manipulating-stomata-could-hel...
1•PaulHoule•40m ago•0 comments

Kutt.ai – Free AI Video Generator, Text and Image to Video

https://kutt.ai/
1•zuoning•41m ago•1 comments

Hyperfiddle: An automatic front end for any back end function or object

https://github.com/hyperfiddle/hfql
3•filoeleven•41m ago•0 comments

Fast Client-Side Search with Rust and WebAssembly

https://code.visualstudio.com/blogs/2026/01/15/docfind
4•azhenley•42m ago•0 comments

Signal, the secure messaging app: A guide for beginners

https://freedom.press/digisec/blog/signal-beginners/
1•doener•46m ago•0 comments

The future of AI is voice

https://realizeai.substack.com/p/the-future-of-ai-is-voice
1•rafaelmdec•52m ago•0 comments

Profile a Parser Implementation in Rust

https://blog.wybxc.cc/blog/profile-cgrammar/
1•todsacerdoti•52m ago•0 comments

Show HN: Playn a privacy first and fast blog platform

https://playn.blog/
2•bairess•55m ago•2 comments

Show HN: Using Qwen3:1.7B to call itself recursively

https://seanneilan.com/posts/tiny-llm-calls-itself/
1•sneilan1•58m ago•0 comments

Gatekeeping: A Partial History of Cold Fusion

https://philsci-archive.pitt.edu/27902/
1•mathgenius•59m ago•1 comments

Sustainability frameworks: Past, present, and future

https://illuminem.com/illuminemvoices/sustainability-frameworks-past-present-and-future
2•R3G1R•1h ago•0 comments

AI chatbot with Vision AI camera

https://www.seeedstudio.com/SenseCAP-Watcher-XIAOZHI-EN-p-6532.html
1•meilily•1h ago•0 comments