Posts
All the articles I've posted.
Python AsyncIO vs Node.js Event Loop — The Differences That Bite You
Posted on:September 8, 2025 at 10:00 AMBoth Python asyncio and Node.js use a single-threaded event loop for concurrency. But the implementation differences are significant: how coroutines suspend, blocking code behavior, thread pool integration, and the GIL's effect on async Python code.
Impermanent Loss — The Hidden Cost of DeFi Liquidity Provision
Posted on:August 11, 2025 at 10:00 AMA complete mathematical treatment of impermanent loss in AMMs: the derivation, the formula, the exact scenarios where it's catastrophic vs acceptable, and how V3 concentrated liquidity amplifies it. Includes an interactive P&L calculator.
LLM API Integration Patterns — Structured Outputs, Function Calling, Streaming
Posted on:July 14, 2025 at 10:00 AMProduction patterns for integrating LLM APIs: structured JSON outputs, tool/function calling for agentic workflows, streaming with proper backpressure, and error handling for the failure modes unique to probabilistic AI systems.
MongoDB Aggregation Pipelines — The Analytics Engine Inside Your Document Database
Posted on:June 18, 2025 at 10:00 AMMost engineers use MongoDB for CRUD and reach for PostgreSQL the moment they need analytics. But the aggregation pipeline is a full transformation engine — composable stages, multi-collection joins, array unpacking. Here's what it can actually do, using real financial event data as the example.
Node.js Memory Leaks — How I Found and Fixed a 2GB Leak in Production
Posted on:June 16, 2025 at 10:00 AMA real case study of a Node.js API that grew to 2GB RSS and crashed weekly. Covers heap snapshot analysis, the --expose-gc flag, closure leaks, EventEmitter leaks, and the three-snapshot technique for finding what's growing.
Ethereum Account Model vs UTXO — Why It Matters for DeFi Developers
Posted on:May 12, 2025 at 10:00 AMBitcoin uses UTXO (Unspent Transaction Outputs), Ethereum uses an account model. This isn't just an implementation detail — it shapes what's possible in smart contracts, how transactions compose, and why certain DeFi patterns work on Ethereum but not on UTXO chains.