osorio.sys
Language
Theme

Compiler Internals

Building a toy language compiler in Rust from scratch. Covering lexing with Logos, recursive descent parsing, AST generation, and LLVM IR emission.

2 of 2 parts out · updated Oct 24, 2024

Start with part 1
  1. Lexical Analysis with Logos Building a fast, maintainable lexer for a toy language using the Logos crate. Jan 28 · 2 min
  2. Deep Dive: Optimizing SIMD loops in Rust with std::arch A detailed analysis on how to manually vectorize operations when the LLVM compiler auto-vectorizer is not enough. Oct 24 · 5 min
  3. Next part in progress

Tools used Rust (1.75+) · LLVM 16 · Logos Crate

Other series

1All series

Audio Fingerprinting

1 part

From WAV samples to stable hashes: building robust audio matching pipelines in Rust.