, home
clouder0.com · origin · α 00h 00m · δ +90°

Through the known, into the unreached.

Start reading

Drag to move · scroll or pinch to zoom · click a starDrag to move · pinch to zoom · tap a star

This browser can’t draw the map; everything below still works.

Start here

Three essays that show how I think.

Each illustration is the essay’s own model, running. Touch it.

Click to switch
Essay · Agents32 min readAgent World · 1/2interactive model

Agent World: agents shouldn’t live in the harness forever

An agent that changes itself doesn’t have to live on as the same process. It can start a successor, hand over its work and exit. Accept that, and messages, identity, machines and projects leave the harness and become the agent’s world.

  1. A harness is one replaceable implementation of an agent; what has to persist is the world outside it.
  2. An agent’s interior can be free. What is really heavy is the infrastructure it lives in.
  3. The world has no shared memory, only boundaries. Domains connect through protocols, documents and makeshift bridges.
Read the essay
Essay · Code9 min read

SPSCQueue Done Right

From a locked queue, step by step, to a lock-free single-producer single-consumer queue: all the two threads really have to share is two indices. Give each its own cacheline and it’s twenty times faster than locking.

  1. Compared with a simple mutex-based implementation, an efficient lock-free implementation can be 20x faster.
  2. The empty/full check really just needs to know the queue size. And the size can be computed directly from the indices.
  3. The read index and the write index are each written by only one thread, so it’s best to lay them out in two separate cachelines, so that the two threads never write the same cacheline.
Read the essay
Essay · Models30 min readMathematical modeling and me · 1/2

Mathematical modeling and me (part 1): three months, three national prizes

The summer before my second year I took up mathematical modeling and in three months won three national prizes: Huashu Cup first, Shenzhen Cup third, national contest first. Here: the prep, Huashu color matching, Shenzhen steganography.

  1. You’ll always run into weird problems, and a lot of the time you’ll never solve them.
  2. A lot of the time, even if something seems to make perfect sense in theory, the results won’t necessarily be that pretty.
  3. Widen the edges of what you know; a lot of the time what really matters is that you know it “can be done.”
Read the essay
Topics

Four regions of the map.

One small instrument per region, built from the idea that region keeps returning to.

Reading paths

Read these in order.

Pieces that read best in order.

60 min in total

Agent World

Why an agent shouldn’t live in its harness forever, then the principles of the world it would share with us.

  1. Agent World: agents shouldn’t live in the harness forever32′
  2. Agent World: Principles for a Shared Human–Agent Internet28′
167 min in total

Bygones

From a programming-contest hall to leaving university: pieces written between 2020 and 2024, in the order they were written.

  1. CSP-S 2020: a contest diary8′
  2. Leaving OI10′
  3. A gaokao study group8′
  4. What if study apps stop letting you search a photo of a problem?8′
  5. All 11
59 min in total

Mathematical modeling and me

Three mathematical modeling contests in three months of 2023 (the Huashu Cup, the Shenzhen Cup and the national contest), then the MCM in early 2024.

  1. Mathematical modeling and me (part 1): three months, three national prizes30′
  2. Mathematical modeling and me (part 2): first prize at the national contest, and the MCM29′
31 min in total

Trades, Quotes and Prices

Reading notes on the first four chapters of Bouchaud et al.’s Trades, Quotes and Prices: the ecology of markets, the statistics of price changes, limit order books and what they look like in data.

  1. The Ecology of Financial Markets11′
  2. The Statistics of Price Changes10′
  3. Limit Order Books4′
  4. Empirical Properties of Limit Order Books6′
Notes

Short thoughts that might grow into essays.

21 notes so far. Most are a paragraph long.

Note · Code
“A static Astro site on Cloudflare, written by Clouder in one language and translated into others by LLM.”How this site is built
Note · Agents
“After updating dsh to track upstream, the bash tool slowed down again: a local sed took 670 ms. The cause was hidden in how the terminal scrollback window is implemented.”Fixing dsh’s bash tool performance regression when the scrollback window is too large
Note · Agents
“In the minimal preset of deepseek-harness, every bash tool call waits an extra 3.5 seconds: two plugins disagree about the prompt.”Fixing abnormal bash latency in dsh minimal
Note · Agents
“Every round of an agent’s tool calls is a new request, and the same context gets billed again and again. Measured against what inference actually costs, is that pricing reasonable?”Agents have sped up token consumption. Is the current way of billing tokens still reasonable? How should it change?
Note · Agents
“A relay is a man in the middle: besides being able, in theory, to see your entire message history, it can also tamper with the content at will.”LLM API relays can poison your computer
Note · Code
“In a Notebook, Ray’s logs always land under the ray.init cell. The cause is IPython’s thread output: a pre_execute hook starts a logger for each cell, then Ray’s log handler is swapped out; Client mode takes another path.”Fixing Ray’s logging errors in Notebooks
Note · Code
“To send a Fortran-order Numpy array out in chunks: tobytes copies, converting to C order is too slow, and neither memoryview nor view accepts Fortran order. In the end, ctypes gets a zero-copy byte view by address.”Getting a zero-copy byte memory view of a Fortran-order Numpy array
Note · Models
“Reading chapter 4: the empirical properties of order books: intraday patterns, the distribution of spreads, where orders are placed and how big they are, the distribution of depth, and the effect of the tick size.”Empirical Properties of Limit Order Books
Show all 21 notes
Archive

The last year, in one list.

12 entries

October2026 · 2

September2026 · 1

August2026 · 2

April2026 · 2

March2026 · 2

January2026 · 2

December2025 · 1

The whole archive: 42 entries

About

Clouder

Here I write down what I have worked out, and what I haven’t yet.

Work
Quant developer at a trading firm
Focus
Agent infrastructure, market microstructure, applied modelling
Builds
Full-stack products, agent tooling, simulations
Contact
[email protected]
Elsewhere
Feeds
For agents
/llms.txt · /posts/<slug>.md