There is no eBPF for macOS and DTrace requires root. This paper documents what remains: sample, xctrace, the undocumented kpep event catalogue, and a method for identifying the unnamed counter slots that xctrace exports.
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.
No admin password needed, but Apple’s full developer tools have to be installed.
The tool says it failed. The recording is fine anyway.
A dozen tallies per reading, and no labels for any of them.
A tally on its own means nothing. Compare it with the one that counts finished 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.
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.
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.
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.
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.
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.
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.