← All posts

Rust

Posts about the Rust programming language

  • Perfetto profiling screenshot from the `c-rusted-rs` analyzer, showing nested analysis work in a trace view.2026-07-10: Hooks, extension traits, and tiny contexts
    A Rust pattern for keeping analysis contexts small without giving up convenient method calls.

    While building c-rusted-rs, I found myself calling some context helpers "hooks". In hindsight, they were really extension traits layered over a tiny typemap-backed analysis context.

    The pattern is simple: keep the core context boring, then add opt-in capabilities such as cached analyses through trait methods. It is not novel, but it made the checker dependencies local, readable, and easier to compose.

  • A diagram showing the new architecture of the _e-light_ app, with three main modules: the engine, the scanner agent, and the user interface.2026-07-07: Designing a structured light app architecture
    Refactoring the e-light app into three modular components

    In this post, I describe the redesign of the fundamental architecture for the e-light structured light app, which I'm currently developing.

    The new architecture is based on a modular design that splits the app into three main modules (the engine, the scanner agent, and the user interface), each with a clear responsibility. This design allows for more flexibility, better separation of concerns, distributed setups, and easier customization.