Skip to main content
Hanchen Liu
Home Research Blog Game Contact

Notes & writing

Blog

Technical notes on scientific computing, performance engineering, and the systems ideas behind research software.

New Algorithms / DFS

DFS — State, Dependency & Information Flow

October 24, 2026 • Algorithm Notes

A state-space view of recursion: context, returned results, DAG pull and push, and sufficient state design.

Read the note

// state transitions

s→t

Context ↓ · Result ↑

Longest Increasing Subsequence, through a greedy lens.

October 17, 2026 • Algorithm Notes

Why patience sorting works: a simple journey from Pareto dominance and state pruning to an O(n log n) binary-search algorithm.

Read the note

CUDA Fundamentals For Systems Interviews

June 1, 2026 • Interview Review

A compact review of host/device code, grids, blocks, warps, memory hierarchy, synchronization, and CUDA compilation.

Read article

GPU Performance Primitives: Tiling, Scan, Reduction, Roofline

June 1, 2026 • Interview Review

Review notes for explaining GPU kernels through thread mapping, memory access, synchronization, and bottleneck hypotheses.

Read article

Lock-Free MPMC Queues And Hazard Pointers

June 1, 2026 • Interview Review

A walkthrough of Michael-Scott queues, CAS linearization points, memory ordering, ABA, and hazard-pointer reclamation.

Read article

C++20 jthread Pool: Futures, Wakeups, And Shutdown

June 1, 2026 • Interview Review

The thread-pool layer around a queue: packaged tasks, futures, stop tokens, condition variables, graceful shutdown, and lifecycle locks.

Read article

Performance Engineering Lessons From GF(2) Linear Algebra And CTMC

June 1, 2026 • Interview Review

How bit-packing, M4RI-style table methods, layout experiments, and Fenwick-tree CTMC checks fit into one engineering loop.

Read article

Autograd For Systems Interviews

June 1, 2026 • Interview Review

A systems-oriented refresher on reverse-mode autodiff, micrograd-style scalar graphs, PyTorch vocabulary, and GPU placement.

Read article
© Hanchen Liu
GitHub ↗ visitor counter