
The amortized cost of vector insert is 3
The amortized cost of vector insert is 3 C++ requires many algorithms to be implemented in amortized constant time. I was curious about what this
The amortized cost of vector insert is 3 C++ requires many algorithms to be implemented in amortized constant time. I was curious about what this
A staple of compact code, the ternary operator ?: feels like it’s earned a place any programming language. I use it often; you should use
Variants are data types that can store different types of values in them, as opposed to one fixed type. In contrast to a generic object
I needed a way to embed a text file in my C++ code. I recently introduced Leaf code into the Leaf compiler and didn’t want
I recently ported Leaf from Linux to OSX. I figured it was about time to start making it cross-platform. The goal is to get it
In my previous article the mess of virtual functions, I show how easily they introduce bugs and propose language extensions to fix it. Several comments
Virtual functions, though generally a blessing, have a defect-prone dark side. No language, that I know of, provides a way to encode when the base
“Reference counting is slower than garbage collection”, a claim often made in the discussion of memory management. I heard it again recently when discussing Leaf;
Every day millions of programmers require the length of a string. Despite this there is no universal definition of what string.length actually represents. It changes
“Exceptions are bad because they introduce non-local flow into a program.” It’s an argument I’ve seen often and it even came up in the comments
Signup to my mailing list to get notified of each article I publish.
Made with Elementor. Hosted with SiteGround. Domain from Netim.