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•8mo ago

Comments

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

Show HN: Lightning-extra, cloud-native plugins for PyTorch Lightning

https://github.com/ocramz/lightning-extra
1•marco_z•1m ago•0 comments

Amazon AI chief Prasad leaving; Infrastructure exec to lead unified AI group

https://www.geekwire.com/2025/amazon-ai-chief-rohit-prasad-leaving-infrastructure-exec-peter-desa...
1•JamesAdir•2m ago•0 comments

Ask HN: Is RSS Still Alive?

1•militanz•7m ago•0 comments

Denmark scraps controversial VPN ban proposal after public backlash

https://www.techradar.com/vpn/vpn-privacy-security/denmark-scraps-controversial-vpn-ban-proposal-...
1•maxloh•8m ago•0 comments

Advent of GitHub

https://github.com/vitoc/siege
1•vitoc•8m ago•0 comments

Update 18 December 2025: Apple ID Unblocked by Apple Executive Relations

https://bsky.app/profile/hey.paris/post/3ma3of537kk2d
3•da_grift_shift•17m ago•2 comments

MI6 chief: We'll be as fluent in Python as we are in Russian

https://www.theregister.com/2025/12/16/mi6_chief_well_be_as/
2•maxloh•20m ago•0 comments

MPs warn that UK agreements with Donald Trump are 'built on sand'

https://www.theguardian.com/politics/2025/dec/17/mps-warn-that-uk-agreements-with-donald-trump-ar...
3•KnuthIsGod•21m ago•0 comments

GitHub walks back plan to charge for self-hosted runners

https://www.theregister.com/2025/12/17/github_charge_dev_own_hardware/
3•ozgune•22m ago•2 comments

Show HN: A Save Data Calculator for the Roguelike Gacha Chaos Zero Nightmare

https://www.cznsavedata.com/
1•zittur•22m ago•0 comments

Show HN: Campers – Remote cloud dev environments that feel like localhost

https://github.com/kamilc/campers
1•kamilc•28m ago•0 comments

UK Puberty Blockers Controversy

https://rodgercuddington.substack.com/p/uk-puberty-blockers-controversy
1•freespirt•30m ago•0 comments

Exergy Economics [video]

https://www.youtube.com/watch?v=qqAzhmW4_gQ
1•measurablefunc•35m ago•0 comments

UX Is Dead, Long Live UX

https://www.nngroup.com/articles/long-live-ux/
1•kaizenb•36m ago•0 comments

Stop using dotenv and switch to dotenvx today

https://medium.com/@_mfk/why-you-should-stop-using-dotenv-and-switch-to-dotenvx-today-ff7c05a24c20
2•_mfk•40m ago•1 comments

BrainPredict – 445 on‑prem AI models for business predictions, no LLMs

https://brainpredict.ai
2•brainpredict•40m ago•1 comments

Building Open Source Manus

https://github.com/boxlite-labs/boxlite
1•dorianzheng•45m ago•0 comments

Scammers, spies and triads: inside cyber-crime's $15T global empire

https://www.youtube.com/watch?v=a9cugMoM89w
1•zoenolan•46m ago•0 comments

Hacker News Dark Mode Extension

https://www.icsusa.com/hndarkmode.html
1•lastdong•47m ago•1 comments

Nuno Loureiro – Plasma Physics: from fusion energy to cosmic magnetogenesis [video]

https://www.youtube.com/watch?v=0hiy7hxjZ5s
2•Jimmc414•48m ago•0 comments

One Generic Cancer Drug Costs $35. Or $134. Or $13,000

https://www.bloomberg.com/features/2025-cancer-drug-markups/
2•helsinkiandrew•48m ago•1 comments

Two People Never Share the Same Meaning

https://mikkokotila.medium.com/two-people-never-share-the-same-meaning-061977d83bf3
1•mikkokotila•50m ago•2 comments

The Fate of Flight 2069 - the cost of a disaster that didn’t happen

https://www.newstatesman.com/long-reads/2025/12/the-strange-fate-of-flight-2069
1•bryanrasmussen•1h ago•0 comments

Micron outlines grim outlook for DRAM supply in earnings call

https://www.tomshardware.com/pc-components/dram/micron-outlines-grim-outlook-for-dram-supply-in-f...
3•walterbell•1h ago•0 comments

Porting a HTML5 Parser to Swift and finding how hard it is to make Swift fast

https://ikyle.me/blog/2025/swift-justhtml-porting-html5-parser-to-swift
2•freerunnering•1h ago•0 comments

What Is an Elliptic Curve?

https://www.johndcook.com/blog/2019/02/21/what-is-an-elliptic-curve/
12•tzury•1h ago•0 comments

Claude-Hooks

https://github.com/TheNoeTrevino/claude-hooks
2•handfuloflight•1h ago•0 comments

A Survey of Dynamic Array Structures

https://azmr.uk/dyn/
2•keyle•1h ago•0 comments

Security vulnerability found in Rust Linux kernel code

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3e0ae02ba831da2b70790...
9•lelanthran•1h ago•2 comments

Show HN: Crovise – Generate CRO hypotheses from landing pages

https://crovise.netlify.app/
2•adamoufkir•1h ago•1 comments