Slang Birds of a Feather
summary
Slang is an open‑source shading language and compiler donated to Khronos that compiles to HLSL/GLSL/SPIR‑V/Metal/WGSL and emits PyTorch glue, preserving identifier names to make debugging practical. It implements automatic differentiation in‑language (matches hand‑tuned CUDA performance, ~40% fewer lines in a Gaussian splatting kernel), targets WGSL/web GPU via a 5 MB WASM playground, hits within ~10% of native compile times, and is already used in Valve’s Source 2 and Autodesk workloads; Metal lacks ray tracing support so far.
AI-written summary · about
chapters (19)
- 0:00Introduction to Slang
- 0:54Shading language challenges
- 2:06What is Slang
- 3:46Slang in Khronos
- 5:38Slang philosophy
- 7:01Modern programming features
- 8:27Cross-compilation advantages
- 10:40WebGPU support
- 12:21Metal backend
- 13:37Slang tooling ecosystem
- 15:20Automatic differentiation
- 17:25Gaussian splatting use case
- 18:21Performance and compilation
- 19:03Modules and generics
- 20:22Adoption and migration
- 21:47Templates vs generics
- 24:33Live demo
- 34:26Community involvement
- 36:04Q&A session
