Custom Search

Sunday, December 3, 2017

Code speed is overrated

Premature optimization is the root of all evil.
        -- Donald Knuth

I see a lot of arguments about which language or techniques are faster, with some quite heated discussion, and a lot of effort tweaking code to make it faster. As much fun as these may be, they are largely irrelevant to the working programmer.

Thursday, November 2, 2017

Why you should be afraid of the Internet of Things

I first became excited about what eventually became the Internet of Things (aka IoT) back in the early 90s, after I wrote my first web server. I realized it was no more complex than a telnet server, so could easily replace the telnet servers in the few networked devices we had then. So we'd have point and click web configuration for those devices that was friendly and easy to use and that idea was just cool. These days, I'm mostly afraid of it.

Sunday, July 23, 2017

Some ZFS speed tests


I just got my first new desktop in long enough that it's the first one with SSDs. Those were large enough that I had a lot of space for level 2 archive replacement cache (L2ARC) for the spinning data drives. It also had an M2 slot, so I could add a small device as a separate intent log (SLOG), neither of which I had used before. Finally, I'm moving to a new operating system (Ubuntu from FreeBSD), so it seemed like a good time to do some disk benchmarks.

Sunday, June 25, 2017

Introduction to Lifetimes in Rust


A language that doesn't affect the way you think about programming is not worth knowing.
    -- Alan J. Perlis
Rust enhances it's variables with lifetime information, which I believe is unique among languages currently in production. This is the most exciting and best language feature I've encountered since recursion. It makes me think about aspects of a program I wasn't thinking about before and catches heisenbugs at compile time. I hope that explaining that to you will help you catch that excitement.