Mehdi Akiki

Posts tagged "systems programming"

  • Published on
    When the same Rust code breaks on another target or another machine, I ask four questions in order. Here is the tree, with real outputs from rustc 1.99.1 for ten targets and from runs on my laptop and in three Linux containers.
  • Published on

    Article · Through the layers

    A Rust FFI Boundary Is More Than repr(C)

    A tested Rust-and-C FFI boundary covering ABI layout, pointer validation, ownership, panics, error reporting, callbacks, versioning, and cross-language harnesses.
  • Published on

    Investigation · Part 1 of 20 · What survives a crash

    Your Data Is Not on Disk When write() Returns

    When write returns, the kernel has your data, but the disk does not have it yet. I measured it on my laptop: 256 MiB sat in RAM until fsync, kill -9 lost nothing, and a power cut could lose everything for up to about 35 seconds.
  • Published on

    Investigation · Part 1 of 20 · From source to a running process

    What Happens When You Run a Program: From execve to main

    My C hello world makes 32 system calls before it prints its line, the static one 14, the Rust one 61. I followed every call back to the code that made it (the kernel, the loader, libc or the Rust runtime) and I timed one start of each.