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

Comments

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

Prompt Engineering –> Context Engineering –> Intent Engineering

https://twitter.com/vincent_koc/status/1988454980202942769
1•koconder•4m ago•0 comments

Shader Basics

https://bobacupcake.com/shader-basics
1•Lammy•4m ago•0 comments

How I Hire Engineers for My Early Stage Startup – LinkedIn vs. Upwork

https://ovsy.com/posts/how-i-hire-engineers-for-my-early-stage-startup-linkedin-vs-upwork.html
1•iliao•7m ago•0 comments

Banks to have 'bank.in' internet domain name, non-banks 'fin.in': RBI

https://www.thehindu.com/business/banks-to-have-bankin-internet-domain-name-non-banks-finin-rbi/a...
2•thisislife2•13m ago•1 comments

Congratulations to Groww

https://www.ycombinator.com/blog/groww/
1•todsacerdoti•16m ago•0 comments

Building the Open Agent Ecosystem Together: Introducing OpenEnv

https://huggingface.co/blog/openenv
1•JimDabell•17m ago•0 comments

Creating recurring tasks in Todoist with cron

https://www.davidschlachter.com/misc/todoist-repeater
1•dddddaviddddd•17m ago•0 comments

Unicef says Israel blocking 1M syringes needed to vaccinate Gaza children

https://www.reuters.com/business/healthcare-pharmaceuticals/unicef-says-israel-blocking-one-milli...
3•Qem•18m ago•0 comments

The most thorough way to name a child (twice!)

https://three-things.medium.com/the-most-thorough-way-to-name-a-child-twice-4d59daf65461
3•murph314•18m ago•0 comments

ByHeart Recalls All Baby Formula Nationwide Amid Botulism Scare

https://apnews.com/article/byheart-baby-formula-infant-botulism-recall-e070565daaf1f425e3d37dca20...
2•salkahfi•23m ago•0 comments

Manifold.love

https://manifold.love/
3•surprisetalk•25m ago•0 comments

Pound iPhone Case

https://www.toxel.com/tech/2025/10/23/6-pound-iphone-case/
2•surprisetalk•25m ago•0 comments

Building the Internet Kids Deserve [video]

https://vimeo.com/1103333487
1•surprisetalk•25m ago•0 comments

Two Meetings

https://www.futilitycloset.com/2025/10/16/two-meetings/
2•surprisetalk•25m ago•0 comments

Why bears are being killed from above in Alaska, with no limit on how many

https://www.sfgate.com/national-parks/article/alaska-public-lands-bear-killing-caribou-program-21...
3•c420•26m ago•0 comments

I ran the numbers on CA Property Tax Appeals – and it's a winner

https://www.appealseal.com/content/blog/san-mateo-tax-appeal-in-numbers
5•philippb•27m ago•2 comments

Nested Learning: A new ML paradigm for continual learning

https://research.google/blog/introducing-nested-learning-a-new-ml-paradigm-for-continual-learning/
3•danielmorozoff•29m ago•0 comments

Perkeep lets you permanently keep your stuff, for life

https://perkeep.org/
3•nikolay•30m ago•0 comments

Show HN: Beeholder – Data Observability Platform

https://github.com/stym06/beeholder
1•stym06•30m ago•1 comments

Deal to end US shutdown also allows some senators to seek $500k for Jan 6 probe

https://www.reuters.com/legal/government/deal-end-us-shutdown-would-also-allow-some-republican-se...
3•petethomas•32m ago•0 comments

Aging as a Loss of Goal‐Directedness

https://advanced.onlinelibrary.wiley.com/doi/epdf/10.1002/advs.202509872
2•simonpure•35m ago•0 comments

Can consulting become a conscious resonance between humans and AI?

https://dotnetone.com/ao-consulting-manifesto.html
2•nettalk83•37m ago•1 comments

The total budget for NYC in 2024 was $118B

https://comptroller.nyc.gov/newsroom/nyc-comptroller-brad-lander-releases-fiscal-year-2025-annual...
1•zerosizedweasle•37m ago•0 comments

Novel Local SEO Strategy: Thoughts

https://handbdigital.com/oklahoma-city-seo/
2•ingleside•40m ago•0 comments

Show HN: General Intelligence – Active knowledge framework for machine learning

https://github.com/mksunny1/general-intelligence
2•marksun130•40m ago•0 comments

Trustworthy Data Visualization

https://kieranhealy.org/blog/archives/2025/11/10/trustworthy-data-visualization/
1•tmoertel•40m ago•1 comments

AI Co-Founder who codes your app AND preps your winning pitch deck

https://aurelia.so/
2•Natez•43m ago•0 comments

Fermented fibers could tackle both world hunger and fashion waste

https://techxplore.com/news/2025-10-fermented-fibers-tackle-world-hunger.html
2•PaulHoule•45m ago•1 comments

The rise of singlehood is reshaping the world

https://www.economist.com/leaders/2025/11/06/the-rise-of-singlehood-is-reshaping-the-world
2•JamesAdir•48m ago•1 comments

Footage of Bolide Capture from Aircraft

https://twitter.com/MAstronomers/status/1988294305602302429
2•keepamovin•50m ago•0 comments