c

post modern C tooling – draft 5

(tags: tools programming C)

‘My ties to England have loosened’: John le Carré on Britain, Boris and Brexit | Books | The Guardian
“At 87, le Carré is publishing his 25th novel. He talks to John Banville about our ‘dismal statesmanship’ and what he learned from his time as a spy”
(tags: spies intelligence MI5 MI6 le-carre politics)
The New Zealand Shootings: The Untold Stories | GQ
A moving account of the shootings and their aftermath. Via Metafilter.
(tags: shooting terrorism racism new-zealand)
How Derren Brown Remade Mind Reading for Skeptics | The New Yorker
Introducing Derren Brown to the Americans. Via Mefi.
(tags: magic derren-brown mentalism)
WSJ, WaPo, NYT Spread False Internet Law Claims | Cato @ Liberty
Rebutting nonsense about the supposed publisher/platform distinction in Section 230 of the US’s Communications Decency Act. From the Cato Institute, so can’t be dismissed as leftist propaganda.
(tags: law censorship internet)

Type punning isn’t funny: Using pointers to recast in C is bad.
A common C programming technique (casting between pointers to structures) leads to problems when strict aliasing is turned on (as it is if you set -O2 -O3 in gcc).
(tags: C programming casting punning)
Type Punning, Strict Aliasing, and Optimization – Embedded in Academia
More on the type punning/aliasing business.
(tags: C punning aliasing programming)

Bit Twiddling Hacks
A collection of code snippets for doing useful things (sign extension, determine whether a number is a power of two, and so on).
(tags: bit-twiddling programming algorithms c hacks twiddling)
Anti-Brexit traitors outed on twitter
UKIP voters in “shit thick” shocker. Also features Louise Mensch.
(tags: twitter ukip funny brexit satire)
Horse! | Start here: See horse, Say Horse! – The Rules of Horse!
Horse!
(tags: funny game horse)

cmocka – unit testing framework for C
Nifty unit test framework which does the checking arguments and providing return values from stub/mocked functions which I tend to spend a bit of time re-creating each time I write a test.
(tags: test development programming testing unit-test C)
What cohabiting couples can to do put their financial house in order | Money | The Guardian
(tags: cohabitation finances will legal law money)

Implementing non-recursive make
Recursive makes are considered harmful. Here’s a recipe for a non-recursive one where you can still put project files in subdirectories.
(tags: make programming nonrecursive makefiles build software)
Embedded in Academia : Proposal for a Friendly Dialect of C
John Regehr and friends note that C compilers aggressive optimising around use of constructs the spec says are “undefined” can lead to unexpected behaviour. They propose a friendly C dialect where compilers would produce unspecified values in response to use of these constructs, but would not feel free to make demons fly out of your nose.
(tags: C programming language software-engineering)
The Left must reject the relativism at the heart of the Rotherham scandal | Left Foot Forward
This, from Al Razi of Ex-Muslim Forum, seems a sensible response, although as the worlds only impartial observer, I’d say that both the class of the victims and the race of both victims and perpetrators contributed to the horrors being ignored for so long. The Guardian will only talk about the former and the Telegraph about the latter, I suspect.
(tags: rotherham abuse religion islam news multiculturalism)