Journal
Thoughts, theories, and deep dives into software engineering and cybersecurity.
Designing a Typed Intermediate Representation for Optimizing Compilers
A typed intermediate representation (IR) brings explicit type information into compiler optimizations, enabling safer tr...
Implementing Incremental Parsing for Fast IDE Feedback
Incremental parsing reduces latency in modern IDEs by reusing previous parse results for small edits. This article expla...
Tradeoffs in Adding Gradual Typing to a Dynamic Language
Gradual typing mixes static and dynamic typing in a single language, promising safer APIs and incremental adoption. This...
Strategy and Implementation of Region-Based Memory Management
Region-based memory management groups allocations into scoped regions reclaimed together. This article explains where it...
Designing a Safe Foreign Function Interface Between Languages
Designing a safe FFI is critical for combining languages with differing memory, concurrency, and type models. This artic...
Making a JIT-Friendly Bytecode Format: Practical Guidelines
Practical guidelines for designing a bytecode format that accelerates JIT compilation. Focuses on real-world tradeoffs:...
Techniques for Precise Exception and Stack Unwinding Across Languages
Cross-language systems require precise exception propagation and stack unwinding to maintain correctness, resource safet...
Designing Syntax Extensions Without Breaking Tooling Ecosystems
Practical guidance for adding syntax to a language while keeping IDEs, linters, formatters, and build systems working. C...
Implementing Efficient Pattern Matching in a Compiler Backend
Practical techniques for compiling high-performance pattern matching into machine code. Covers decision trees, bitset di...