Skip to content

Instantly share code, notes, and snippets.

View MangaD's full-sized avatar
📚
studying

David Gonçalves MangaD

📚
studying
View GitHub Profile
@MangaD
MangaD / cpp_sanitizers.md
Last active April 10, 2026 21:07
The Complete C/C++ Sanitizers Handbook

The Complete C/C++ Sanitizers Handbook

CC0

Disclaimer: ChatGPT generated document.

Below is the guide I would want if I were onboarding a senior C++ engineer to sanitizers and wanted both practical depth and architectural understanding.

1. What sanitizers are

@MangaD
MangaD / callgrind.md
Created April 9, 2026 16:41
Callgrind for C++ Engineers: The Exhaustive Guide

Callgrind for C++ Engineers: The Exhaustive Guide

CC0

Disclaimer: ChatGPT generated document.

Callgrind is Valgrind’s call-graph profiling tool. Officially, it records the call history among functions as a call graph and, by default, collects the number of instructions executed, their mapping to source lines, caller/callee relationships, and call counts. It can also optionally simulate cache and branch prediction behavior, similar to Cachegrind. (valgrind.org)

For a C++ engineer, the most important way to think about Callgrind is this:

@MangaD
MangaD / cpp_debuggers_compared.md
Last active April 1, 2026 17:31
🧠 A Deep Dive into Debuggers: Names, Philosophy, and Design Trade-offs

🧠 A Deep Dive into Debuggers: Names, Philosophy, and Design Trade-offs

CC0

Disclaimer: ChatGPT generated document.

Modern systems programming—especially in C and C++—relies heavily on powerful debugging and profiling tools. Names like gdb, lldb, perf, valgrind, and rr come up constantly, but they represent very different philosophies and approaches to understanding program behavior.

This article gives you a complete, structured overview:

@MangaD
MangaD / x11_vs_wayland.md
Last active April 1, 2026 17:17
X11 vs Wayland — A Deep, Complete Guide

🖥️ X11 vs Wayland — A Deep, Complete Guide

CC0

Disclaimer: ChatGPT generated document.


🧠 1. What Are X11 and Wayland?

@MangaD
MangaD / rr_debugger.md
Last active April 1, 2026 16:52
rr Debugger — The Complete, In-Depth Guide for C++ Engineers (Record, Replay, and Reverse Debugging Mastery)

rr Debugger — The Complete, In-Depth Guide for C++ Engineers (Record, Replay, and Reverse Debugging Mastery)

CC0

Disclaimer: ChatGPT generated document.

Here’s the most complete practical guide I can give you about rr as a C++ engineer.

What rr is

@MangaD
MangaD / valgrind.md
Last active April 13, 2026 18:39
Valgrind for C++ Engineers: The Complete Deep-Dive into Memory Analysis, Debugging, and Runtime Instrumentation

Valgrind for C++ Engineers: The Complete Deep-Dive into Memory Analysis, Debugging, and Runtime Instrumentation

CC0

Disclaimer: ChatGPT generated document.

Valgrind is a dynamic binary instrumentation framework and tool suite. In practice, that means it runs your compiled program on a synthetic CPU, intercepts memory allocation and threading primitives, and attaches tool-specific analyses to every relevant instruction. The current official release is 3.26.0 dated 24 October 2025. The Valgrind distribution includes Memcheck, Cachegrind, Callgrind, Massif, Helgrind, DRD, DHAT, plus some other and experimental tools. ([valgrind.org][1])

For a C++ engineer, the one-sentence summary is: **Valgrind is still one of the best “truth serum” tools for native code correctness and low-level runtime inspection, especially for heap misuse, leaks, uninitialized-value flow, allocator mismatches, and ce

@MangaD
MangaD / cs101_meaning.md
Created March 24, 2026 17:34
From CS101 to Expertise: The Hidden Structure of Computer Science Education

From CS101 to Expertise: The Hidden Structure of Computer Science Education

CC0

Disclaimer: ChatGPT generated document.

If you’ve ever seen names like CS101, CS102, or CS301, you’ve already encountered a quiet but powerful system that shapes how knowledge is taught in modern universities.

At first glance, these look like arbitrary course codes. In reality, they encode an entire philosophy of learning — one that spans centuries of academic history and defines how computer science (and most disciplines) are taught today.

@MangaD
MangaD / top_cs_universities.md
Created March 24, 2026 16:44
🌍 The World’s Most Famous Universities for Computer Science — A Comprehensive Global Guide

🌍 The World’s Most Famous Universities for Computer Science — A Comprehensive Global Guide

CC0

Disclaimer: ChatGPT generated document.

Here is a comprehensive, structured list of the most famous (globally recognized) universities for Computer Science, based on consistent appearances across major rankings like QS, Times Higher Education (THE), and Research.com.

I’ve grouped them by tier and region, and included clear descriptions of what each is famous for in CS — not just rankings.

@MangaD
MangaD / cgroups.md
Last active March 22, 2026 10:27
What Are **cgroups** (Control Groups)?

What Are cgroups (Control Groups)?

CC0

Disclaimer: ChatGPT generated document.

cgroups — short for control groups — are a Linux kernel feature that lets you limit, prioritize, account for, and isolate resource usage (CPU, memory, I/O, etc.) of processes.

They are one of the core building blocks of modern container systems like Docker and Kubernetes.

@MangaD
MangaD / systemd.md
Created February 27, 2026 13:48
systemd — Everything You Need to Know

systemd — Everything You Need to Know

CC0

Disclaimer: ChatGPT generated document.

systemd is the dominant init system and service manager on modern Linux distributions. It is much more than “just PID 1” — it is a full userspace platform that manages:

  • Boot process