Archive


Category: Uncategorized

  • First impressions on Rust

    I really like the expressiveness of the language. I’m writing code to read GF files from Metafont right now and there’s the Knuthian 1–4 byte parameter reading. This ends up being rather elegant in Rust, particularly the 3-byte version: pub fn read3<R: Read>(input: &mut R) -> io::Result<i32> { let mut buf = [0u8; 4]; input.read(&mut […]

  • Stupid Mac tricks

    I recently switched from Dropbox to sync for my synchronized cloud folder needs. Along the way, I moved all the files that were in ~/Dropbox to ~/Sync  I had a terminal window open with a shell cd’d to ~/DropBox/PreppyLion for the book I’m working on. I expected to get an error about that directory being in use and I couldn’t move […]

  • Page references

    I’ve been thinking about page references lately and how they translate to non-print presentations. At the moment, I’m reading The Rust Programming Language by Steve Klabnik and Carol Nichols and I noticed that there was a page reference when they wrote: We’ll discuss this concept in detail in “Variables and Mutability” on page 32. This, in […]