~/topics/rust

rust

everything written here about rust — the drain log-parsing algorithm, a hand-rolled query dsl, zero-copy mmap parsing, mcp servers, tantivy search, and wasm charts

rust is what i write tools in. not services — tools: the things that parse gigabytes, run once, and have to be right and fast at the same time.

what does this blog cover about rust?

algorithms implemented from papers, mostly, and the parts the paper leaves out. the drain algorithm for streaming log-template extraction. welford’s online variance, so a rolling z-score never has to store the samples. a query dsl built by hand — tokenizer, recursive-descent parser, tree-walking evaluator — and when not to reach for a parser generator. zero-copy parsing straight out of an mmap, and the single invalid byte that turns it back into a heap copy.

then the applied end: three mcp servers in one cargo workspace, embedded tantivy doing bilingual full-text search, duckdb and sqlite in the same binary, ols regression and the collinearity trap, and charts rendered on canvas2d from rust with no javascript library at all.

if there is a pattern, it is that rust is where i go when i want to know how the thing actually works, and the borrow checker keeps me honest about it.

for services rather than tools, see go . the split is deliberate and explained here .