Blog

Blog

Long write-ups on Rust and security work, including the parts that went wrong.

Featured 13 min

Hand-rolling BitNet b1.58 in Rust: from autograd to tensor cores

I wanted to genuinely understand BitNet b1.58 - ternary weights with INT8 activations, trained through a straight-through estimator. So I wrote it from scratch in Rust with no third-party ML dependencies. Then I tried to make it run on Ada tensor cores. Then I found out the GPU was slower than the CPU at my batch size, and learnt why.

rust machine-learning cuda simd performance
Read the article

Archive

All Posts

2026 13 min

Hand-rolling BitNet b1.58 in Rust: from autograd to tensor cores

I wanted to genuinely understand BitNet b1.58 - ternary weights with INT8 activations, trained through a straight-through estimator. So I wrote it from scratch in Rust with no third-party ML dependencies. Then I tried to make it run on Ada tensor cores. Then I found out the GPU was slower than the CPU at my batch size, and learnt why.

rust machine-learning cuda simd performance
2026 11 min

An MCP pentest server with a 6-layer safety architecture

Raven Nest's role and safety. 22 security tools including Metasploit, 46 MCP endpoints, a context budget tracker that keeps local models from drowning in context, plus an exploit confirmation gate which took two iterations to get right.

rust security mcp ai pentesting automation
2026 12 min

Hardening a portfolio site: contact form, PGP-encrypted email, and a real pentest

I built my own portfolio in Rust because I wanted to demonstrate the security work I care about, not just talk about it. This is what that meant in practice: JWT plus Argon2id, 12 security headers, PGP-encrypted contact form notifications, no third-party email relay, and a 0-Critical / 0-High pentest result. Plus the bits I had to accept I couldn't fix.

rust security owasp actix-web self-hosting

Want to Know More?

Check out my projects or get in touch to discuss ideas.