Author Archives: pimiddy

Order of parameter evaluation, some pitfalls

Introduction In the C++ world, it’s a good idea to create multiple build configurations for your projects to try out different compilers. Especially when your project is open-source, you never know which compiler (version) people will use in the build … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

Pure functions in C/C++

Introduction Functions that only depend on their parameters and not on any global state are usually called pure functions. An example of a non-pure function is this: This function is a corner case. It doesn’t depend on the parameters at … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 6 Comments

Assigning OpenCL parameters by name

In this article, I’ll explain to you a few ways of implementing “smart” parameter assignment to OpenCL kernels. I’ll not explain in detail what OpenCL is, just enough to give you the problem context. OpenCL is a framework for implementing … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Some main facts

Introduction Every C or C++ programmer knows about the main function. It’s probably the first function every programmer sees. Usually, main is introduced in the following form: The main function is the application’s “designated start”, meaning that’s basically where the … Continue reading

Posted in Uncategorized | 12 Comments

chrono and sge timers

Abstract This (relatively short) article will explain to you the concepts of chrono, the “time library” of the latest C++ standard. It will also explain how timers in sge work. Motivation chrono is defined in the latest standard, but until … Continue reading

Posted in Uncategorized | Leave a comment

Managing configuration stuff with json – a complete solution?

In this article, I’m assuming you know what the json file format is (and, of course, have some knowledge of the C++ programming language). Motivation Most applications don’t run out of the box. They need to be configured, first. Think … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Game development in sge/C++: Part IV (statechart)

Introduction Welcome back to the fourth “episode” of our journey to create a top down shooter game. Note that there were some minor changes to sge and I’ve updated the repository and the blog code. It’s nothing really noteworthy for … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment