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

Comments

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

Providing 99.999% of Availability for Unmatched Server Uptime

https://www.penguinsolutions.com/en-us/products/stratus-ftserver
1•doener•1m ago•0 comments

Landholder vs. Stockholder

https://aeon.co/essays/why-hume-is-better-at-explaining-modern-capitalism-than-marx
1•bryanrasmussen•3m ago•0 comments

We can't send mail farther than 500 miles (2002)

https://web.mit.edu/jemorris/humor/500-miles
2•giancarlostoro•7m ago•2 comments

ESR on LLM Coding

https://twitter.com/esrtweet/status/2016713740658344301
1•tiahura•7m ago•0 comments

FOSDEM 2012 Schedule Chart

https://rgbcu.be/dump/fosdem/2012
1•RGBCube•8m ago•0 comments

AI Prompt to Write in Minimalist Style of Ernest Hemingway

https://tools.eq4c.com/ai-prompts/ai-prompt-to-write-in-minimalist-style-of-ernest-hemingway/
1•eq4c•8m ago•0 comments

Show HN: The Unix compress algorithm with approximate matches

1•keepamovin•9m ago•0 comments

Stratus VOS

https://en.wikipedia.org/wiki/Stratus_VOS
1•doener•10m ago•0 comments

Was serving GPT-5 profitable?

https://twitter.com/i/status/2016652644560097377
1•gradus_ad•15m ago•0 comments

Breaking the Spell of Vibe Coding

https://www.fast.ai/posts/2026-01-28-dark-flow/
2•gmays•16m ago•0 comments

The reason cancer immunotherapy often fails

https://www.sciencedaily.com/releases/2026/01/260128075323.htm
2•Jimmc414•18m ago•0 comments

Explore Cartoon Characters

https://acartooncharacters.com/
1•jokera•19m ago•0 comments

Putting Gemini to Work in Chrome

https://blog.google/products-and-platforms/products/chrome/gemini-3-auto-browse/
2•diwank•21m ago•0 comments

37signals Isn't Smarter Than You, but They Are Different

https://www.nateberkopec.com/blog/37signals-is-not-smarter-than-you/
1•doppp•22m ago•0 comments

Wasmer 7.0

https://github.com/wasmerio/wasmer/releases/tag/v7.0.0
2•shscs911•24m ago•0 comments

I built a tool that turns brain dumps into Mermaid.js flowcharts

https://chaosclarity.app/
1•marwanghazi•32m ago•0 comments

Clawdbot's Peter Steinberger Makes First Public Appearance Since Launch

https://www.youtube.com/watch?v=qyjTpzIAEkA
1•doppp•32m ago•0 comments

[dupe] Tesla Kills Models S and X

https://gizmodo.com/tesla-kills-models-s-and-x-2000715273
1•andsoitis•35m ago•2 comments

Another Bay Area resident dies from toxic wild mushrooms

https://www.kron4.com/news/bay-area/another-bay-area-resident-dies-from-toxic-wild-mushrooms/
1•tokyobreakfast•36m ago•0 comments

FOSDEM 2026 Schedule Chart

https://rgbcu.be/dump/fosdem/2026/
2•RGBCube•36m ago•0 comments

[dupe] Tesla scraps Model S and Model X to build robots

https://www.cnn.com/2026/01/28/business/tesla-q4-2025-earnings
1•andsoitis•37m ago•2 comments

A Decoder-Based Framework for 3D-Printable Object Synthesis

https://arxiv.org/abs/2601.08015
1•PaulHoule•42m ago•0 comments

Climate TRACE: Independent Greenhouse Gas Emissions Tracking

https://climatetrace.org
1•csmantle•44m ago•0 comments

A clawdbot-like open-source project that connect my telegram only in 3 mins

https://twitter.com/WailiVery/status/2016707397155508393
1•waili•44m ago•0 comments

Agentic Vision in Gemini 3 Flash

https://blog.google/innovation-and-ai/technology/developers-tools/agentic-vision-gemini-3-flash/
1•geoffbp•46m ago•0 comments

Tesla FSD Hits 1.1M Users as Subscription Model Takes Over, 120 Eflops Compute

https://gearmusk.com/2026/01/29/tesla-fsd-hits-1-1m-users/
2•takumi123•47m ago•0 comments

PowerInfer: Fast LLM Inference on a Consumer-Grade GPU

https://github.com/Tiiny-AI/PowerInfer
1•oldfuture•51m ago•0 comments

Politics and the English Language, January 2026 edition

https://daringfireball.net/2026/01/politics_and_the_english_language_january_2026_edition
1•maxutility•52m ago•0 comments

Palestinian journalist Bisan Owda with 1.4M followers reports TikTok ban

https://www.aljazeera.com/news/2026/1/29/palestinian-journalist-bisan-owda-with-1-4m-followers-re...
8•siavosh•53m ago•0 comments

Show HN: AI tool to that reaches top in machine-learning competition

https://github.com/pentoai/ml-ralph
1•leopiney•54m ago•0 comments