All notes

39 entries

AI Notes2 notes

Project Lessons16 notes

ClusterLens Algorithms: Clustering Image Embeddings From First Principles

A beginner-first, experimental tutorial for PCA, KMeans, MiniBatchKMeans, FAISS, HDBSCAN, similarity graphs, outliers, reranking, and cluster quality.

learning-from-projectsclusterlensclustering
72 minReviewed 2 Sept 2026

From Pixels and Words to Semantic Search

A beginner-first tutorial on representations, pixels, features, embeddings, image and text encoders, shared vector spaces, and measured CLIP, SigLIP, and DINO experiments.

learning-from-projectsclusterlenssemantic-search
64 minReviewed 2 Sept 2026

Perceptual Hashing And Duplicate Review

A from-scratch visual tutorial on exact hashes, dHash, pHash, wHash, thresholds, indexing, embedding reranking, ORB, and safe duplicate review.

learning-from-projectsclusterlensperceptual-hashing
25 minReviewed 2 Sept 2026

Face Clustering From Pixels To People

A from-scratch visual tutorial on face detection, landmarks, alignment, embeddings, thresholds, clustering, prototypes, and human review, backed by an actual ClusterLens run.

learning-from-projectsclusterlensface-detection
48 minReviewed 2 Sept 2026

ClusterLens UI Runtime: Virtualized PyQt, Workers, And Generated State

A desktop runtime note on making local ML image tools responsive with PyQt virtualization, lazy thumbnails, worker jobs, generated storage, and safe file actions.

learning-from-projectsclusterlenspyqt
8 minReviewed 26 Aug 2026

Neural Network Tutor: From Replay Lab to Production Debugger

A story-driven visual course that lets every neural-network idea earn its place by solving a visible problem, from one weighted vote through hidden representations, transformers, modern learning phenomena, and production debugging.

learning-from-projectsneural-networksperceptron
3 minReviewed 6 Sept 2026

Email Before AI: MIME, Canonical Text, Multilingual Processing, and Privacy

A beginner-first tutorial following email from MIME bytes through canonical text, language detection, translation, Unicode offsets, PII detection, redaction, and safe model input.

learning-from-projectsthunderbirdemail
11 minReviewed 3 Sept 2026

Email Classification and Personal AI: Rules, Naive Bayes, Transformers, Specialists, and Evaluation

A from-zero visual tutorial building email classification from rules and Naive Bayes through personalization, specialist-model cascades, confidence, local model evaluation, and safe promotion.

learning-from-projectsthunderbirdclassification
33 minReviewed 3 Sept 2026

From Repeated Email to Structured Knowledge: Templates, Extraction, Facts, and Summaries

A from-scratch tutorial following repeated email through template mining, source-linked extraction, symbolic facts, proof trees, and hierarchical summarization.

learning-from-projectsthunderbirdtemplate-mining
11 minReviewed 3 Sept 2026

RAG From Raw Email To Grounded Answers

A from-scratch visual tutorial following one email through tokenization, embeddings, exact and hybrid retrieval, evidence packing, grounded generation, GraphRAG, security, and evaluation.

learning-from-projectsthunderbirdrag
120 minReviewed 2 Sept 2026

Inside ThunderbirdAI: From Raw Email to a Grounded AI Answer

An implementation-level walkthrough of how ThunderbirdAI queues mail, builds canonical local records, indexes evidence, enforces scope, and uses an optional endpoint without treating the model as the mailbox.

learning-from-projectsthunderbirdemail
17 minReviewed 6 Sept 2026

Desktop Local App Lessons

A desktop product note on workers, virtualized PyQt tables, import auditability, parser health, schedulers, dashboards, tray tools, and generated data.

learning-from-projectsdesktop-appspyqt
9 minReviewed 26 Aug 2026

Where a Website Meets Chromium

A process-by-process map of Chromium, the hardened fork's hook points, and how website-visible decisions cross Blink, Content, Chrome, services, and local automation.

learning-from-projectschromiumbrowser-architecture
9 minReviewed 7 Sept 2026

Changing What a Website Can Observe

How Hardened Chromium substitutes visibility, focus, lifecycle, idle, screen, fullscreen, API, and cursor signals—and which secondary signals remain.

learning-from-projectschromiumweb-platform
9 minReviewed 7 Sept 2026

Protecting User Actions and Physical Devices

How the fork protects selection, context menus, keyboard defaults, clipboard, drag data, camera, microphone, location, and display capture.

learning-from-projectschromiuminput-events
8 minReviewed 7 Sept 2026

Website View, Automation Signals, and the Shared Browser

How Website View policy, WebDriver signaling, launch-time switches, and an authenticated broker connect local applications to one visible Chromium instance.

