~/talk

Performant TypeScript shaders: breaking down the Jelly Slider

Talkat WhatTheStack 2026 · 2026-09-14..09-19· [typescript, web-performance]
links:none on file
slides:none on file

Shows TypeScript compiled to GPU code using TypeGPU compiles TypeScript to GPU shaders, not by running JS on the GPU, and uses that to build a jelly slider renderer and physics engine. Implements ray marching with SDFs, caches a 2D distance field into a 256x128 precomputed distance texture to cut work from ~9 ms to ~0.3 ms per frame, and runs a 60 MB neural depth model on-device at 7–8 ms inference, all real-time in the browser.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:50What is a shader
  3. 3:15TypeScript to GPU compilation
  4. 5:00GPU memory types
  5. 6:46Dispatching GPU threads
  6. 8:12Why TypeScript shaders
  7. 9:17Advantages of browser GPU
  8. 10:19Breaking down abstractions
  9. 12:47Rendering triangles to screen
  10. 14:13Beyond triangles with ray marching
  11. 16:20Distance fields for rendering
  12. 19:10Shading and transparency
  13. 21:18Jelly slider representation
  14. 22:41Ambient occlusion basics
  15. 24:45Optimizing ray marching
  16. 26:50Texture caching benefits
  17. 27:34Resource-based optimization
  18. 28:17Neural networks on GPU
  19. 30:24TypeGPU resources and demos
~/search
type to search 6,518 conferences, 143,918 speakers and 192,133 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.