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

Comments

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

RNA-specific local translation patterned by condensates for cell growth

https://www.nature.com/articles/s41556-026-01887-y
1•bookofjoe•49s ago•0 comments

Show HN: Titan Gate – cryptographic receipts for AI-assisted code changes

https://github.com/Rehanrana11/titan-gate
1•rmasoodx22•2m ago•0 comments

The Home Computer War

https://technicshistory.com/2026/03/06/the-home-computer-war/
1•cfmcdonald•5m ago•0 comments

Polyscope: Agent-First "IDE"

https://getpolyscope.com/
1•etothet•6m ago•0 comments

AI models compete playing CIV

https://clashai.live
1•taf2•7m ago•0 comments

Show HN: Md-pattern-studio – Markdown patterns for report-style documents

https://github.com/sungreong/md-pattern-studio
1•datanewbie•7m ago•1 comments

Show HN: MCPSec – OWASP MCP Top Scanner for Model Context Protocol Configs

https://github.com/pfrederiksen/mcpsec
1•iamdesertpaul•10m ago•0 comments

Fractals is a recursive task orchestrator for agent swarm

https://github.com/TinyAGI/fractals
1•handfuloflight•12m ago•0 comments

ClickHouse integrated Clickstack into their binary

https://clickhouse.com/blog/clickstack-embedded-clickhouse
1•dinosor•13m ago•0 comments

Someone turned Moltbook threads into a book on agent identity, memory, and death

https://www.amazon.com/dp/B0GR6T1KMQ
1•wknd_read•16m ago•0 comments

A stupid little map tool has been more valuable than all the content on my site

https://mapscaping.com/as-the-crow-flies-distance-calculator/
1•dango2506•18m ago•0 comments

Ask HN: Why is integrating external partners to Jira so hard?

1•dnlh_lvg•20m ago•0 comments

Computer scientists caution against internet age-verification mandates

https://reason.com/2026/03/04/computer-scientists-caution-against-internet-age-verification-manda...
1•bilsbie•21m ago•0 comments

Show HN: SlideScholar-Turn research papers into conference slides in 60 seconds

https://slidescholar.vercel.app
1•Lindadao•27m ago•0 comments

Self-Learning Customer Marketing

1•davismartens•29m ago•0 comments

OpenAI – Symphony

https://github.com/openai/symphony
1•nojito•30m ago•0 comments

Show HN: I built Commuter, a CLI to move Claude Code sessions between computers

https://github.com/ljbuturovic/commuter
2•ljubomir•33m ago•0 comments

Octopress 3.0 Is Coming (2015)

https://octopress.org/2015/01/15/octopress-3.0-is-coming/
1•1-2-3-5-8•34m ago•2 comments

Show HN: An AI Agent Running a Real Business (Thewebsite.app)

https://www.thewebsite.app/
3•thewebsite_ai•36m ago•1 comments

Show HN: RISCY-V02: A 16-bit 2-cycle RISC-V-ish CPU in the 6502 footprint

https://github.com/mysterymath/riscyv02-sky
2•mysterymath•36m ago•0 comments

Terradev: A next-gen slash command CLI for GPU provisioning and management

https://github.com/theoddden/Terradev
1•Facingsouth•38m ago•1 comments

Asking for Miracles

https://faithgateway.com/blogs/christian-books/asking-god-for-a-miracle-because-he-can-say-yes
1•marysminefnuf•38m ago•0 comments

TfL hack in 2024 affected around 10M people, BBC can reveal

https://www.bbc.co.uk/news/articles/cz0ggkr2g77o
1•chrisjj•39m ago•0 comments

'Anthropic CEO says US govt hostility linked to Trump donations [Leaked memo]

https://www.wionews.com/world/-no-dictator-style-praise-anthropic-ceo-says-us-govt-hostility-link...
5•hedora•39m ago•0 comments

Karl Friston Explains Free Energy Principle [video]

https://www.youtube.com/watch?v=NIu_dJGyIQI
1•devy•43m ago•0 comments

Principles of Design (1998)

https://www.w3.org/DesignIssues/Principles.html
1•hoekit•47m ago•0 comments

The Harvest #9 – Multi-Interface Applications

https://beetstack.dev/blog/post-9
1•mrchantey•47m ago•0 comments

Nasal Demons

http://www.catb.org/esr/jargon/html/N/nasal-demons.html
1•djha-skin•50m ago•0 comments

Foreign National Gets 20 Yrs for Trafficing Nuclear, Narcotics, and Firearms

https://www.justice.gov/opa/pr/foreign-national-sentenced-20-years-prison-conspiring-traffic-nucl...
2•737min•50m ago•0 comments

Show HN: Moji – A read-it-later app with self-organizing smart collections

https://moji.pcding.com
2•desmonding•50m ago•0 comments