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•1y ago

Comments

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

Malware Found in Trending Hugging Face Repository "Open-OSS/Privacy-Filter"

https://www.hiddenlayer.com/research/malware-found-in-trending-hugging-face-repository-open-oss-p...
1•aa_is_op•2m ago•0 comments

People and Timeline of Modern AI

https://senthil.learntosolveit.com/posts/2026/05/09/annotated-history-of-modern-ai-and-deep-learn...
1•orsenthil•4m ago•0 comments

Fake Pound Coin Database

https://www.thefakepoundcoindatabase.co.uk/
1•bhickey•5m ago•0 comments

Pushing Local Models with Focus and Polish

https://lucumr.pocoo.org/2026/5/8/local-models/
1•lumpa•7m ago•0 comments

Occupations with the Highest Divorce Rates

https://flowingdata.com/2026/05/07/divorce-and-occupation-2026/
1•lvnfg•8m ago•0 comments

The Shadow Admin Threat: AI Agents Creating Undetectable Backdoors

https://sharetxt.live/blog/the-shadow-admin-threat-how-autonomous-ai-agents-could-introduce-undet...
1•rexthonyy•11m ago•0 comments

The 28th Regime (EU)

https://the28thregime.eu/
2•dgellow•11m ago•0 comments

The left-wing case for AI

https://www.seangoedecke.com/the-left-wing-case-for-ai/
2•nsavage•13m ago•0 comments

LLM built for 12M-token reasoning

https://subq.ai/
1•tschibrillo•13m ago•0 comments

Ask HN: What's the most compelling paranormal evidence you found online?

2•johnnyfived•18m ago•1 comments

Let the Barbarians In

https://www.sigops.org/2026/let-the-barbarians-in-how-ai-can-accelerate-systems-performance-resea...
1•jruohonen•20m ago•0 comments

HTML/CSS/JS Viewer with full bidirectional code-preview highlighting

https://html-viewer.org
1•jackxmm•22m ago•0 comments

Extracting alignment data in open models

https://arxiv.org/abs/2510.18554
1•yakkomajuri•22m ago•0 comments

Show HN: Super ISO Updater

https://github.com/JoshuaVandaele/SuperISOUpdater
1•JoshuaVandaele•34m ago•0 comments

Show HN: Pace-coach watches your typing rhythm and nudges you when stressed

https://github.com/job-almekinders/pace-coach
1•Jobtimize•35m ago•1 comments

Physics (2021)

https://www.susanrigetti.com/physics
2•Tomte•36m ago•0 comments

The Electrification Staircase

https://cleaninguppod.substack.com/p/ep256-the-electrification-staircase
1•jillesvangurp•39m ago•0 comments

War.gov/UFO Files Explorer

https://hypergrid.systems/war.gov-ufo-viewer/?ok
1•keepamovin•42m ago•0 comments

Germany's Decline in Data

https://ourdeclineindata.com/
3•mpweiher•43m ago•0 comments

Mystery of G Hackman

4•nmeofunowho•47m ago•0 comments

What's a Mathematician to Do?

https://mathoverflow.net/questions/43690/whats-a-mathematician-to-do
2•ipnon•47m ago•0 comments

Why Not GitHub? (2017)

https://sanctum.geek.nz/why-not-github.html
3•jruohonen•48m ago•1 comments

Who invented file extensions in file names? (2023)

https://retrocomputing.stackexchange.com/questions/27926/who-invented-file-extensions-in-file-names
2•aragonite•51m ago•0 comments

Space Cadet Pinball on Linux

https://brennan.io/2026/05/09/pinball-and-escrow/
36•jandeboevrie•52m ago•4 comments

Do you take after your dad's RNA?

https://knowablemagazine.org/content/article/living-world/2026/epigenetic-effects-of-sperm-on-off...
2•ndr42•54m ago•0 comments

JDownloader Got Hacked

https://jdownloader.org/incident_8.5.2026.html?v=20260508277000
1•campuscodi•54m ago•0 comments

Profiling.sampling – Statistical Profiler

https://docs.python.org/3.15/library/profiling.sampling.html#module-profiling.sampling
2•djoldman•55m ago•0 comments

Codebadger – MCP server for static code analysis with Joern

https://github.com/lekssays/codebadger
1•codebadger•58m ago•0 comments

Show HN: Generate a lot of ad creatives for your SaaS in one click

https://zenduxai.com
2•total_plus•58m ago•0 comments

Data as a Product Is a Promise

https://yusufaytas.com/data-as-a-product-a-new-frontier
6•yapqueen•59m ago•0 comments