RSSAmplifier

Blog

Constants Matter

Recent content on Constants Matter

constantsmatter.comRSS feed ↗8 posts

Latest posts

How Virtual Addressing Works

Operating systems manage many physical resources and provide nice software APIs on top of them so that you and I can easily write code. One of those resources is RAM. Physical RAM itself is fragmented and limited and therefore hard to manage. For example, not all physical RAM addresses are available for use (some map hardware devices, while others are reserved for the processor). Operating systems…

Generic Data Structures in C

In C, writing generic data structures is hard. There are no templates, generics, or overloaded functions built in to the language, so the programmer needs to get creative. In this post, we will explore 3 ways to write a generic vector in C: using void*, dynamically storing size, and using macros. We will implement append and get, and set. Using Void* In C, void* is a generic pointer type –…

Practical Command Line

If you are a programmer, you have certainly interacted with a command line. But most programmers just treat the command line as a way to run programs, rather than learning its true capabilities. That was basically me until I invested time to better understand the command line and linux tools. In this post I will explore some easy ways to level up your command line fu. I personally use Bash, so…

Readings

Below I will list books, papers, blogs, etc that I’ve liked reading. Enjoy! A Single Monitor Manifesto by Cory House Reflections on Trusting Trust by Ken Thompson The History of Vim

How To Subscribe

Enjoying the content? Want to be notified when there is new content? Below are the ways to subscribe to new posts: RSS Feed Twitter Feed – Tweets out new posts Email - Coming soon. If this is an option you want, email me and I’ll add it if enough people request it.

Learning Modern C++

C++ is an incredibly powerful systems language, designed to write good abstractions with no overhead. It is one of my favorite languages to program in because it feels like a high level language while at the same time allowing the programer to think about the underlying system. However, it is a very large language and can therefore be overwhelming to learn. As Bjarne Stroustrup, one of the…

C++ Benchmarks: Container Lookups

UPDATE: An erroneous version of this post was published which used the wrong code to generate the results. While the data itself was accurate, the conclusions were misleading because of how they were presented in the post. This post has now been updated with the correct data and results. Huge thank you to @ForrestTheWoods for catching this. If you write code, you have probably used a set before…

Hello World

Welcome to Constants Matter, a tech blog primarily focused around infrastructure, (distributed) systems, and performance. The main goal of this blog is for me to share musings and insights about software. Hopefully the content teaches you something or sparks your curiosity. Any opinions, code snippets, content, and insights presented in this blog are my own and not my employer’s. Code…