Archive
1422 posts · Page 67 of 119. ← Blog
From-scratch Go for the two mechanisms that turn an LLM from a text generator into a component you can wire into real software — schema-constrained JSON and function calling — both spoken over the same OpenAI-compatible chat JSON.
Getting reliable machine-readable output from an LLM in Go: structured output (json-schema mode, decode into a typed struct, validate with a bounded retry) and tool/function calling (the full round-trip loop, decoding tool arguments, returning results tied to the call id).
How a ledger-posting path that looks innocent quietly mints garbage on every transaction — reading the compiler's escape-analysis output, and a measured 4× win from allocating only what you keep.
How the compiler decides stack versus heap, how to read -gcflags=-m, and a ledger-posting function taken through three measured versions: 2,056 allocations per batch down to 513 — exactly the values the contract requires to survive — for a 3.9x speedup.
A hybrid allocator where a quantitative core owns the money, a language model only whispers tilts, and hard constraints plus a human bound everything before a single order goes out.
A hybrid allocator: quantitative signals set the baseline (mean-variance / risk parity) while an LLM proposes tilts from qualitative context, constrained by risk limits and human review.
The 40-year-old tag=value protocol still carrying most of the world's equity orders — and how to build an engine that survives a dropped connection.
How FIX session layer (logon, heartbeat, sequence-number gap-fill, resend) and application layer (NewOrderSingle, ExecutionReport) actually work, and how to build a resilient FIX engine.
How AI agents that discover, choose, and pay on your behalf break the assumptions baked into every checkout, and the protocol stack rushing in to fix them.
What agentic commerce is: AI agents that discover, select, and pay on a user's behalf.
How to treat pain, pacs, and camt as one typed, schema-driven domain instead of a pile of XML you concatenate by hand.
Teaches how to model, validate, and generate ISO 20022 XML payment messages (pain.001 initiation, pacs.008 interbank, camt.053 statements) with schema-driven typing, structured references, and idempotent message identifiers.
A field-by-field guide to decoding bitmaps, data elements, and MTI so a raw TCP frame becomes a typed auth request you can trust.
Teaches how to build a byte-level ISO 8583 encoder/decoder: primary/secondary bitmaps, data-element (DE) field definitions, MTI parsing, and stan/RRN correlation for card authorization messaging.
Model the fixed-width record hierarchy, warehouse entries until their effective date, and turn R-series returns into automated re-presentment.
Teaches how to build a NACHA file processor: fixed-width file/batch/entry/addenda record hierarchy, hash totals, effective-entry-date windows, and handling R-series return/NOC codes with automated re-presentment logic.
The last mile of a financial system isn't code — it's who can do what, who approves it, and how you prove the whole thing is correct.
The last mile isn't code — it's who can do what, who approves it, and how you prove it's correct. Segregation of duties, four-eyes, an auditable change trail, and property tests that assert ledger invariants over thousands of scenarios.
Graph neural networks look clean on paper and get messy in production, because training on graphs breaks assumptions that ordinary deep learning takes for granted. The data points aren't independent, the graph may not fit in memory, and the model fails in graph-specific ways. This post covers the practical realities of making GNNs actually work at scale — the problems you'll hit and the techniques that address them.
GNNs look clean on paper and get messy in production because the data points aren't independent. Why mini-batching and train/test splitting break on graphs (leakage through edges), how sampling scales GNNs to huge graphs, and the graph-specific failure modes (over-smoothing, over-squashing, homophily) that shape real systems.
Generics are how you write code that works over many types without giving up type safety — a function or type parameterized by a type it fills in later. They're the feature people find most intimidating and the one that unlocks reusable, precisely-typed abstractions. Once you see a generic as "a type variable," the intimidation fades and the power remains.
Generics are how you write code that works over many types without giving up type safety — a function or type parameterized by a type it fills in later. They're the feature people find most intimidating and the one that unlocks reusable, precisely-typed abstractions. Once you see a generic as "a type variable," the intimidation fades.
Empathy is where emotional intelligence turns outward — and where it becomes genuinely useful to everyone around you. It's the difference between an engineer who "wins" a design debate by being loudest and one who understands what each person actually needs and finds a solution everyone supports; between a code review that makes someone defensive and one that helps them. Empathy isn't sentiment. It's the practical skill of accurately understanding what other people think and feel, and it's the foundation of every effective interaction.
Empathy is where emotional intelligence turns outward — and where it becomes genuinely useful to everyone around you. It isn't sentiment; it's the practical, learnable skill of accurately understanding what other people think and feel, and it's the foundation of every effective interaction.