A C++ Trick Question
Let’s jump right in; the answer and explanation are hidden after the code. Assuming all allocations succeed, can the following function still crash? Why? 1#include <memory> 2 3struct Node { 4 …
Read article
category
5 posts
Let’s jump right in; the answer and explanation are hidden after the code. Assuming all allocations succeed, can the following function still crash? Why? 1#include <memory> 2 3struct Node { 4 …
Read articleWhile Inkscape is a great vector editor, its startup performance on Windows is terrible, often taking 5 seconds or more to open an empty window on my computer. Investigating the application startup seemed like …
Read articleI enjoy participating in the Advent of Code event every December, which is digital advent calendar challenging you with a two-part programming puzzle every day. In 2019 I aimed for the global leaderboard and …
Read articleI want to work on an assignment for university, that requires LLVM and makes use of their integrated tester (llvm-lit). llvm-lit is written in Python. I have some version of Python 3 installed, so I try to run …
Read articleA few years ago I stumbled upon my first hard bug. I was working on my custom C++ 2D game engine and had just added the ability to render to an off-screen image. But it was not working well and most of the time …
Read article