3 pages tagged with "rust"
Rust benchmarking with Criterion
July 03, 2024 - 624 words - 4 mins
I was recently looking into benchmarking some Rust code and thought I would write up how to do so with the criterion library. Code for this post is available here at GitHub.
For this toy example we'll be writing code to determine the distance between 2 points. This is relatively easy to do with the …
read more
CHIP-8 emulator in WebAssembly using Rust
January 26, 2020 - 662 words - 4 mins
Lately I have been working on an emulator for the CHIP-8 that can compile to WebAssembly using Rust. The source code is available on GitHub. And you can play a game of pong here.
I've always wanted to write an emulator for an older hardware like the Nintendo Entertainment System or Game Boy Advance…
read more
Ray Tracing with Rust and WebAssembly
January 17, 2020 - 369 words - 2 mins
I have been working through the book The Ray Tracer Challenge: A Test-Driven Guide to Your First 3D Renderer by Jamis Buck. It is a fantastic book, there is almost no code (other than a little bit of pseudocode), instead there is an explanation of how to build a Whitted ray tracer and a large numbe…
read more