Projects
wgsl-linker
Enrich the WGSL shader language to support code modules via import and export statements. Linking can be done entirely at runtime.
mini-parse
A small TypeScript parser combinator library with an efficient regex based lexer.
wgsl-link
A command line tool for preprocessing and linking multiple WGSL shader modules into a single WGSL module.
Blog Posts
Modern Union To Intersection
July 2024
Modern TypeScript enables us to build an improved type constructor to convert union types to intersection types.
TypeScript Tricks for Combining Records
June 2024
Use fancy TypeScript type constructors to safely work with Records. Add fields to Records using mapped types. Intersect Records using contravariance. Recover Record types after intersection.
Reactive WebGPU
April 2023
Fine grained reactivity (aka signals) libraries are useful for WebGPU. Reactivity libraries offer hooks for lazy recalculation, resource reallocation, cleanup, caching, and dependency tracking.