Tagged articles
3 articles
Page 1 of 1
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 20, 2025 · Artificial Intelligence

Why AI Programming Needs Compiler Theory: From Prompt to Context Engineering

This article explores how formal language theory and compiler concepts provide a solid theoretical foundation for modern AI engineering practices such as Prompt Engineering, Context Engineering, and Anthropic's Think Tool, highlighting the trade‑offs between expressiveness and reliability and proposing a path toward more verifiable AI systems.

AI programmingCompiler TheoryFormal Language
0 likes · 15 min read
Why AI Programming Needs Compiler Theory: From Prompt to Context Engineering
Python Programming Learning Circle
Python Programming Learning Circle
Nov 2, 2019 · Fundamentals

Taming Left Recursion in PEG Parsers: A Practical Guide

This article explains why left‑recursive rules break recursive‑descent parsers, demonstrates how naïve grammar rewrites alter parse trees, and introduces an oracle‑based memoization technique with a custom @memoize_left_rec decorator to correctly handle left recursion in PEG parsers.

Compiler TheoryPEGPython
0 likes · 13 min read
Taming Left Recursion in PEG Parsers: A Practical Guide