frontpage.
newsnewestaskshowjobs

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.

Claude Fable 5 – System Prompt

https://github.com/elder-plinius/CL4R1T4S/blob/main/ANTHROPIC/CLAUDE-FABLE-5.md
1•sbiru93•1m ago•0 comments

Pocket Rewriting (2024)

https://wiki.xxiivv.com/site/pocket_rewriting
1•Tomte•1m ago•0 comments

Making the Smallest Possible Webfont

https://pomax.github.io/minimal-font-generator/small.html
1•TheRealPomax•2m ago•1 comments

The Open-Source Ecosystem Canvas

https://blog.stdlib.io/open-source-ecosystem-canvas/
1•kgryte•3m ago•0 comments

Show HN: MizAI LLM detection of price anomalies in public procurement for Greece

https://mizai.gr
1•mikepapadim•4m ago•0 comments

Distro Fighter – a web based Linux distro Arcade fighter and RPG

https://distrofighter.com/
2•ashitlerferad•4m ago•0 comments

Show HN: Cotect – a fast code inspector for agent era (open source)

https://cotect.dev/
1•grzracz•5m ago•1 comments

Is anyone here based in Bangalore?

1•Tanishmittal•5m ago•0 comments

Robinhood's 10% layoffs note shows blaming AI isn't cutting it

https://techcrunch.com/2026/06/16/robinhoods-note-on-10-layoffs-shows-blaming-ai-isnt-cutting-it/
1•gurjeet•7m ago•0 comments

Pramagent – a trust layer for LLM agents (guardrails, tracing, audit)

https://github.com/sriram7737/pramagent
1•sriram7737•8m ago•0 comments

UK's Social Media Ban: The Monumental Pretext for Total Digital Surveillance

https://modernity.news/2026/06/16/uks-social-media-ban-the-monumental-pretext-for-total-digital-s...
2•arrowsmith•10m ago•0 comments

Ablo: The Collaboration Layer for AI Agents

https://github.com/Abloatai/ablo
1•luckymonkybaby•10m ago•0 comments

Show HN: 10k harmonized time-series datasets of African data

https://huggingface.co/electricsheepafrica
2•kossisoroyce•13m ago•0 comments

Show HN: EVMist – Client-side builder for custom persistent EVM dashboards

https://evmist.io
2•strctrd•15m ago•0 comments

Ask HN: How much of today's Internet is generated by LLMs?

2•akashwadhwani35•16m ago•1 comments

An Electric Bike for the Mind

https://ebike.nologos.net/
2•ashenke•16m ago•0 comments

Trump officials discussed structuring government equity stakes in AI companies

https://www.semafor.com/article/06/17/2026/trump-advisers-weigh-structure-of-potential-ai-stakes
4•thoughtpeddler•19m ago•0 comments

The slow loris, the only venomous primate [video]

https://www.youtube.com/watch?v=JDqpcHGfJ2I
2•gmays•20m ago•0 comments

Mapping the neuronal building blocks of human language with language models

https://www.nature.com/articles/s41586-026-10691-5
3•rndsignals•20m ago•0 comments

Don't run SQL migrations in tests: How I sped up the test suite by 2x

https://gaultier.github.io/blog/I_sped_up_the_test_suite_by_x2.html
3•thunderbong•21m ago•0 comments

Ken Griffin's Billions and Billions

https://www.newyorker.com/magazine/2026/06/22/ken-griffins-billions-and-billions
3•gmays•22m ago•0 comments

Bugbot is now over 3x faster, 22% cheaper, and finds 10% more bugs

https://cursor.com/blog/bugbot-updates-june-2026
2•cvburgess•23m ago•1 comments

FortiBleed leak exposes Fortinet VPN credentials for 73,000 devices

https://www.bleepingcomputer.com/news/security/fortibleed-leak-exposes-fortinet-vpn-credentials-f...
3•thm•24m ago•2 comments

RedlineBench: how models handle a multi-turn, real world contract negotiation

https://intelligence.crosby.ai/benchmark/
2•zachkrall•24m ago•0 comments

Los Alamos method helps expose hallucinations in vision-language AI

https://www.lanl.gov/media/news/0603-vision-language-ai
3•geox•25m ago•0 comments

Ask HN: The economics of manufactured exclusivity and algorithmic viral loops

2•nehadangwal•26m ago•0 comments

Build a GitHub API integration for AI agents

https://nango.dev/blog/build-a-github-api-integration-for-ai-agents/
2•sapneshnaik•26m ago•0 comments

Firefox: Smart Window Beta

https://www.firefox.com/en-US/smart-window/
3•coronapl•26m ago•0 comments

Robinhood to layoff 10% of workforce in restructuring

https://www.reuters.com/sustainability/robinhood-cut-10-its-full-time-workforce-2026-06-16/
3•gurjeet•27m ago•0 comments

Show HN: Live-updating, information-dense World Cup dashboard and simulator

https://worldcupdash.com/
2•localhost3000•28m ago•0 comments