RSSAmplifier

Blog

Metaduck

Written by Pedro Teixeira, a Software Engineer

metaduck.comRSS feed ↗41 posts

Latest posts

Reverse-Engineering the Wetware: Spiking Networks, TD Errors, and the End of Matrix Math

An engineer-friendly deep dive into how the human brain truly processes information, learns without backpropagation, and uses spiking neural networks, predictive coding, and dopamine-driven TD errors—challenging our notions of AI and matrix math.

Real-Time AI Streaming in Production: What We Built at Helpmaton

How we evolved our Lambda-based real-time AI streaming stack for SaaS: integrating streaming, credit management, and subscription-based throttling. Patterns, challenges, and lessons from Helpmaton’s production deployment.

Subscription-Based API Throttling Without Client API Keys

How to implement tiered API throttling in AWS API Gateway using subscriptions, without requiring clients to send or manage API keys. Learn how to map subscriptions to usage plans with a custom Lambda authorizer for seamless and secure rate limiting.

How We Give AI Agents Long-Term Memory Without Blowing the Budget

How we give AI agents long-term memory without blowing the budget: time-stratified vector memory (six grains, progressive summarization) plus a graph knowledge base for structured facts, with bounded storage and semantic search.

Building Helpmaton: An Infrastructure Layer for AI Agents

How building Helpmaton — a robust infrastructure layer for AI agents—helped transform one-off scripts into reliable, context-aware, and continuously evaluated AI workflows for projects like TimeClout.

THE ANCHOR’S RADIUS - a short story

In a world kept afloat by edits and dreams, an anchor’s family stumbles through the forgotten tunnels beneath the Spire—where the discarded, the rewritten, and the erased fight to remember what is real.

Building Semantic Search for AI Customer Service Agents

How I built a fast, fully client-side semantic search system for AI customer service agents, using vector embeddings, Web Workers, and real-time doc updates — all without dedicated search infrastructure.

Introducing TimeClout: A New, Open-Source Tool to End Shift Scheduling Headaches

Announcing the private beta launch of TimeClout, the open-source, AI-powered tool designed to simplify and optimize shift scheduling for teams.

My Journey (So Far)

Turning 50, closing a startup, and taking stock of a 28-year journey in software - from distributed systems to open source, from startups to public projects. Looking back to move forward, with renewed curiosity for health, education, and meaningful work.

What's Next? From Decipad to New Frontiers

Reflecting on the journey of building—and saying goodbye to—Decipad, this post explores what's next: open-sourcing our work, lessons learned, and a personal look toward new challenges in health tech and education.

Beyond the Grid: The Search for a More Humane Way to Compute

Reflecting on the limitations of spreadsheets and the quest for a more intuitive, human-centered approach to working with numbers, this article explores why new tools like Decipad are needed—and what challenges remain beyond the grid.

Building Decipad: A Deep Dive into Our Toughest Engineering Challenges

From real-time collaboration with CRDTs to a high-performance Rust computation engine, we're pulling back the curtain on the 9 biggest technical hurdles we overcame in Decipad's evolution.

10 Lessons Learned from Closing Our Startup After 5 Years

Discover the key lessons learned from building—and ultimately closing—Decipad over five years. CTO and co-founder Pedro Teixeira shares hard-earned insights on product development, pivots, team building, and navigating the challenges of creating a new category.

Building Decipad: A 5-Year Technical Retrospective

A retrospective look at the five-year technical journey of Decipad, exploring architectural decisions, key challenges, and product pivots that shaped its evolution from a modeling tool to a collaborative data notebook platform.

Decoding the Brain's Code: A Software Engineer's Guide to the Drift-Diffusion Model

Computational Psychiatry: Reinforcement Learning and the Code Behind the Brain's Decisions

An engineer-friendly introduction to Reinforcement Learning in Computational Psychiatry: how Q-learning works, how the brain might implement similar algorithms, and what this means for understanding mental health disorders.

CPC Afterburn: Active Inference and the Bayesian Brain

Predictive Minds: How Our Brains Code the Future (and Why it Matters for AI)

An accessible, engineer-friendly introduction to Predictive Coding: how the brain predicts the future, why prediction errors matter, and what this means for AI, robotics, and intelligent systems.

Perception, Beliefs, and the Hierarchical Gaussian Filter

A practical introduction to the Hierarchical Gaussian Filter (HGF) in computational psychiatry—how it models human perception, belief updating, and learning under uncertainty, with intuitive explanations for software engineers.

CPC Afterburn: The Code Behind the Brain

