thecodex.expert  ·  The Codex Family of Knowledge
Section Hub

How Programming Languages Work

Every programming language — Python, C, Java, Rust — is a translation layer between human intent and machine instructions. This section explains how that translation happens.

8 topics Requires: CS Foundations Last verified:

A programming language is not magic — it is a precisely defined formal system with rules for structure (syntax), rules for meaning (semantics), and a mechanism for execution (compilation or interpretation). Understanding these mechanisms lets you reason about any language, not just the ones you know.

Topics in this section

Compilation

How source code becomes machine code. Lexing, parsing, semantic analysis, optimisation, and code generation — the full pipeline from text to executable.

Built · Session 03
Interpretation

How interpreters execute code without compiling to machine code first. Tree-walking, bytecode VMs, and JIT compilation — and why Python isn't "slow."

Built · Session 03
Type Systems

Static vs. dynamic typing. Strong vs. weak typing. Structural vs. nominal types. Type inference. What the type checker actually does and why it matters.

Built · Session 03
Parsing

How source text becomes an Abstract Syntax Tree. Grammars, tokenisation, recursive descent parsing, and how compilers understand structure.

Coming soon
Memory Management

Manual allocation, garbage collection, reference counting, and ownership. How C, Java, Python, and Rust each manage memory — and the tradeoffs each choice makes.

Coming soon
Concurrency Models

Threads, event loops, async/await, coroutines, and the actor model. How different languages choose to handle work happening at the same time.

Coming soon
Language Design

Why languages are designed the way they are. The tradeoffs between expressiveness, safety, performance, and readability. What makes a language successful.

Coming soon

Before this section

These pages build directly on the CS Foundations section. If you haven't read them yet, start there.

How Computers Work Binary & Number Systems

After this section

Programming Paradigms → Language Reference →