Skip to content

I’m Mohamed.I build resilient systems and Agentic AI.

I lead the data team at Aleph Alpha in Germany. I build search over company documents, AI agents, and backends that are easy to monitor and debug.

Latest writing

All posts

Finding out what a chip is counting when Apple won’t tell you

Your Mac keeps a dozen running tallies about what its processor is doing, but does not say what each one counts. Run a small program you understand, watch which tally moves, and you have your answer.

six numbered steps: run a known workload, record it with xctrace, export the counter table, read twelve unnamed integers per row, total them per slot, then divide by the slot that tracks work
  • Step 2 No admin password needed, but Apple’s full developer tools have to be installed. The tool says it failed. The recording is fine anyway.
  • Step 4 A dozen tallies per reading, and no labels for any of them.
  • Step 6 A tally on its own means nothing. Compare it with the one that counts finished work.
Read the post

Things I have built, from document engines to package managers.

All 22 projects
  • The turbofile website

    turbofileRust

    Real async file I/O for Python. Existing async-file libraries hop every call through a thread pool. This one submits the read or write to the kernel, io_uring on Linux and POSIX AIO on macOS, and completes your await when the data has moved. Zero-copy on the hot paths, one event-loop wakeup per burst of completions, aiofiles-compatible API.

  • The pdfboss website

    pdfbossRust

    From-scratch PDF toolkit in Rust with Python bindings. The fastest PDF library in the world for page rendering and text extraction, and it creates PDFs too.

  • The docboss website

    docbossRust

    Word engine written from scratch in Rust: reads .docx and legacy .doc, extracts text, Markdown, HTML and JSON, renders pages to PNG, writes DOCX, opens encrypted and remote files. DOCX text at 3,304 files a second, about 4x docx2txt, with text recovered from 140 of 150 damaged files where other engines manage 1 to 8. CLI, Python bindings and a terminal explorer.

  • The pptxboss website

    pptxbossRust

    PowerPoint engine written from scratch in Rust: reads .pptx and legacy .ppt, extracts text, notes, tables, charts and images, renders Markdown, verifies against ECMA-376 and creates decks. A lenient reader that tolerates broken archives and relationships. CLI and Python bindings.

  • The metalbrew website

    metalbrewZig

    Homebrew rebuilt in Zig for Apple Silicon: installs Homebrew bottles and casks from the formulae.brew.sh index with one 1.3 MB static binary. No Ruby, no runtime, no sudo, and about 5x faster installs because it only fetches, verifies, extracts and links.

  • The notslowapi website

    notslowapiPython

    A fork of FastAPI that does less work per request: same public API and test suite, with the plain JSON route down from 31.2 to 15.7 microseconds on uvicorn and 8.1 on granian.

Get new posts by email

One email when I publish. Unsubscribe anytime.