BlogFeatured 0 times

matklad

matklad's Arts&Crafts

Visit matklad.github.io

Featured lists

0 appearances
Not featured yet

This blog has not appeared on a published list.

Recent posts

Newest first
  1. Avoid Public Functions Calling Other Public Functions

    When implementing software modules, avoid having public functions call other public functions by creating a private helper function instead.

  2. On Git Refs

    Git's refs, an implementation detail powering branches and tags, are a mutable key-value store that can be confusing due to shorthand notation and name reuse.

  3. Benchmark In Milliseconds

    Micro benchmarks should run for approximately 300ms to balance precision, avoid fixed cost skew, and remain human-perceptible for intuitive analysis.

  4. Finding Bugs

    Generative testing with a custom fuzzer discovered bugs in the Rust regex crate by comparing its output against a simpler regex implementation.

  5. Static Allocation, Constant Work

    Static allocation after initialization, limiting the number of orders, offers a robust solution to memory safety issues in systems like order matching engines.

  6. Cancelation Terminology

    This note distinguishes between synchronous cancelation as control flow, asynchronous cancelation as a communication protocol, and graceful shutdown as an application pattern.

  7. Rust Glancer

    Rust Glancer, a functional LSP server for Rust, uses significantly less RAM by analyzing dependencies differently than rust-analyzer.

  8. Better Batteries

    The quality of a programming language's standard library depends on its social architecture and institutional capacity, not just its size, as seen in Python, Go, and Rust.

  9. Printing Lists

    A concise idiom for printing a comma-separated list involves optionally printing the comma before each element in a loop.

  10. Zig's Io.Threaded is Neat

    Zig's std.Io.Threaded provides a novel way to reliably cancel blocking syscalls using signals and shared memory flags.