<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>Patrick Burris</title><description>Writing on graphics, programming languages, and systems.</description><link>https://pburris.me/</link><item><title>WebAssembly From Scratch - Part 2</title><link>https://pburris.me/blog/wasm-from-scratch-2/</link><guid isPermaLink="true">https://pburris.me/blog/wasm-from-scratch-2/</guid><description>Building on the last post, this establishes the mental model needed to read and write WAT: a stack-based VM, explicit control flow, and linear memory. By introducing a shared pseudo language, it reframes functions, branching, loops, structs, arrays, and pointers as deliberate layouts and stack operations everywhere.</description><pubDate>Sat, 27 Dec 2025 06:00:00 GMT</pubDate></item><item><title>WebAssembly From Scratch - Part 1</title><link>https://pburris.me/blog/wasm-from-scratch-1/</link><guid isPermaLink="true">https://pburris.me/blog/wasm-from-scratch-1/</guid><description>This post is the starting point for a series on writing WebAssembly from scratch. I am not using Rust, C, Zig, or any higher level language. I want to build everything by hand so that the pieces make sense and nothing feels like magic and not just walk you through how to use a toolchain.</description><pubDate>Thu, 04 Dec 2025 11:00:00 GMT</pubDate></item><item><title>TypeScript discriminated unions, and trying to mimic Rust enums</title><link>https://pburris.me/blog/ts-discriminated-union-rust-enums/</link><guid isPermaLink="true">https://pburris.me/blog/ts-discriminated-union-rust-enums/</guid><description>Can we re-create Rust enums in TypeScript? We can try!

I show how we can use type unions to mimic some of the behavior of Rust enums, and then take a look at the differences between the TS implementation and the Rust implementation.</description><pubDate>Wed, 15 Mar 2023 18:28:00 GMT</pubDate></item></channel></rss>