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.

Comparison of 14 data analytics agents

https://thenewaiorder.substack.com/p/i-tested-14-analytics-agents-so-you
1•blef•1m ago•0 comments

Stablecoin Narrow Banking

https://www.bloomberg.com/opinion/newsletters/2026-01-15/stablecoin-narrow-banking
1•feross•4m ago•0 comments

Offline voice input keyboard for Android using Nvidia's Parakeet v3

https://github.com/notune/android_transcribe_app
1•fittingopposite•4m ago•1 comments

Show HN: Jtpck sends your Claude Code, Codex, and Gemini CLI back to you

https://JTPCK.com
1•piratebroadcast•4m ago•0 comments

Dell warns against reusing SSDs as flash shortages bite

https://blocksandfiles.com/2026/01/15/dell-flash-reclaim/
1•tanelpoder•8m ago•0 comments

2026: This is AGI

https://sequoiacap.com/article/2026-this-is-agi/
2•tfincannon•9m ago•2 comments

Systemd, Vsock, & OpenSSH-Server

https://blog.nsrun.io/2026/01/15/systemd-vsock-openssh-server/
1•nyrikki•11m ago•1 comments

The Golden Thread

https://roe.dev/blog/the-golden-thread
2•rmason•12m ago•0 comments

Data Science Weekly – Issue 634

https://datascienceweekly.substack.com/p/data-science-weekly-issue-634
1•sebg•15m ago•0 comments

Depth-First Unary Degree Sequence

https://bruceediger.com/posts/dfuds/
1•todsacerdoti•16m ago•0 comments

The foundation powering modern AI agents

https://starterbase.dev
1•edihasaj•18m ago•0 comments

BugStalker for Rust

https://godzie44.github.io/BugStalker/
1•electronsoup•21m ago•0 comments

Google to pay $8.25mm to settle lawsuit alleging children's privacy violations

https://therecord.media/google-youtube-lawsuit-settle
2•WaitWaitWha•21m ago•1 comments

Senegal's Spear-Wielding Savannah Chimps Yield Clues on Humanity's Past

https://www.barrons.com/news/senegal-s-spear-wielding-savannah-chimps-yield-clues-on-humanity-s-p...
2•wjb3•21m ago•0 comments

DHS Secretary Kristi Noem Says People Should Be Prepared to Prove US Citizenship

https://www.newsweek.com/kristi-noem-ice-us-citizenship-minnesota-shooting-identity-11366671
16•throw0101c•23m ago•6 comments

Skin Implant That Glows Green May Help Detect Illness in Advance

https://talker.news/2026/01/12/japanese-scientists-living-skin-implant-glows-to-warn-of-illness/
1•wjb3•23m ago•0 comments

Solving for ambiguity as a staff software engineer

https://ashgaikwad.substack.com/p/solving-for-ambiguity
1•ashgkwd•24m ago•0 comments

'Star Wars' Boss [Kathleen Kennedy] Departs, Ending an Asteroid-Filled Reign

https://www.nytimes.com/2026/01/15/business/star-wars-lucasfilm-kathleen-kennedy.htmlu6
2•falcor84•24m ago•2 comments

Aspartame decreases fat but reduces cognitive performance and enlarges heart

https://www.sciencedirect.com/science/article/pii/S0753332225010856
2•PaulHoule•25m ago•0 comments

Cursor CEO Built a Browser Using AI, but Does It Work?

https://www.finalroundai.com/blog/cursor-ceo-browser-made-using-ai
1•signa11•27m ago•0 comments

Ask HN: Did OpenAI just disable codex CLI login for workspace accounts?

2•amluto•27m ago•0 comments

A polyhedral structure controls programmable self-assembly

https://www.nature.com/articles/s41567-025-03120-3
2•bookofjoe•30m ago•0 comments

UAT-8837 (probably CCP) targets critical infrastructure sectors in North America

https://blog.talosintelligence.com/uat-8837/
1•737min•31m ago•0 comments

How the Dutch Lost Their Empire (and Why the US Is Next) [video]

https://www.youtube.com/watch?v=qc4WKnvThX4
3•barbazoo•32m ago•0 comments

Culture warriors cancel new U of A law dean before she started

https://arktimes.com/arkansas-blog/2026/01/15/culture-warriors-cancel-new-u-of-a-law-dean-before-...
6•petethomas•32m ago•0 comments

What a Wolf Pup's Stomach Revealed About the Woolly Rhino's Extinction

https://www.nytimes.com/2026/01/14/science/woolly-rhino-wolf-stomach-dna.html
1•Hooke•34m ago•0 comments

Show HN: Run Dia2 TTS Without a GPU

https://github.com/khariha/dia2-easy-tts
1•quicheshore2003•35m ago•0 comments

Gaming on Linux just got a bump with new Wine 11 improvements

https://www.pcgamer.com/hardware/gaming-on-linux-just-got-a-bump-with-new-wine-11-improvements-th...
5•evo_9•37m ago•0 comments

Show HN: Lifescreen – An Android app that shows your life on one screen

https://play.google.com/store/apps/details?id=com.bor96dev.lifescreen&hl=en_US
1•borboz96•39m ago•0 comments

When protections outlive their purpose: Managing defense systems at scale

https://github.blog/engineering/infrastructure/when-protections-outlive-their-purpose-a-lesson-on...
2•edmorley•40m ago•0 comments