Posts
Kevin Hartman
Cancel

Scala to native code with GraalVM and GitHub Actions

If you’ve ever wanted to write a fancy new console app in Scala, but found yourself torn between engaging your innate desire to write functionally beautiful code, and the perversion of handing your...

Passing String Literals as Template Parameters in C++20

In a recent post, I described a C++20 feature that allows class literals to be used as non-type template parameters. The original feature proposal mentions how this could enable constant expression...

Literal Classes as Non-type Template Parameters in C++20

With the introduction of C++20, it’s now possible to provide a literal class type (i.e. constexpr class) instance as a template parameter. As a refresher, a non-type template parameter is a tem...

Encoding MIPS Instructions with C++17

I recently started writing an assembler from scratch using C++17 for a somewhat obscure operating system. The assembler’s design supports multiple target architectures, but for now, I only need to ...