• Bouncing blocks gives you Pi

    The YouTube channel 3Blue1Brown recently uploaded a video where they give the following situation: we have two sliding blocks and a wall on the left. The first block starts out motionless, and the second block comes in sliding from the right.

    Read more
  • A rusty Advent of Code 2018

    Like any year since 2015, when December rolled around my productivity plummeted. It’s time to waste all my hours perfecting a program solving a problem that no one needs solved. Hello Advent of Code 2018. If you haven’t read my previous posts and haven’t heard of Advent of Code before, consider checking them out first. If you just want to see the actual code, you can find it on Github.

    Read more
  • Advent of Code - Polyglot Edition

    Two years ago, Eric Wastl announced his Advent of Code: an advent calendar with a different programming challenge every day. During the event, you helped Santa power his snow machine by completing the two tasks for that day.

    Read more
  • Memory-safe linked lists

    Everyone who worked with C++ for longer than twelve seconds has noticed that keeping track of pointers is somehwat complicated. You have all kinds of wonderful new problems that you never knew you could have in other languages:

    • Null-pointer dereferencing
    • Use-after free
    • Memory leaks
    Read more
  • Cleaning up the home dir

    If you’ve ever done something like ls -la ~, then you must have noticed that your home directory is a mess of hidden files. This annoys the inner perfectionist in me, as I never have more than a few files in any folder. Everything is a nice tree structure.

    Read more

subscribe via RSS