Debugging the Human OS: A Comparative Analysis of Journaling Protocols

Optimizing Internal Throughput: An Analysis of Journaling Protocols Your internal operating system requires debugging just like any complex code base. Inefficiencies, bugs (bad habits), suboptimal resource allocation – it’s all there. Journaling is essentially running diagnostics, creating log files to analyze performance and identify areas for refactoring. Different methods act like different logging levels or diagnostic tools, each with trade-offs in terms of overhead (time) and output (insight). The goal isn’t just passive observation; it’s active optimization. Identify what processes are executing efficiently and amplify them. Pinpoint bugs and memory leaks (energy drains, poor decisions) and patch them. Personally, I find a straightforward What I executed well / What crashed or needs refactoring daily log provides high signal-to-noise, but let’s dissect the common protocols available. ...

March 25, 2025 · 13 min · Josep Oriol Carné

Three Proven Techniques to Reduce LLM Hallucinations

Large Language Models are superuseful right, but they have a well-known weakness: hallucinations. These are confident-sounding responses that are factually incorrect or completely fabricated. While no technique eliminates hallucinations entirely, these three strategies significantly reduce their occurrence in production systems. 1. Provide an Escape Hatch One of the most effective ways to reduce hallucinations is giving the model permission to admit uncertainty. LLMs are trained to be helpful, which sometimes leads them to generate plausible-sounding answers even when they lack sufficient information. ...

January 27, 2025 · 3 min · Josep Oriol Carné

The Martingale: Mathematical Origins and the Inevitability of Ruin

The martingale betting system has seduced gamblers for a while: double your bet after every loss, and when you finally win, you’ll recover all losses plus a profit equal to your original stake. The mathematics appears impeccable. The strategy is a trap. Origins: From Gambling Dens to Probability Theory The term “martingale” likely derives from the French town of Martigues in Provence, whose inhabitants were reportedly known for their risky gambling habits. By the 18th century, the word had become synonymous with a class of betting strategies where the gambler increases stakes after losses. ...

January 9, 2025 · 6 min · Josep Oriol Carné