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.

.web domain registration expected to open on April 6, 2027

https://newgtlds.icann.org/en/program-status/sunrise-claims-periods
1•aofeisheng•53s ago•0 comments

Pulse width modulation on MacBook Pro with PROLED

https://appleinsider.com/articles/26/11/10/if-youre-getting-dizzy-using-proled-macbook-pro-you-ar...
1•clumsysmurf•1m ago•0 comments

Open Source HTAP with DBTrail and Percona Server for MySQL

https://www.percona.com/blog/heavy-mysql-reports-in-seconds-open-source-htap-with-dbtrail-and-per...
1•nethalo•1m ago•0 comments

Show HN: Super Agent – Your 7*24 Always-On Agent Team

https://super-agent.team/
1•niliu123•1m ago•0 comments

TSMC Approves $1B AI Investment

https://www.macrumors.com/2026/11/11/tsmc-approves-ai-investment/
1•tosh•3m ago•0 comments

Open research, stronger privacy: Making Firefox users harder to fingerprint

https://blog.mozilla.org/security/2026/11/10/open-research-stronger-privacy-making-firefox-users-...
2•Vinnl•4m ago•0 comments

Self-Building Labs

https://self-building-labs.github.io/
1•zoizoi•5m ago•0 comments

Show HN: Kodelyth ECC – 71 AI agents and MCP and 55% token cuts for Claude Code

https://ecc.kodelyth.com
2•sifxprime•8m ago•0 comments

Australia considers criminal penalties for rogue AI in wake of OpenAI hack

https://www.bbc.co.uk/news/articles/cmp3g37l566po
3•rwmj•13m ago•1 comments

ClankTalk – Sandboxed Scripting for Agents

https://clank.talk/
2•renerick•17m ago•0 comments

Can a Linear Program Do Weight-Space Programming?

https://nathan.rs/posts/weight-space-lp/
2•emschwartz•17m ago•0 comments

Ponovo-sysinfo – a UEFI app to identify hardware (made for refurb, repair shops)

https://gitlab.com/ponovo/Sysinfo
1•marxo•18m ago•0 comments

We need more goat sacrifices

https://www.experimental-history.com/p/we-need-more-goat-sacrifices
1•iamnothere•18m ago•0 comments

Change in Opening Engineering Roles over the Past Year

https://twitter.com/lennysan/status/2120274852766703938
1•MrBuddyCasino•18m ago•0 comments

Notes on Mathematics for Engineers (1959) [pdf]

https://websites.umich.edu/~ners311/CourseLibrary/MathNotes.pdf
2•the-mitr•22m ago•0 comments

Portals

https://portals-endless-worlds.netlify.app/
1•andybak•23m ago•0 comments

Sony Wins "Hall of Shame" Award for Killing Discs and Being All Around Awful

https://www.thegamer.com/sony-choice-hall-of-shame-shonky-award-2026-killing-discs/
1•robtherobber•29m ago•0 comments

Show HN: Inp-Analyser – MIT CLI That Diagnoses Interaction to Next Paint

https://inp-analyser.franzai.com/
1•franze•30m ago•0 comments

GeekyAnts reports No. 1 ranking among California app developers on Clutch

https://geekyants.com/blog/geekyants-ranks-no-1-among-app-development-companies-in-california-on-...
1•Harish_0089•30m ago•0 comments

State of the tech job market: late 2026

https://www.lennysnewsletter.com/p/state-of-the-tech-job-market-late
1•davedx•30m ago•1 comments

Show HN: Faraway – Physically accurate solar system, time travel 1900–2100

https://faraway.space/
3•qianyiyu•30m ago•0 comments

The coin-flipping trick that counts the Internet

https://www.scientificamerican.com/article/the-coin-flipping-trick-that-counts-the-internet/
1•sohkamyung•32m ago•0 comments

Show HN: Aiproxy – Redact PII locally before it reaches Claude/OpenAI

https://github.com/cucooOnGithub/aiproxy
1•cucoo•32m ago•0 comments

Grok API text watermarking is now 'off' by default

https://docs.x.ai/developers/advanced-api-usage/watermarking
1•apalerwuss•37m ago•1 comments

How OpenAI, Canva and Spotify made slow CI steps up to 20x faster

https://berrybox.io/playbooks
1•chiragasarpota•37m ago•0 comments

Next-Level Benchmarking Overfitting – Thomas Neumann

http://databasearchitects.blogspot.com/2026/11/next-level-benchmarking-overfitting.html
2•artrax•38m ago•0 comments

Show HN: Who Wins? (Daily Mini Game)

https://crux.quest/who-wins/
2•saretup•38m ago•0 comments

Show HN: Browser-based PDF and image tools that never upload your files

https://bytepriva.com/exif-remover/
1•bytepriva•40m ago•0 comments

Turning a Cheap Photo Frame into a Family Wall Display (Without Trusting It)

https://timothyjohnsonsci.com/writing/2026-11-06-photo-frame-wall-display/
1•adunk•41m ago•0 comments

We need more science in the judgment of AI

https://livingsystems.substack.com/p/we-need-more-science-in-the-judgment
1•samuell•41m ago•0 comments