wasm-pack Build Bug: Use Version 0.9.1
Hit a build error with wasm-pack. Solution: downgrade to 0.9.1. The Problem Running wasm-pack build failed with cryptic errors. Something about missing files or build artifacts. The Cause Kno...
Hit a build error with wasm-pack. Solution: downgrade to 0.9.1. The Problem Running wasm-pack build failed with cryptic errors. Something about missing files or build artifacts. The Cause Kno...
Spent the day figuring out Rust traits. Here’s the mental model that finally clicked for me. The Core Idea Traits define what a type can do, not what it is. trait Printable { fn print(&...
Emacs suddenly started throwing file-missing doing vfork errors on startup. Turned out to be an emacs-sqlite compilation issue. The Problem Emacs GUI wouldn’t start properly, showing error: fil...
Was reading about RSS vs Atom feed formats. Found out RSS 2.0 has a fundamental problem with relative URLs. The Problem with RSS 2.0 From the RSS/Atom comparison: RSS 2.0 does not specify t...
Found an interesting article about Go slice search vs map lookup performance. The TLDR surprised me. The Benchmarks For small collections, linear search through slices is actually faster than m...
Learned that mod.rs files are the old way. Rust 1.30+ has a better convention. The Old Way (Don’t Do This) src/ util/ mod.rs # Old style helper.rs The New Way src/ util.rs...
Debugging Rust macros is painful. Compiler errors point to the macro invocation, not what it generates. cargo-expand fixes that. The Problem #[derive(Debug, Serialize)] struct User { id: u3...
Came across this classic post about computer performance numbers. Really puts things in perspective. The Numbers Here are the key ones (approximate, 2024 hardware): L1 cache reference ...
rust-analyzer wasn’t picking up my Cargo.toml changes. Had to reload manually. The Problem Modified Cargo.toml to add a new dependency. rust-analyzer didn’t notice. LSP features (autocomplete, ...
Spent hours debugging why rustic-format-buffer wasn’t working in Emacs. The error? “Program not found: No such file or directory, cargo” The Problem rustic-format-buffer Error: Program not foun...