Mehdi Akiki

Writing archive

Everything published under Writing, newest first. Each entry is labelled as part of an investigation, an article or reference. Short engineering notes have their own archive.

  • Published on
    tokio::select! polls branch futures on one task and drops the losers when a branch completes. In a loop, recreating a cancellation-unsafe operation can lose partial progress.
  • Published on
    Compare shared atomic increments with per-worker totals in Rust, check equal work, and separate contention from false sharing before benchmarking.
  • Published on
    An old Protobuf reader can preserve fields it does not understand when it parses and reserializes binary messages. JSON conversion and field-by-field copying can quietly destroy that protection.
  • Published on
    A build script talks to Cargo with lines on standard output, and every line has its own receiver. I made a small workspace on Cargo 1.99.1 to follow each line, and to see what happens when the script reads a file that it did not declare.