A software engineer's deep dive into the core computational models that power modern psychiatry, exploring how code, math, and neuroscience come together to decode the brain's mysteries.

Introduction to CPC Afterburn: A Software Engineer's Take on Computational Psychiatry

A software engineer's journey through the 2025 Computational Psychiatry Course in Zurich, exploring how computational models and systems thinking can be applied to understanding the human mind and psychiatric research.

Why Designers Shouldn't Build Space Stations

Why beautiful designs alone can't overcome the realities of complex systems — and why collaboration between designers and engineers is essential for building things that actually work.

The Fallacy of "Best Practices" in Software Architecture

Why over-engineering early is a trap, and how to build software with just enough architecture to get real results. Embrace the 'minimum viable architecture' mindset and learn practical, low-friction alternatives to heavyweight solutions.

In a World of Hype, GraphQL's Fundamental Advantages Over tRPC Still Hold True

While tRPC offers great developer experience with end-to-end type safety, GraphQL's client-side query customization provides architectural flexibility that shouldn't be overlooked. A deep dive into why GraphQL's advantages remain relevant.

Notebook Compaction: How We Optimized CRDT Storage for High-Frequency Collaborative Editing

How we built a CRDT compaction system for Decipad, merging Y.js updates to dramatically reduce storage costs and improve real-time collaboration performance in high-frequency editing scenarios.

Unit Conversions in Decipad: A Deep Dive into the Language's Dimensional Analysis System

A comprehensive exploration of Decipad's unit conversion system, detailing how the language integrates dimensional analysis, enforces unit correctness at compile time, and enables precise, error-resistant calculations for scientific, engineering, and financial applications.

Time as Intervals: How Decipad's Date System Mimics Human Thinking

Discover how Decipad's date system models time as intervals with built-in granularity, enabling intuitive operations like 'contains' and natural date arithmetic that matches human reasoning.

The Lazy Column Revolution: How Decipad Handles Massive Datasets Without Breaking a Sweat

Discover how Decipad's lazy column architecture enables seamless analysis of massive datasets by combining lazy evaluation, chunked access, and async computation for performance and scalability.

Building a Reactive Declarative Language: From Grammar to Incremental Computation

How we designed and implemented a reactive, type-safe, spreadsheet-inspired language with real-time updates, dependency tracking, and incremental computation.

You're Wrong About Dates

A deep dive into why date handling in programming is more complex than it seems, and how to approach time-based problems correctly.

How to Build a Reliable Transaction Experience for Your Customers

Learn the essential patterns and strategies for building robust, user-friendly transaction systems that handle edge cases gracefully.

Why Your Application Needs to Be Offline-First

Discover the critical importance of offline-first architecture for modern applications, and learn how to design systems that work seamlessly regardless of network connectivity.

Embedding an All-Seeing AI Agent

How we built an AI agent that can see and understand visual content, opening new possibilities for intelligent automation and assistance.

The History of Databases: A Summary

A comprehensive overview of how database technology has evolved from simple file systems to complex distributed architectures.

The Road to Local-First Data

A journey through the evolution of data architecture, from centralized databases to local-first systems that prioritize user control and offline capabilities.

Building Real-Time AI Streaming Services with AWS Lambda and Architect

A deep dive into building scalable, production-ready AI chat services with real-time streaming using AWS Lambda, Architect, and Vercel's AI SDK. Learn about architecture, local development, deployment strategies, and cost optimization for modern AI applications.

Immutable Deployments, Mutable Teams: The Paradox That Keeps Software Alive

Exploring the tension between immutable infrastructure and the need for adaptable teams in modern software development, and why both are essential for sustainable software delivery.

Local Development Sandbox: Mirroring AWS Serverless on Your Machine 🔧

Discover how to create a fast, lightweight local development environment that closely mirrors AWS serverless infrastructure—without Docker or complex orchestration. Learn best practices, architecture, and tips for productive serverless development on your machine.

Deploying Pull Requests: A Complete AWS Stack for Every PR 🚀

Learn how to automatically deploy every pull request to its own isolated AWS environment, complete with custom domains, SSL certificates, and full-stack infrastructure. This guide covers the architecture, CI/CD pipeline, and best practices for building robust, production-like PR deployments that supercharge your team's development workflow.

Bringing Data Closer to Your Code: A Real Implementation

A practical implementation of bringing data closer to edge compute, with real-world examples and performance benchmarks.

The Distributed Dream: Bringing Data Closer to Your Code

Exploring the challenges and possibilities of bringing data closer to edge compute, and imagining a future of non-uniform data access for distributed systems.