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.

Z Image Turbo – Fast AI image generation with prompt and reference control

https://zimageturbo.art/
1•Jenny249•1m ago•1 comments

Show HN: Freebird – Authorization without identity using VOPRF cryptography

https://freebird.bot
1•flammafex•1m ago•0 comments

Disney Animation – Filmmaking Process

https://disneyanimation.com/process/
1•NikxDa•1m ago•0 comments

You need to become a polymath (or get replaced by machines)

https://twitter.com/Hesamation/status/2014172186865459455
1•ibobev•1m ago•0 comments

Blue Origin plots 6 Tbps satellite network

https://www.telecoms.com/satellite/blue-origin-plots-6-tbps-satellite-network
1•smurda•2m ago•0 comments

The Sandman – E.T.A. Hoffmann

https://www.gutenberg.org/files/32046/32046-h/32046-h.htm#sandman
1•mindcrime•3m ago•0 comments

Show HN: A quiet, offline-first reading app for reading books

https://deep-reader-page.vercel.app
2•smallluo•10m ago•0 comments

OpenAI: The state of enterprise AI

https://openai.com/index/the-state-of-enterprise-ai-2025-report/
1•Anon84•11m ago•0 comments

AI-DLC 2026: Human-on-the-Loop, Reimagining Development for Autonomous AI

https://han.guru/papers/ai-dlc-2026/
1•jwaldrip•12m ago•0 comments

The MapLibre open-source mapping libraries

https://maplibre.org/
2•gjvc•12m ago•0 comments

Show HN: Aviation Compliance Checker – Automated FAA Compliance for GitHub

https://github.com/marketplace/actions/aviation-compliance-checker
2•ashish_sharda•14m ago•1 comments

Django Htmx and Django-Components

https://www.pedaldrivenprogramming.com/2024/01/django-htmx-and-components/
2•krystofee•15m ago•0 comments

Vibe Coding Enterprise PHP Applications

https://blog.devgenius.io/vibe-coding-enterprise-php-applications-5a937cef93b9
1•speckx•15m ago•0 comments

How We Brought Our Game to Discord

https://chipsoffury.com/posts/discord-activity/
1•kirusfg•16m ago•0 comments

Half the 100 largest cities are in high water stress areas, analysis finds

https://www.theguardian.com/environment/2026/jan/22/half-world-100-largest-cities-in-high-water-s...
2•c-flow•16m ago•0 comments

China, US sign off on TikTok US spinoff

https://www.semafor.com/article/01/22/2026/china-us-sign-off-on-tiktok-us-spinoff
2•thm•18m ago•0 comments

Show HN: Automatic Chrome tab grouping that runs on-device

https://github.com/shubhams2m/grooopy
1•shubhams2m•19m ago•0 comments

Coming Winter Storm to Test Our Fragile Grid

https://www.forbes.com/sites/mattrandolph/2026/01/22/coming-winter-storm-to-test-our-fragile-grid/
2•geox•19m ago•0 comments

The Cost of Documents in 2026

https://www.digiparser.com/statistics/hidden-cost-of-documents
1•thepantales•22m ago•0 comments

Show HN: I'm building an experimental forum to help people connect

https://isles.app/
2•nihakue•23m ago•0 comments

Show HN: Take a Break – a gentle extension to stop autoplay late at night

https://hardiksondagar.me/take-a-break/
1•hardiksondagar•23m ago•0 comments

Show HN: Allowing web agents to click and type like humans (Python library)

https://github.com/Super-44/nothingtoseehere
1•hjegeorge•24m ago•0 comments

Infinite Pancakes, Anyone?

https://www.nytimes.com/2026/01/20/science/infinite-pancake-math-puzzle.html
2•cainxinth•25m ago•0 comments

Show HN: QuietPage – Privacy focused journaling with E2E encryption

https://www.quietpage.app/
1•AutYellow•26m ago•0 comments

Nadella: AI Could Lose Social Permission If It Burns Energy Without Benefits

https://finance.yahoo.com/news/microsoft-ceo-satya-nadella-warns-205620968.html
1•fofoz•27m ago•0 comments

Show HN: BlueDot – Universal Cloud Console TUI for multi-cloud management

1•keepamovin•27m ago•0 comments

We're all VCs now: The skills developers need in the AI era

https://lerner.co.il/2026/01/21/were-all-vcs-now-the-skills-developers-need-in-the-ai-era/
1•lumpa•28m ago•0 comments

Show HN: Rage – A fiber-based Ruby framework

https://github.com/rage-rb/rage
1•rageonruby•28m ago•1 comments

The Reason Claude Code Users Prefer the Terminal

https://elliot.my/claude-coder-users-prefer-the-terminal/
2•frizlab•29m ago•0 comments

Now with Mqtts

https://daniel.haxx.se/blog/2026/01/19/now-with-mqtts/
2•firesteelrain•29m ago•0 comments