frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Zig and GPUs

https://alichraghi.github.io/blog/zig-gpu/
57•Cloudef•2mo ago

Comments

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

Show HN: HNping 'remind me later' for HN via web push

https://hnping.com/
1•Galorious•2m ago•0 comments

Reading Neuromancer for the first time in 2025

https://mbh4h.substack.com/p/neuromancer-2025-review-william-gibson
1•keiferski•9m ago•0 comments

Who Is Pope Leo?

https://www.americamagazine.org/faith/2025/07/10/who-pope-leo-robert-prevost-251107
1•joules77•9m ago•0 comments

Leading your engineers towards an AI-assisted future

https://blog.thepete.net/blog/2025/06/26/leading-your-engineers-towards-an-ai-assisted-future/
1•r4um•14m ago•0 comments

Thoughts on Motivation and My 40-Year Career

https://charity.wtf/2025/07/09/thoughts-on-motivation-and-my-40-year-career/
1•r4um•15m ago•0 comments

Assumptions

http://theprogrammersparadox.blogspot.com/2025/07/assumptions.html
1•r4um•16m ago•0 comments

Sega Enterprises Ltd. vs. Accolade, Inc., 977 F.2d 1510 (9th Cir. 1992)

https://en.wikipedia.org/wiki/Sega_v._Accolade
1•Bluestein•21m ago•0 comments

UK graduates share their job-hunting woes amid the AI fallout

https://www.theguardian.com/money/2025/jul/13/student-debt-graduates-share-job-hunting-woes-ai-fallout
2•mykowebhn•25m ago•0 comments

Nearly two-thirds of UK workers turning to drink because of job pressures

https://news.sky.com/story/nearly-two-thirds-of-uk-workers-turning-to-drink-because-of-job-pressures-survey-says-13395997
3•austinallegro•28m ago•0 comments

Gmail AI hallucinates, distorts email contents

https://www.t-online.de/digital/aktuelles/id_100811852/gmail-fantasiert-googles-mail-programm-verfaelscht-fremde-inhalte.html
3•disentanglement•29m ago•0 comments

Show HN: TXT OS – Open-Source AI Reasoning, One Plain-Text File at a Time

https://github.com/onestardao/WFGY/tree/main/OS
5•TXTOS•34m ago•2 comments

Empirical evidence of LLM's influence on human spoken communication

https://arxiv.org/abs/2409.01754
3•ransom_rs•35m ago•1 comments

I built Findly.tools – a successor to 1000.tools

https://findly.tools/
1•drdruide•36m ago•1 comments

A (Limited) Defence of Footnotes

https://www.kryogenix.org/days/2025/07/03/a-limited-defence-of-footnotes/
2•jruohonen•40m ago•0 comments

Retrieval Embedding Benchmark

https://huggingface.co/spaces/embedding-benchmark/RTEB
1•fzliu•42m ago•0 comments

Stop memoizing Hash lookups in Ruby

https://nithinbekal.com/posts/ruby-hash-memoization/
2•thunderbong•43m ago•0 comments

Summary of Bluesky Whitepaper

https://twitter.com/RealmOfSoftware/status/1904941497910505833
1•krsoninikhil•43m ago•0 comments

Vibe-Engineering: When AI Does All the Coding, What Do We Do?

https://img.ly/blog/vibe-engineering-when-ai-does-all-the-coding-what-do-we-actually-do/
2•tosh•44m ago•0 comments

Show HN: We developed an AI tool to diagnose car problems

https://autoai.help
2•mariyan250•46m ago•0 comments

Ask HN: I own wtf.store -what to build that makes people say WTF (in gud way)?

1•deep_thinker26•47m ago•1 comments

Windows Update forced new version of Chengjie which is unusable to users

https://old.reddit.com/r/Windows11/comments/1lvelyb/warning_to_windows_11_24h2_chengji_users_for_july/
2•charlieyu1•48m ago•1 comments

Moiré materials based on M-point twisting

https://www.nature.com/articles/s41586-025-09187-5
2•Bluestein•49m ago•0 comments

Iota Legacy Migration Tool Issue

https://old.reddit.com/r/Iota/comments/1kx02eb/iota_legacy_migration_tool_issue/
1•Bluestein•57m ago•0 comments

Turns out you can just hack any train in the USA

https://twitter.com/midwestneil/status/1943708133421101446
6•lyu07282•57m ago•2 comments

Kawase Hasui Catalogue

https://mokuhanga1.com/kawase-hasui/
1•vinhnx•57m ago•0 comments

Trump announces 30% tariffs on EU and Mexico, starting Aug. 1

https://www.cnbc.com/2025/07/12/trump-tariffs-european-union-eu-mexico-trade.html
3•kamaraju•1h ago•5 comments

Show HN: I built a entire blogging platform just for myself lol

https://lykhari.com
1•yaKashif•1h ago•0 comments

Ask HN: How important is to learn Software Defined Networking?

1•shivajikobardan•1h ago•1 comments

Govern Amazon Bedrock Gen AI Models in SageMaker Unified Studio

https://aws.amazon.com/blogs/machine-learning/configure-fine-grained-access-to-amazon-bedrock-models-using-amazon-sagemaker-unified-studio/
1•funnyguy678•1h ago•0 comments

Hill Space: Neural nets that do perfect arithmetic (to 10⁻¹⁶ precision)

https://hillspace.justindujardin.com/
2•peili7•1h ago•1 comments