Programing like NASA, the Power of Ten

Posted on Fri 21 February 2025 in tech • Tagged with programming, C++, rust

Should you program like NASA?

Programming is a discipline that requires both speed and integrity. The best developers balance rapid iteration with careful checking, ensuring that their code is robust, maintainable, and adaptable over time. That’s where structured coding principles—like those found in the Power of Ten—may …


Continue reading

Compiled switch in modern c++

Posted on Tue 31 January 2023 in tech • Tagged with c++, c++20, programming, tutorial

Compiled Switch

This example demonstrates how to incorporate a compiled switch construct in an event driven application such as a market data handler or parser.

Full tutorial on YouTube:


std::generate in modern c++

Posted on Fri 27 January 2023 in tech • Tagged with c++, std::generate, lambda, tutorial

std::generate

Many examples of std::generate in C++ involve a static. However using a static introduces issues around thread safety and usability in modern code. Here is a simple example using std::generate with a c++14 style lambda that defines and captures a local variable.

Full tutorial on …


Continue reading

M1 Mac: Should you enable efficiency cores in Docker?

Posted on Fri 20 January 2023 in tech • Tagged with docker, rust, c++, go, build, apple

Should you enable your efficiency cores for use by Docker on Apple Silicon?

If you enable the efficiency cores there are 2 additional cores for the system scheduler to allocate to your workload. However, if you leave them disabled, these 2 cores will remain in reserve for use by supportive …


Continue reading

building solc

Posted on Thu 17 November 2022 in tech • Tagged with Ethereum, Solidity, web3, c++, devops

Building Solidity's compiler solc is nothing short of a bear. It is using complex external dependencies like boost with some optional dependencies. Moreover the build depends on specific versions of these packages. This amount of complexity for a compiler is a topic of another post but it does give me …


Continue reading

C++ Functional Programming?

Posted on Wed 27 October 2021 in tech • Tagged with programming, c++, go, python, java

cpp

C++ programmers should explore functional languages. Experience with modern programming idioms can improve ones ability to write modern C++.