The sine wave is just a test to make sure the sound is working, so we don't care at all about pre…
Casey Muratori  — 3 years, 10 months

We will actually be covering this topic in the stream. There are a number of things you can do t…

Thanks! I searched around but didn't find anything mentioning that intrinsic. I added an edit to …

On every frame, the variable tSine is incremented. After a while, won't we have issues with preci…

[hide]it really is amazing.[/hide]

const's at file scope have external linkage by default in C99 In C++ they have internal linkage!…

I'd like a half stack of bananacakes, please!

I definitely second "K&R" for learning <i>The C Programming Language</i>. Tour of…

Thanks for the replies. I tried the commands from the first the stackOverflow link: 1 2netsh wi…

use const for everything. variables are overrated.

Hi! You can see examples of the first Platform API shown by Casey in SDL and cocos2dx code. SDL…

Bob Nystrom wrote a series of articles at http://gameprogrammingpatterns.com/ about some ways to …
Stefan Koch  — 3 years, 10 months

My Quick tip would be : use mingw.

Thanks for your excellent responses I will check out those texts. What I was having some problem…
Bert Proesmans  — 3 years, 10 months

Hello I have a question about distributing C programs: What is the best way to guarantee that a …

I think it's a great thing you are dooing. Thumbs up!

May the variable be with you.

Handmade Penguin is a tutorial for porting Handmade Hero to Linux using the SDL library. I thoug…

Yes, __rdtsc() is available for gcc. You just need to do #include <x86intrin.h>

sizeof('a') is 4 in C, but 1 in C++
Casey Muratori  — 3 years, 10 months

The game, like the series, is also called Handmade Hero :) And yes, this is a forum for talking …

That doesn't sound like something you should have to do. I don't use GCC anymore, but on LLVM yo…

Although I'm not a spec wrangler myself, my understanding is there are definitely a number of the…

As a sidenote, compilers like LLVM also allow you do to this - if you use an enum for the switch,…

My understanding was that the C++ Committee is still hotly debating whether or not variables are …

I heard there will be The Variable in C++17 is it true?

Oh no no no, my friend. Javascript has variables, if you want them to be variables. You can eve…

Totally tangentially, one of the features that I enjoy in D (the programming language) is "final …

I'll be honest, I knew that this topic was going to be excellent from the title, but I didn't exp…

Very interesting article. Goes to show that you should never just assume that your mental model o…