Transcription of All Of Them Witches

Ira Levin’s 1967 novel Rosemary’s Baby features the fictional book All Of Them Witches, by J.R. Hanslet. Roman Polanski’s 1968 film adaptation shows the book on-screen — a prop with surprisingly well-curated dummy text. I like freeze-framing text from movies, so, here’s my transcription and close reading of All Of Them Witches.

Read More

Mangling dependent parameter types, or, what happened to std::default_order

Consider this icky template code:

template<class T> int f(int) { return 1; }
template int f<int>(int);

template<class T> int f(T) { return 2; }
template int f(int);

int main() {
    return f(0) + f<int>(0);
}

According to GCC, Clang, ICC, and the paper standard, this program is valid C++, and it is supposed to return 3. …

Read More

Confessions of a Justified Sinner

I just finished reading The Private Memoirs and Confessions of a Justified Sinner (James Hogg, 1824). It’s fantastic. Wikipedia describes it as “part Gothic novel, part psychological mystery, part metafiction, part satire, part case study of totalitarian thought” — to which I’d add “part pointedly anti-Calvinist polemic” — and the book is just as complicated and fabulous as you might expect from that description. It’ll also teach you a bit of Scots dialect.

Read More

What is 8÷2(2+2)?

Google’s recommendation algorithm has been trying to get me interested in this clickbait for a while. Most recently via Fox News, but via some other meme aggregator before that. And I remember when “8÷2(2+2)” was spelled “6÷2(1+2)” (2016), and before that “48÷2(9+3)” (2011), and before that… well, there’s nothing new under the sun. This evening my uncle forwarded it to the math majors in the family, so I figured I might as well put my response in a blog post and link to it.

Read More