A little over a year ago my family moved to a house near the north edge of Salt Lake City. Although access to real mountains is not great — it’s about a three-hour walk to the nearest 8000′ peak and a major slog to a 9000′ peak — the foothill access is excellent. At the… Continue reading 50 Vertical Miles
The volatile qualifier in C/C++ is a little bit like the C preprocessor: an ugly, blunt tool that is easy to misuse but that — in a very narrow set of circumstances — gets the job done. This article will first briefly explain volatile and its history and then, through a series of examples about… Continue reading Nine ways to break your systems code using volatile
It’s common for a computer program to display behavior seemingly unrelated to its source code. Additionally, programs written in C/C++ frequently change their behavior when the compiler optimization options are changed. This post is a quick guide to figuring out if the compiler is at fault. This post was motivated by a blog post by… Continue reading Is That a Compiler Bug?
Today I visited Utah’s TRIGA: a nuclear reactor located in the building where I’ve had an office for about nine years. I’ve had a low-grade fascination with these devices since reading about them many years ago in one of Freeman Dyson’s books. Unlike powerplant reactors, which rely on elaborate safety systems, the TRIGA series is… Continue reading TRIGA