Blog

Thoughts on security, Rust development, and software engineering

Featured

rust machine-learning cuda simd performance 13 min read

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.

Read full article

All Posts

rust machine-learning cuda simd performance 13 min read

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.

Read full article
rust security owasp actix-web self-hosting 12 min read

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.

Read full article

Want to Know More?

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