2024 • Creator

Rust: Speedemon & Bust the Ghost

Two reasons to fight the borrow checker.

32KB

of Rust

WASM

in the browser

Overview

Two side projects that exist because Rust is the language I reach for when I want the compiler to catch me. Speedemon is a parallel file downloader. Bust the Ghost is a probabilistic grid game compiled to WebAssembly.

The Problem

Rate-limited servers throttle per connection, not per file, so a single-threaded download leaves bandwidth unused. Separately, I wanted to see how a Bayesian search felt to play rather than to read about.

Tech Stack

RustLeptosWebAssembly

The Approach

1

Speedemon: split the file, not the patience

Ranged requests across a configurable thread count, so a server that throttles one connection still hands over the whole file at speed. `--threads`, `--retries`, and `--timeout` are all flags because the right values depend entirely on which server is being stubborn.

2

Bust the Ghost: belief as a game mechanic

A grid hides a ghost. Every probe returns a color that is a noisy function of distance, and the board updates a posterior over every cell using the conditional probabilities behind that color. Written in Rust on Leptos and compiled to WASM, so the whole inference loop runs in the browser.

Role

Creator

Year

2024

Stack

3 technologies