learning-from-projectschromiumbrowser-automation
8 minReviewed 7 Sept 2026

Performance Notes9 notes

inih Optimization: Simpler Scans and Flat Storage

A benchmark-backed note on speeding up inih with bulk string reads, explicit ASCII scan classification, selective AVX2, and flat C++ reader storage.

inihinic
7 minReviewed 26 Aug 2026

zlob Optimization: Faster In-Memory Glob Matching Without More Layers

A benchmark-backed note on widening zlob's suffix fast path, pruning recursive work earlier, reusing outputs, adding count-only APIs, and threading only when the scan is big enough.

zigglobmatching
6 minReviewed 26 Aug 2026

miniz Optimization: Checksums Win Before the Codec Does

A benchmark-backed note on CRC-32, Adler-32, SIMD, prefetching, memcpy, and why codec-level compression gains are harder than checksum wins.

cppcompressionminiz
8 minReviewed 26 Aug 2026

Clean Code Tax, Measured

A benchmark-backed note on when clean-code idioms are free, when compilers erase them, and when abstraction becomes hot-path cost.

cppbenchmarkperformance
13 minReviewed 26 Aug 2026

ClamAV SIMD Fast Paths For Parser-Heavy Scanning

A microbenchmark-backed note on accelerating ClamAV-style parsing work with SIMD string search, whitespace skipping, hash comparison, hardware CRC32, and base64 decoding.

clamavsimdneon
6 minReviewed 26 Aug 2026

Speeding Up pdftotext When You Only Want The Text

A benchmark-backed note on making PDF text extraction faster with cheaper utility output, lighter ordered text ingestion, image-skip logic, page threading, and an unordered direct-text mode.

pdftotextpdfpoppler
8 minReviewed 26 Aug 2026

Cache-SIMD-DSA

A standalone benchmark note for 10 DSA problems, with naive, cache-aware, SIMD, and cache-aware SIMD C++ variants measured from 4 KiB to 64 MiB.

cppbenchmarkcache
10 minReviewed 26 Aug 2026

ORB Python-To-Rust Speedup Record

A benchmark-backed record of Python-to-Rust ORB backtester speedups, accepted stage ports, rejected experiments, and claim boundaries.

rustpythonbenchmark
29 minReviewed 26 Aug 2026

Cache Lines Before Big-O: Optimizing Search Algorithms by Changing Memory Access

A single-system benchmark study of arrays, pointer chasing, binary search layouts, hash maps, prefetching, memory-level parallelism, and false sharing.

cachesearchbenchmark
53 minReviewed 26 Aug 2026

Computer Internals Notes7 notes

Linux I/O Path: From write() to NVMe Doorbell

A structure-by-structure map of Linux buffered I/O, direct I/O, VFS, page cache, iomap, bio, blk-mq, NVMe commands, DMA mappings, completions, and the PMEM/DAX contrast.

linuxkernelvfs
10 minReviewed 26 Aug 2026

Mutex Internals: From Cache Lines to Futex Wait Queues

A hardware-to-runtime map of atomics, cache coherence, memory ordering, spinlocks, futex-backed mutexes, kernel mutex paths, and condition variables.

mutexatomicspinlock
8 minReviewed 26 Aug 2026

Packet Flow: NIC, DMA, Rings, Kernel, XDP, and DPDK

A hardware-to-userspace walkthrough of how packets move through NIC DMA rings, Linux drivers, NAPI, sk_buff, TCP, XDP, AF_XDP, and DPDK.

networkinglinuxkernel
24 minReviewed 26 Aug 2026

What Does Clearing .bss Mean in Early Kernel Boot?

A practical mental model for .bss: how compilers, linkers, ELF loaders, and early kernel boot cooperate to make zero-initialized globals real.

bootkernelbss
28 minReviewed 26 Aug 2026

Booting, My Confusions and ChatGPT

A capability-by-capability note on early boot: reset vectors, firmware, microcode, XIP, cache-as-RAM, DRAM bring-up, C runtime setup, memory types, and first page tables.

bootfirmwarex86
14 minReviewed 26 Aug 2026

Hardware Memory Path: From Virtual Address to DRAM, MMIO, and DMA

An interactive map of what can happen after a user instruction touches memory: translation, TLBs, caches, page walks, DRAM, MMIO, PCIe, IOMMU, and DMA.

memoryvirtual-memorymmu
1 minReviewed 26 Aug 2026

SIMD Mapping: From Normal Code to Vector Code

A practical tutorial and cheatsheet for translating scalar loops, branches, reductions, and byte scans into AVX2 SIMD patterns.

cppsimdavx2
8 minReviewed 26 Aug 2026

Interview Notes3 notes

DSA Notes1 note

System Design Notes1 note