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.

ASIC Design Jobs

https://www.semidesignjobs.com/s/asic-design-jobs
1•johncole•1m ago•0 comments

Ask HN: How do you keep up with tech news or any news without doomscrolling?

1•digi_wares•1m ago•0 comments

Can We Build Trustworthy AI?

https://gizmodo.com/ai-chatgpt-can-we-build-trustworthy-ai-1850405280
1•pabs3•2m ago•0 comments

Could ChatGPT Convince You to Buy Something?

https://www.schneier.com/blog/archives/2026/01/could-chatgpt-convince-you-to-buy-something.html
1•pabs3•2m ago•0 comments

Show HN: Notimon Game (Obsidian Meets Pokémon RPG)

https://app.malohacoast.com/
1•sayf-t•3m ago•0 comments

The Richard Feynman Iterative Learning Framework AI Prompt

https://tools.eq4c.com/prompt/ai-prompt-the-richard-feynman-iterative-learning-framework/
1•eq4c•7m ago•0 comments

The Dank Case for Scrolling Window Managers

https://tedium.co/2026/01/29/niri-danklinux-scrolling-window-managers/
2•todsacerdoti•8m ago•0 comments

How do you comparison shop on the App Store?

https://lapcatsoftware.com/articles/2026/1/10.html
1•interpol_p•9m ago•0 comments

Nvidia GeForce Now has the Steam Machine in its sights with native Linux support

https://www.tomsguide.com/gaming/pc-gaming/nvidia-geforce-now-has-the-steam-machine-in-its-sights...
1•fork-bomber•9m ago•0 comments

Ask HN: How are people safely reusing LLM answers in production RAG systems?

1•acfscience•10m ago•0 comments

I(Coding with Lewis) Gave Claude a Body[video]

https://www.youtube.com/watch?v=jBpQiv-ZlVM
1•DumBthInker007•10m ago•0 comments

Greek police arrest scammers using fake cell tower hidden in car trunk

https://therecord.media/greek-police-arrest-scammers-using-hidden-cell-towers
1•PaulHoule•11m ago•0 comments

I can't log in when I stand up (2016)

https://old.reddit.com/r/talesfromtechsupport/comments/3v52pw/i_cant_log_in_when_i_stand_up/
1•vismit2000•13m ago•1 comments

The Market Crash That Cost Newton a Fortune (2017)

https://www.smithsonianmag.com/smart-news/market-crash-cost-newton-fortune-180961655/
1•spking•15m ago•0 comments

Show HN: Qwen 3 TTS ported to Rust

https://github.com/TrevorS/qwen3-tts-rs
1•adefa•16m ago•0 comments

ServerVerify: Run and Review Dedicated Server, Cloud Server, VPS Benchmarks

https://serververify.com/
1•indigodaddy•18m ago•0 comments

China's Next AI Shock Is Hardware [YouTube] [video]

https://www.youtube.com/watch?v=k_bHtx_e-SU
1•koolhead17•18m ago•0 comments

I've Started Thinking in ChatGPT Responses

https://toothbrush.blog/ive-started-thinking-in-chatgpt-responses/
1•tbmtbmtbmtbmtbm•21m ago•0 comments

Your Own AI Developer on GitHub

https://rellfy.com/blog/your-own-ai-developer-on-github/
1•rellfy•26m ago•0 comments

ClipMind – Search your clipboard by meaning using local embeddings

https://github.com/arpitg1304/clipmind
1•agog13•27m ago•1 comments

Building a Year-Long Battery-Powered Wi-Fi Temperature Sensor

https://medium.com/@lee.harding/building-a-year-long-battery-powered-wifi-temperature-sensor-8b1d...
3•mlhpdx•28m ago•0 comments

Moltbook

https://www.moltbook.com/
2•teej•30m ago•1 comments

Medical journal publishes a letter on AI with a fake reference to itself

https://retractionwatch.com/2026/01/28/medical-journal-publishes-a-paper-on-ai-with-a-fake-refere...
1•leephillips•31m ago•0 comments

Ask HN: How do you force yourself to take breaks while coding?

1•glidea•32m ago•1 comments

Infostealers added Clawdbot to their target lists before security teams knew

https://venturebeat.com/security/clawdbot-exploits-48-hours-what-broke
1•vismit2000•32m ago•0 comments

MoltBot Guide – Open-source AI assistant I'm betting on

https://moltai.bot
2•CaptainJack_X•35m ago•1 comments

Strangerbench: A benchmark for AI forecasting after training cut-off dates

https://github.com/firasd/strangerbench
1•firasd•37m ago•0 comments

Can a Pendulum be a Battery? [video]

https://www.youtube.com/watch?v=uqmT1GzRXWI
1•chii•40m ago•0 comments

Clay, an A.I. Sales Startup, Lets Employees Cash Out. Again

https://www.nytimes.com/2026/01/28/business/dealbook/clay-start-up-tender-offers.html
1•AbstractH24•40m ago•1 comments

Learning Without Certainty

https://sharedphysics.com/no-lessons-to-be-learned/
1•goopthink•40m ago•0 comments