Recent Posts

  • rust_tlplib and tlp-tool 0.5.0: PCIe 6.0 Flit Mode

    The rust_tlplib and rtlp-tool libraries had not seen a release in a long time. After getting Gen 4 TLP parsing to a point where it covered everything I needed day-to-day, I left it there. Good...

  • A Transformer Block in CUDA

    December, somewhere over the Pacific on the way to Tokyo. The letGPU challenge open in one browser tab, Ro Salaverry’s The Scaling Era: An Oral History of AI, 2019–2025 on my Kindle. No plan beyond...

  • The GPT-2 Decoder Block: Before Writing Any Code

    At university, long before the current AI period, neural networks were still niche. Academic appeal, limited hardware, results that rarely justified the compute. We wrote simple recurrent networks in C, used them in robotics and...

  • Implement ls

    I ask this in interviews sometimes. Not as a gotcha — as a conversation starter. “Implement ls.” Four words. The answer tells you a lot about where someone’s mental model of the OS ends.

  • How to Parse PCIe TLPs

    PCIe devices are everywhere, but when one misbehaves the kernel logs you with raw TLP headers and no explanation. This post is about making sense of those bytes.

  • Before the BSD Kernel Starts: Part One AMD64

    Note: This article was originally written for and published at Moritz Systems in November 2020. Their website is no longer available; the content is republished here in its original form. The web archive version can...

  • Debugging FFS Mount Failures

    Note: This post was originally written in 2019 and has been lightly refreshed for clarity. The content and examples are unchanged — just the presentation got a coat of paint.

  • Fuzzing NetBSD Filesystems via AFL — Part 2

    Note: This post was originally written in 2019 and has been lightly refreshed for clarity. The content and examples are unchanged — just the presentation got a coat of paint.

  • Write Your Own Fuzzer for the NetBSD Kernel

    Note: This post was originally written in 2019 and has been lightly refreshed for clarity. The content and examples are unchanged — just the presentation got a coat of paint.

  • Short Story of Pages and Virtual Memory: Writing FS for Fun

    Followup Writing Linux Filesystem For Fun After my presentation “Writing Filesystem for Fun” that I did during May C/Cpp meetup I recieved many questions and positive comments. Thus I wanted to do second part of...