Posts tagged #performance
-
Fusing a risp pipeline to beat CPython: killing 400,000 allocations wasn't enough
In risp, a zero-dependency Rust Lisp, fusing map/filter/fold cuts 400,000 allocations to O(1) — but only a monomorphized i64 loop beats CPython: 4 ms vs 24 ms.
-
Why risp, a native-compiling Lisp, loses to CPython on map/fold: allocation, not codegen
risp, a zero-dependency Rust Lisp, beats CPython by 9–40× on integers but loses 3× on map+fold — the bottleneck is ~400,000 cons-cell allocations, not dispatch.
-
Adding a Cranelift JIT that runs 10–23× faster than CPython
A deep dive into risp's opt-in Cranelift JIT in Rust: a decline-don't-guess type checker, lowering if/cond/let to Cranelift IR, inline signed-overflow detection, tail-calls as loop back-edges, and a deopt guard — beating CPython by 10× to 42×.
-
How a bytecode VM in Rust beat CPython 3.14
Eleven profile-guided steps with real Rust: lexical-addressed locals, unboxed i64 arithmetic, an unsafe hot loop, and self-tail-calls in place — taking a tree-walking Lisp from 1682 ms to 95 ms on fib(30) and past CPython on every loop.
-
Edge deploys on Cloudflare that just work
Headers, redirects, and caching belong at the edge, not in your application code. A look at the small config files that do the heavy lifting.
-
How this site scores Lighthouse 100 on mobile
A static Astro build, zero client framework, and a strict CSP: the three decisions that keep all four Lighthouse categories pinned at 100.