WRITING & NOTES

Things I’ve learned by
trying them myself.

Notes about systems programming, C++ experiments, and mathematical ideas that are enjoyable to understand.

SYSTEMS / C++
timer
→
queue
→
dispatcher
→
workers

One Alarm Clock, Many Jobs

The complete walkthrough of my C++ timer dispatcher, including Unix signals, self-pipes, deadlines, worker pools and correctness concerns.

Read the full article ↗
MATHEMATICS / INTUITION
0 + 1 + 0 + 1

Four Consecutive Squares

Why a simple remainder modulo four rules out every nontrivial perfect power. An intuition-first adaptation of a question from Quora.

Read the insight ↗
MATHEMATICS / SHORT NOTE
n² ≡ 1

Why Odd Squares Behave So Predictably

A short explanation of how the parity of consecutive numbers gives a useful test for impossible squares.

Read the note ↗
MATHEMATICS / NUMBER THEORY
2n = k(2a+k−1)

The Hidden Factorization Behind Consecutive Sums

A curious problem about distinct residues turns into a question about triangular numbers, odd divisors and why powers of two behave differently.

Explore the idea ↗