How to Use PGO and LTO With Meson and Clang

A tested walkthrough for enabling Profile Guided Optimization and Link Time Optimization in a Meson project built with Clang, including the llvm-profdata merge step most guides forget.

4 min

Part 2: Profiling, PGO & LTO

Measuring PGO and LTO on a C++ SPH simulation with perf and flamegraphs, and why they barely helped.

7 min

FreeBSDs IDs

A dive into FreeBSD's UID/GID/SVUID behaviour

6 min

Linear Programming at the Gym

I’m lazy. Not lazy enough to not exercise, but lazy enough to want my gym programs to make themselves. Coincidentally, I’ve started reading “Linear Algebra and its applications”, and one section caught my attention: How to apply linear algebra to real world problems. As it turns out, there are lots of ways to optimize processes around you if you know how to convert your real-life problem, into a mathematical model.

11 min