~iany/ Menu
  • Series
  • Tags
  1. Home
  2. Tags
  3. Programming
  • 中

Programming

A collection of 2 articles

Power of Monoid, Beauty of Simplicity

A monoid is one of the smallest useful abstractions in algebra: a set closed under an associative binary operation, with an identity element. That simplicity is exactly why it shows up everywhere—from summing numbers and concatenating strings to powering divide-and-conquer algorithms and elegant data structures like finger trees. This post walks through what monoids are, why they give you “compute power” for free when you can phrase a problem in terms of them, and how to think about choosing the right monoid and predicate when you do.

Updated Feb 25, 2026  •  9 min read

Bitcoin Core Network Event Loops

This article is an analysis of the network event loops based on bitcoin core v0.19.0. Bitcoin starts two threads to handle network messages, and each thread runs its own event loop.

Updated Dec 11, 2025  •  3 min read

© 2026  •  ~iany/  •  CC-BY-SA 4.0