Category Archives: Uncategorized

A great introduction to Rust

Rust is a modern program language designed for system programming. Just like C++ it aims to provide powerful abstractions at zero cost. In addition it also offers a type system that protects the programmer from hitting some very common concurrency … Continue reading

Posted in Uncategorized | Leave a comment

Running applications on iOS 10.3 devices using El Capitan

If you are using an old Mac like I do (Macbook Pro mid-2009), then you might also be stuck with macOS El Capitan and you can’t upgrade to macOS Sierra. Sure it feels sad to be left behind, but it … Continue reading

Posted in Uncategorized | Leave a comment

Pongiliner is available on Google Play and App Store

My very simple game Pongiliner has finally been released on Google Play https://play.google.com/store/apps/details?id=com.rumberg.pongiliner&hl=en and App Store https://appsto.re/se/ILVnfb.i The game itself is very simple and I wrote it mainly to learn OpenGL ES 3.0 and some of the new features in … Continue reading

Posted in Uncategorized | Leave a comment

Backup with attic

For the last couple of years my backup system of choice has been Bup (https://github.com/bup/bup). It is based on git and handles incremental backups and deduplication by writing small chunks of checksummed data as git packfiles. In the beginning it … Continue reading

Posted in Uncategorized | Leave a comment

Android local module based on custom target

Android has makefile macros for creating local modules  written in C, C++ and Java. A module declaration can look something like this. LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := mymodule LOCAL_SRC_FILES := a.cpp b.cpp LOCAL_LDLIBS := -lGLESv3 -llog LOCAL_CXXFLAGS := -std=c++14 … Continue reading

Posted in Uncategorized | Leave a comment

ValWrapper – a named value wrapper in C++

I recently found myself writing a C++ class where the constructor needed three arguments of type “int”. The arguments where not related so I could not pass them as a color, point3d or something similar. The class looked like this struct AnimationConfig … Continue reading

Posted in Uncategorized | Leave a comment

Using multiple interfaces in C

In my previous post I described one way of implementing interfaces and classes in C. Some of my readers may wonder why I added the baseptr member. Why do static int dog_getage(Animal super) { Dog self = (Dog) super->baseptr; return self->age; … Continue reading

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