frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Zig and GPUs

https://alichraghi.github.io/blog/zig-gpu/
57•Cloudef•1y ago

Comments

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

Unified code for copy and move semantics

https://denismarkelov.codeberg.page/book/overview/memory-management.html
1•denismarkelov•4m ago•0 comments

Claude for Startups, is Premium the same as $100 plan?

1•Dinuda•5m ago•0 comments

X political ads against Mario Draghi

https://twitter.com/belfio/status/2108115684253487390
2•albelfio•6m ago•1 comments

Wrapper for Free Open Router Models

https://wfform.com/
1•metaph6•6m ago•0 comments

Show HN: WhoFundsOSS, a public ranking of companies that fund open source

https://whofundsoss.com
1•MajorBaguette•8m ago•0 comments

Other ways newsrooms are using AI in investigations

https://www.niemanlab.org/2026/10/uber-agents-undercover-ai-personas-and-other-ways-newsrooms-are...
1•giuliomagnifico•9m ago•0 comments

Are Developers Obsolete? [video]

https://www.youtube.com/watch?v=-fff5w9O0yI
1•sandebert•9m ago•0 comments

AI coding agents and a rerun of the operating-system wars

https://gaseri.org/en/blog/2026-10-08-ai-coding-agents-and-a-rerun-of-the-operating-system-wars/
1•taubek•9m ago•0 comments

Calcova: Modern Scientific Calculator, Unit Calculator and Math Solver

https://apps.apple.com/us/app/calcova-scientific-calculator/id6769450028
1•jimmy_lee•13m ago•0 comments

Booking.com goes to court to force staff to go to the office

https://www.dutchnews.nl/2026/10/booking-com-goes-to-court-to-force-staff-to-go-to-the-office/
1•robin_reala•14m ago•0 comments

LocalStack for Azure is now in Public Preview

https://blog.localstack.cloud/localstack-for-azure-public-preview/
2•paolosalvatori•20m ago•0 comments

Be my cofounder (curry from the moon)

2•yahyaahmad•20m ago•0 comments

What's the Date?

https://www.lesswrong.com/posts/vzKWsEskYBEWTwpBP/what-s-the-date
2•tolugenius•21m ago•0 comments

Tesla browbeating EU to approve 'Full Self-Driving' tech. Pressure is working

https://www.reuters.com/investigations/tesla-is-browbeating-eu-approve-its-full-self-driving-tech...
2•YeGoblynQueenne•22m ago•0 comments

What the Hell Are Claude Mods? [video]

https://www.youtube.com/watch?v=U2u2Z7Wwkog
4•sam_3•22m ago•0 comments

Paramount Stock Declines After Merger with Warner Discovery Closes

https://www.thebignewsletter.com/p/raises-for-me-layoffs-for-thee-the
2•toomuchtodo•23m ago•1 comments

Stop Babysitting Your Agent: Build the Agent Loop [video]

https://www.youtube.com/watch?v=RQEwXaawOso
4•sam_3•23m ago•0 comments

How to Change Text in an Image Without Photoshop in 2026

https://rewordsai.app/blog/tested-10-image-text-removers
2•wangneo276•28m ago•0 comments

Somebody Vibe Coded Every Single Adobe App [video]

https://www.youtube.com/watch?v=eFB79TYI-Vw
2•zazuke•28m ago•1 comments

Margaret Hamilton, whose software powered Apollo 11 moon landing, dies at 90

https://www.theguardian.com/science/2026/oct/07/margaret-hamilton-moon-computer-software
3•ljf•29m ago•1 comments

Gigabyte W775-V10-L01 Hands-On Bringing Nvidia GB300 Deskside

https://www.servethehome.com/gigabyte-w775-v10-l01-hands-on-bringing-nvidia-gb300-deskside/
3•lumpa•29m ago•1 comments

Surface Laptop Ultra

https://blogs.windows.com/devices/2026/10/07/pre-order-our-most-powerful-surface-devices-ever/
3•tosh•31m ago•0 comments

One's Vibe – discover AI-built products you can try

https://onesvibe.app
2•ZeljkoS•32m ago•0 comments

Macropay-Solutions PHP-Framework is out and fast

https://macropay-solutions.com
2•marius-ciclistu•38m ago•0 comments

'Bendy Tree' in Co Down Wins Tree of the Year Competition

https://www.rte.ie/news/ireland/2026/1008/1594484-down-tree-of-the-year/
2•austinallegro•39m ago•0 comments

Ask HN: Preferred state management for enterprise Flutter in 2026?

2•nmdemirkol•40m ago•0 comments

Veda

https://github.com/vahmoh25/Veda
1•vahmoh25•40m ago•0 comments

OpenAI Withdraws 3 Math Papers

https://github.com/openai/math/blob/main/history.md
2•theemathas•40m ago•0 comments

KizunaShelf – a shelf for everything you love

https://kizunashelf.app/
1•mudkipme•41m ago•1 comments

From Expert-Guided Proof Search to Automated Open-Problem Solving

https://arxiv.org/abs/2610.09769
2•sbulaev•42m ago•0 comments