What Every C Programmer Should Know About Undefined Behavior #1/3
People occasionally ask why LLVM-compiled code sometimes generates SIGTRAP signals when the optimizer is turned on. After digging in, they find that Clang generated a "ud2" instruction (assuming X86 code) - the same as is generated by __builtin_trap().
Liquefaction from the Sendai earthquake – a remarkable video
By Dave Petley
Greedy Register Allocation in LLVM 3.0
LLVM has two new register allocators: Basic and Greedy. When LLVM 3.0 is released, the default optimizing register allocator will no longer be linear scan, but the new greedy register allocator.
Complex numbers have never been so intuitive to me
Imaginary numbers always confused me. Like understanding e, most explanations fell into one of two categories: Gee, what a great way to encourage math in…
Why is it so hard to be a good domain registrar?
I recently moved all of my domains away from GoDaddy, because they’re terrible. 1
CNN, NYTimes, Mashable all vulnerable to XSS
Pretending innocence, I ask why all these high profile websites have their homepages covered in spinning images? CNN (screenshot) The New York Times (screenshot) Mashable (screenshot) Fox News (screenshot) Okay, obviously enough, I’m messing with them. But how can I do that? The answer is cross site scripting (“XSS”)…
You Can’t Make Money Charging $1 Per Month
Photo by Images of Money I recently received the following question from a reader: When we spoke at a recent conference] I had been thinking of a $1/month price point [for my product aimed at teachers] to make it a “no-brainer,” and you strongly advised against it, suggesting $5-7 at a mini
Full Instapaper API now available
The full Instapaper API is now available for developers. See the Full API documentation to get started.
Treatise on Font Rasterisation
Font rasterisation is, in the author’s opinion, one of the most interesting fields of computer science. If music is the subjective application of physics, then font rasterisation is almost certainly the subjective application of computer science. The purpose of this article is threefold: firstly, to provide an…
IOS RAGE rendered with WebGL
As promised, here's the new WebGL demo that I've been working on! I won't be posting a live version this time (watch the video to find out w...
A hacker's guide to college
In most professions, a college degree is a prerequisite for a job, even if doing the job doesn’t strictly require one. Your degree is used as a proxy to figure out whether you’re qualified because there is no better measure: “Oh, he went to a good school, he must be smart. Let’s bring him in for an interview.”