C++, where initializing variables is the topic of debate, by experts.

Let me first say: I did not come up with the title myself, but have to credit it to cpplang @ slack.com. Unfortunately I forgot who actually said it. So what is so interesting about initializing a variable you might ask? Lets take a simple struct: struct Foo { int x; int y; }; And Read more about C++, where initializing variables is the topic of debate, by experts.[…]

Posted in C++

Introducing mt_shared_ptr<>, a shared pointer for multi-threaded use

Disclaimer: this is a work-in-progress, is bound to contain some mistakes and the code was only briefly tested. Use at you own discretion. In a previous blog post called ‘std::shared_ptr<> broken?‘ I talked about the problems of using a std::shared_ptr<> from more then one thread at the same time. There I mentioned the reading/writing to Read more about Introducing mt_shared_ptr<>, a shared pointer for multi-threaded use[…]

Posted in C++

C++ Weekly

Just watched the first episode of Jason Turner‘s C++ Weekly, very nice, I can get addicted to that 🙂 I never considered the complexities that a header-only library could introduce (such as having no good place to initialize static variables 🙂

Posted in C++

Executors 101

Executors So what are executors? Executors sit between tasks and their execution-context, the way iterators sit between collections and algorithms. Executors could potentially do many things, to name some: parallelize tasks (over multiple cores for example) distribute tasks (over multiple machines or to gpu’s for example) sequentialize tasks (stitch tasks together over time) prioritize tasks Read more about Executors 101[…]

Posted in C++

x86-to-z80 progress

This is a post on the initial work on the x86-to-z80 translator (or re-assembler as some prefer to call it). The work is currently suspended pending an investigation into creating an actual clang back-end. Here is a link to the original content.

Posted in C++