惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园 - 叶小钗
D
DataBreaches.Net
D
Docker
月光博客
月光博客
博客园 - 司徒正美
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Prompt is Not Runtime: Why I Rejected LLM State-Machines ...
Alex Vance · 2026-05-26 · via DEV Community

Prompts are Heuristics, Not Code

There is an excellent article trending on Hacker News right now titled "Prompt Is Not Runtime." It targets a major architectural delusion of the current AI-hype cycle: the idea that we can use natural language prompts as a reliable execution runtime for business logic.

When you are building software that handles user data, a "probabilistic" output is annoying. But when you are building a financial engine designed to model the Snowball Effect of life savings, a probabilistic output is an absolute liability.

When I built DividendFlow—a tax-aware dividend growth and DRIP engine for 38,000+ US tickers—I had to reject the "prompt-as-a-runtime" trend entirely.

Here is why your domain logic must remain strictly deterministic, and how Next.js 15 Server Components allow us to run complex tax math at the Edge in under 150ms.


1. The High Cost of Probabilistic Math

In dividend growth investing, the calculation of future income is recursive. You take a starting principal, calculate the dividend payout, subtract the localized tax drag (Qualified vs. Ordinary rates), purchase fractional shares, and feed the new share count back into the loop for the next month.

If your "runtime" is an LLM agent or a prompt-based state machine, you are dealing with a standard deviation of accuracy.

  • An LLM might apply a flat 15% federal tax rate to a REIT ($O) or a BDC ($MAIN) because it "knows" they pay dividends.
  • But REITs and BDCs pay ordinary income distributions, which are taxed at standard income brackets (up to 37%).
  • A 0.1% error in Year 1 compounds over 20 years into a $50,000 shortfall in the user's projected nest egg.

A financial engine cannot operate on "vibes." You cannot wrap a probabilistic model in enough "guardrails" to make it mathematically safe.

2. Our Architecture: Zero-Dependency TypeScript

Instead of outsourcing our logic to an API call that bills us per token and occasionally hallucinates, we built the compounding engine in 100% deterministic TypeScript.

// Deterministic state-management for compounding math
export async function calculateDRIP(ticker: string, config: TaxConfig) {
  const payoutHistory = await fetchEdgeCachedDividends(ticker);

  return payoutHistory.reduce((accumulator, payment) => {
    const netPayout = applyJurisdictionTax(payment.amount, config);
    const sharesAcquired = netPayout / payment.sharePrice;
    return accumulator + sharesAcquired;
  }, initialShares);
}

Enter fullscreen mode Exit fullscreen mode

By keeping the core math in vanilla TypeScript, we achieved 100% predictability. Every single run with the same inputs yields the exact same outputs. No temperature settings, no seed parameters, no API overages.

3. Shipping Math, Not JavaScript, via Next.js 15

Running 30 years of monthly recursive compounding loops (360 iterations) for 38,000+ tickers is computationally heavy for client-side JavaScript, especially on mobile devices over slow connections.

We offloaded the calculation engine entirely to Next.js 15 Server Components (RSC).

  • The Request Flow: The user toggles a tax setting (US, UK ISA, or Canadian TFSA) -> The page state updates via URL parameters -> Next.js executes the math on the server -> The browser receives only the coordinates for the graph.
  • The Performance: Zero heavy math happens on the client. The initial bundle size stays minimal, and projections render in under 150ms.

4. Why We Don't Collect Your Data

The developer ecosystem has been rocked by cloud platform suspensions (like GCP blocking Railway) and telemetry scandals.

At DividendFlow, we built our technical moat by deciding not to collect user data at all.

  • No Database: All portfolio portfolios and scenarios are stored in your browser's LocalStorage or encoded directly in the URL address bar.
  • No Auth Wall: You don't need a login, you don't need to link your bank account, and we don't harvest your email.

If our host bans us tomorrow, we can copy our static bundle and deploy it to a bare-metal VPS in 5 minutes. The logic is stateless, host-agnostic, and entirely owned by the user.

Conclusion

We have over-engineered the modern web to the point where simple utility apps require a PostgreSQL DB, an Auth provider, an LLM agent, and a SOC2 compliance audit.

Sometimes, the most "senior" move you can make as an engineer is to say no to the hype, write deterministic code, and let the server do the math.

Check out the deterministic speed:

👉 DividendFlow.org


Are we treating prompts as runtimes because we've forgotten how to write robust state-machines? Let’s fight it out in the comments.