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.

Biff, a language that compiles to Brainfuck

https://github.com/JohnSwiftC/biff
1•jswiftC•35s ago•0 comments

Ruby in the Age of AI

https://enogrob.github.io/ruby/artificial-intelligence/software-engineering/architecture/2026/10/...
1•enogrob•2m ago•1 comments

Show HN: How rare is your birthday? Ranked from 85.7M U.S. births

https://birthdaytraffic.com/
1•adriannalakatos•2m ago•0 comments

Show HN: Symmetric encrypted chat (text, file, audio, video) in browser

1•amir734jj•2m ago•0 comments

Nola v0.1.14

https://nola.sh/blog/nola-0-1-14/
1•emykhailenko•4m ago•0 comments

Show HN: gmGPU – click your way up to become a hyperscaler (game)

https://gmgpu.xyz/
1•lukaskel•9m ago•0 comments

10-year Treasury yield climbs above 5.3% to a level not seen in 24 years

https://www.wsj.com/finance/investing/surging-yields-bring-the-bond-market-back-to-the-turn-of-th...
5•kaycebasques•10m ago•0 comments

Can AI self-improvement overcome diminishing returns?

https://www.rameznaam.com/p/ai-rsi-isnt-leading-to-super-intelligence
2•gmays•11m ago•0 comments

The Microplastics Epidemic in Indonesia

https://www.nytimes.com/interactive/2026/09/07/world/asia/indonesia-jakarta-landfill-fire-micropl...
1•bookofjoe•11m ago•1 comments

Eigen: Self-hosted alternative to Google Workspace

https://github.com/eigen-is/eigen
2•0x0f0f0f•12m ago•1 comments

Returning from vacation? The government can search your phone without a warrant

https://arstechnica.com/tech-policy/2026/09/immigration-advocate-sues-border-agents-for-demanding...
2•Geekette•14m ago•0 comments

Hyperbolic Wave Attractors

https://www.nature.com/articles/s41567-026-03453-7
1•wawayanda•16m ago•0 comments

Prompt Injection Firewall for AI APIs and Agent Tool Calls

https://github.com/rajatrao/jevshield
1•raorajat007•17m ago•0 comments

Show HN: TripTended – Track what's still unresolved before a trip departs

https://triptended.com/
1•smallmartial•21m ago•0 comments

The optimal amount of fraud is non-zero

https://www.bitsaboutmoney.com/archive/optimal-amount-of-fraud/
1•pinkmuffinere•22m ago•0 comments

Fed official used Asian dating site, sent nude photos – and wound up blackmailed

https://nypost.com/2026/09/30/business/fed-official-used-asian-dating-site-sent-nude-photos-and-w...
2•snarky-comments•23m ago•0 comments

OpenVMS E9.2-4 now in Field Test

https://vmssoftware.com/about/v924
1•gjvc•25m ago•0 comments

Fixed Points and Strike Mandates

https://pvk.ca/Blog/2012/02/19/fixed-points-and-strike-mandates/
1•luu•28m ago•0 comments

Inside the Biggest Feud in Artificial Intelligence: Dario Amodei and Sam Altman

https://www.theatlantic.com/technology/2026/09/openai-v-anthropic-inside-biggest-rivalry-tech/688...
1•yarapavan•29m ago•1 comments

Show HN: Kanmaps – Product roadmaps like videogame skill trees

https://kanmaps.com/show
2•pasharayan•29m ago•0 comments

Reversible Cryptographic Hash Extraction

https://zenodo.org/records/23072400
1•GeometryKernel•40m ago•0 comments

Clipx – An open-source AI-native creative suite for macOS

https://github.com/imlukeshen/clipx
2•imlukeshen•42m ago•0 comments

Pentagon creates 'Autowarcom' to expand AI and drone capabilities

https://www.reuters.com/world/pentagon-creates-autowarcom-expand-ai-drone-capabilities-2026-09-30/
1•geox•46m ago•2 comments

Show HN: Web Scraper kittools (base64, JSON, JWT, regex)

https://kitdecoder.com/
1•MetcoreB•47m ago•0 comments

Rho – A Foundation for Efficiently Adaptable VLA Models

https://microsoft.github.io/rhobotics/
1•andsoitis•48m ago•1 comments

Apple App Store knows more about me than I like

1•dllrr•49m ago•0 comments

If Robots Keep Getting Better, Will Humans Still Have an Edge?

https://pindexis.github.io
1•pindexis•50m ago•0 comments

Automating coherent long-form video generation

https://research.google/blog/coherent-long-form-video-generation/
1•andsoitis•50m ago•0 comments

Tech to Replace Animal Testing Is Almost Ready. Scientists Are Not

https://spectrum.ieee.org/alternatives-to-animal-testing
2•pseudolus•51m ago•0 comments

AI safeguards are slowing developers down

https://venturebeat.com/technology/developers-say-openai-and-anthropic-safeguards-are-flagging-ro...
1•dollar•51m ago•0 comments