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•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.

Model Optimization

https://developers.openai.com/api/docs/guides/model-optimization
2•ankitg12•7m ago•0 comments

Linear Cosine Palettes(2025)

https://blog.djnavarro.net/posts/2025-09-14_cosine-palettes/
2•num42•12m ago•0 comments

Senior Data Engineer – Climate Friendly

https://au.seek.com/job/92537981
2•molliejackson•13m ago•1 comments

agentgateway Joins AAIF as an Open Gateway for Agentic AI Infrastructure

https://aaif.io/blog/agentgateway-joins-aaif-as-an-open-gateway-for-agentic-ai-infrastructure/
2•wicket•13m ago•0 comments

Show HN: Wyreup.com – Common JavaScript tools packaged for offline and agent use

https://wyreup.com/
2•tamler•18m ago•0 comments

Anthropic Wants Worldwide AI Development Pause

https://www.wsj.com/finance/investing/anthropic-calls-for-global-slowdown-in-ai-development-4f2134f6
2•jonbaer•20m ago•0 comments

NASA announces 3 uncrewed missions to moon this year to prepare to build a base

https://www.nbcnews.com/science/space/nasa-announces-moon-missions-prepare-build-base-rcna346349
7•gmays•23m ago•0 comments

Chinese users do not like "super apps"

https://twitter.com/trydotworks/status/2062723113322741895
3•try-working•28m ago•0 comments

The AI Treadmill

https://debliu.substack.com/p/the-ai-treadmill
2•swolpers•29m ago•0 comments

Meta scales back plan for internal mouse-tracking tech, citing staff concerns

https://www.reuters.com/world/meta-scales-back-ai-mouse-clicks-tool-citing-employee-concerns-2026...
2•gnabgib•29m ago•0 comments

Sparknotes for your agents. Try for free

https://www.aiagentnotes.com/
2•mattmerrick•30m ago•0 comments

Ask HN: macOS went from Cat to California, next what?

3•akashwadhwani35•35m ago•0 comments

Benevolent dictator Zuck will give Meta staff 30-minute break keylogging assault

https://www.theregister.com/ai-and-ml/2026/06/04/meta-to-allow-staff-breaks-from-keylogging-data-...
4•Bender•36m ago•2 comments

'Please do not vibe f–- up this software': Broken backups spark AI coding row

https://www.theregister.com/ai-and-ml/2026/06/04/please-do-not-vibe-f-up-this-software-broken-bac...
3•Bender•37m ago•1 comments

Azure Linux 4.0 is Microsoft's first general-purpose Linux

https://www.boxofcables.dev/azure-linux-4-0-is-microsofts-first-general-purpose-linux/
3•haydenbarnes•38m ago•0 comments

Larger context windows and configurable reasoning levels for GitHub Copilot

https://github.blog/changelog/2026-06-04-larger-context-windows-and-configurable-reasoning-levels...
2•Klaster_1•38m ago•0 comments

Walmart investors reject AI workplace report as automation expands in the US

https://www.reuters.com/legal/litigation/walmart-investors-reject-ai-workplace-report-automation-...
2•petethomas•40m ago•4 comments

Jo: A statically typed language that targets Ruby

https://jo-lang.org/
1•thunderbong•41m ago•0 comments

The Causes of Long Covid

https://www.science.org/content/blog-post/causes-long-covid
11•maxall4•48m ago•3 comments

NPM-Scan v1.1.0: Four New Detectors for June 2026 Supply Chain Attacks

https://github.com/lateos-ai/npm-scan/blob/main/VALIDATION.md
1•lateos-ai•49m ago•1 comments

American Fuzzy Lop (2016)

https://lcamtuf.coredump.cx/afl/README.txt
1•mooreds•49m ago•0 comments

New Fast Tracks Account for Older Company IPOs

https://www.nasdaq.com/articles/new-fast-tracks-account-older-company-ipos
1•vermilingua•50m ago•0 comments

A Concurrent Language for Non-Concurrent Software (2010)

https://prog21.dadgum.com/81.html
1•mooreds•50m ago•0 comments

Wslc: A native Linux container runtime for Windows

https://www.boxofcables.dev/wslc-a-native-linux-container-runtime-for-windows/
2•m3h•52m ago•0 comments

Miracle on Everest: Guide believed dead spotted crawling down ice

https://www.bbc.com/news/articles/cvgz2yjl4y3o
2•koolhead17•53m ago•1 comments

Here.now: Free, Instant web hosting for agents

https://here.now
2•kamphey•54m ago•1 comments

'World-first' vaccine designed by artificial intelligence

https://www.bbc.com/news/articles/crrpggegwe0o
2•sizzle•56m ago•0 comments

Form design: from zero to hero all in one blog post

https://adamsilver.io/blog/form-design-from-zero-to-hero-all-in-one-blog-post/
3•thunderbong•57m ago•0 comments

CEO to staff: You're not getting a raise. We're spending on AI instead

https://www.businessinsider.com/teradata-pauses-raises-employee-compensation-ai-budget-2026-6
16•ValentineC•58m ago•2 comments

Bad MCP design cost your Agent 5× more tokens

2•JohnnyZhang483•59m ago•0 comments