Author Archives: admin

When optimizations make the code worse, aka GCC and Clang are fucking retarded.

Both GCC and Clang are obsessed with constant / value range propagation. Unfortunately they are far too stupid to actually apply such optimizations appropriately. A common pattern that both compilers completely fuck up is testing a pointer for NULL and … Continue reading

Posted in Uncategorized | Leave a comment

Whoever you are, I cast a thousand curses upon you

Once upon a time one could use WM_TIMER to execute an arbitrary callback in the gui thread. Then some fucking asshole decided that it was unacceptable, and implemented a the cursed function known as ValidateTimerCallback. Now only callbacks that came … Continue reading

Posted in Uncategorized | Leave a comment

Another reason why Microsoft is completely brain-dead

So recently I have updated my programming tools, I am now using Clang with the Universal windows C runtime, this new runtime improves standards compliance, and was a clean break from the mistakes of the past. Or so I thought. … Continue reading

Posted in Uncategorized | 1 Comment

On why the engineers at Intel deserve their eyes clawed out.

So I was recently inspecting some compiled assembly when I was confronted with this. lea r10, [r9+rdx] add r10, 20 Now in that instant I was thinking to myself, what the fuck is this retarded compiler doing, this should be … Continue reading

Posted in Uncategorized | Leave a comment

amd64: the biggest disaster in computing history

So recently I have been moving towards switching all my development to 64bits. And I am of increasing opinion that amd64 is an absolute disaster. The rex prefix and passing arguments in registers has completely ruined the code density. This … Continue reading

Posted in Uncategorized | Leave a comment

I just learned something about batch files, and it shocked me.

It turns out the move command in batch always overwrites the destination by default, how fuck have I been using windows for 20 years without ever discovering this? I have written so many batch files over the years, how could … Continue reading

Posted in Uncategorized | 1 Comment

Windows 7 is such a piece of shit, part 3

The permissions UI is so profoundly awful, for some retarded reason they decided that it would be read only by default and to actually edit the permissions you have to click edit, which brings up a second identical dialog to … Continue reading

Posted in Uncategorized | 1 Comment

Windows 7 is such a piece of shit, part 2

So I just found out that windows 7 does not support the MPU-401 midi port. What fucking retarded bullshit is this. I have a fucking song I composed sitting in the memory of my fucking keyboard and now I learn … Continue reading

Posted in Uncategorized | Leave a comment

Windows 7 is such a piece of shit, part 1

So I have been using windows 7 at the moment after destroying my good computer. My god this thing is such an absolute piece of shit. One particularly bad part is the file search functionality. It is almost useless, absolute … Continue reading

Posted in Uncategorized | Leave a comment

C’s biggest mistake

Now C has taken much criticism over the years, and justly so, it has many faults. But there is one problem with the C standard which I think is far worse than all others, it has caused decades of pain … Continue reading

Posted in Uncategorized | Leave a comment