3.1 · Paradigms
Paradigm What it emphasises Examples
Imperative Step-by-step state mutations. C, Python, JavaScript.
Object-oriented Encapsulation, inheritance, polymorphism. Java, C#, Ruby, Smalltalk.
Functional Pure functions, immutability, composition. Haskell, Elm, Clojure, F#.
Logic Declarative facts + rules; engine derives. Prolog, Datalog.
Array / vector Whole-array ops; minimal loops. APL, J, NumPy in spirit.
Actor Concurrent message-passing entities. Erlang, Elixir.
Multi-paradigm Mix & match. Rust, Scala, Python, TypeScript.
3.2 · Type systems — the axes that matter
Axis End A End B
When checked Static (Rust, Go, TS) Dynamic (Python, JS, Ruby)
How strict Strong (Haskell, Rust) Weak (C, JS coercion)
Inferred? Inference (Rust, Haskell) Manual (Java pre-Lombok)
Nominal vs structural Java, C# (nominal) TS, Go (structural in places)
Generics Higher-kinded (Haskell) Erasure (Java) / monomorphisation (Rust)
Null-safety Optional / Result types "$1B mistake" Null
Sum types / pattern match Rust, Swift, OCaml Most OO languages (until recently)
3.3 · The language matrix (2026 picks)
Language Sweet spot Runtime GC?
JavaScript / TypeScript Universal — web, BFFs, scripts, agents. V8 / JSC / SpiderMonkey, Bun, Deno. Yes (generational)
Python Data, AI, scripting, glue. CPython, PyPy. Yes (RC + GC)
Go Networked services, CLIs, infra. Native (Go runtime). Yes (concurrent)
Rust Latency-critical, safety-critical, embedded, edge. Native; no runtime to speak of. No — ownership
Java / Kotlin Enterprise, fintech, JVM ecosystem. HotSpot JVM, GraalVM. Yes (G1, ZGC, Shenandoah)
C# / F# Windows / cross-plat enterprise; gaming (Unity). CLR, .NET 9. Yes (gen GC)
Swift iOS / macOS native. Native + Swift runtime. ARC
Elixir / Erlang Massive concurrency, telecom-like. BEAM VM. Per-process GC
C / C++ Systems, drivers, games, performance. Native. No (manual / smart ptrs)
Ruby Rails apps; DSLs. YJIT-enabled MRI. Yes
PHP WordPress, classic web; JIT in 8+. Zend. Yes
Zig Modern C replacement; comptime power. Native. No
Mojo Python-syntax superset aimed at AI perf. MLIR-based. Mixed (manual + GC opt)
Gleam Type-safe BEAM language. BEAM. Yes
3.4 · AOT vs JIT vs interpreter
AOT
Source → binary at build time.
Rust, Go, C/C++, Swift,
GraalVM native-image, .NET AOT
★ tiny startup · ✗ longer build
JIT
Compile hot paths at runtime.
JVM HotSpot, V8, CLR, PyPy,
Ruby YJIT, .NET tiered
★ adaptive · ✗ warm-up
Interpreter
Walk AST / bytecode line-by-line.
CPython, Bash, Lua,
classic Ruby
★ flexible · ✗ slower
3.5 · Garbage collection — the four big ideas
Approach How Used in
Reference counting Each object tracks ref count; freed at 0. Swift (ARC), CPython, Rust Rc/Arc.
Mark & sweep Walk reachable graph; sweep unreachable. Many old GCs; conceptual base.
Generational Young / old gens; collect young often, old rarely. JVM, .NET, V8.
Concurrent / low-pause Mostly runs in parallel with the program. JVM ZGC / Shenandoah, Go's GC, .NET background GC.
Pause times : ZGC / Shenandoah target sub-ms; Go's GC ~<1 ms p99 typically.
Reachability : from roots (stacks, globals); cycles need a cycle collector.
Manual : Rust ownership (no GC); C++ smart pointers; C malloc/free.
3.6 · Memory models & ordering
Modern CPUs and compilers reorder memory ops. The language memory model defines what's legal and visible.
Java Memory Model (JSR-133) + C++ memory model (since C++11) + Go memory model all use happens-before.
Atomics : relaxed / acquire / release / acq_rel / seq_cst orderings.
Volatile in Java/C# ≠ volatile in C — totally different semantics.
Cache coherence : MESI protocol keeps L1/L2 consistent across cores.
3.7 · FFI & ABI — talking across languages
Concept Definition
ABI Application Binary Interface — calling convention, struct layout, name mangling.
FFI Foreign Function Interface — calling another language's code.
C ABI The universal pidgin — almost every language can call extern "C" .
JNI / PyO3 / N-API / WASI Bridges from JVM / Python / Node / Wasm to native.
WebAssembly Portable binary; languages compile to it; Wasm components are the future of FFI.
3.8 · Build systems
Tool Notes
Make / CMake Lingua franca for C/C++.
Bazel / Buck2 / Pants Hermetic, cached, polyglot. Massive monorepos.
Gradle / Maven JVM standard.
Cargo Rust's build + package + test in one.
Go modules + go build Bundled with the language.
npm / pnpm / yarn / bun Node.js ecosystem.
Vite / Turbopack / Rspack / Rolldown Frontend bundlers (2026).
uv / Poetry / Hatch / Rye Python project tools — uv is the new fast default.
Dagger / Earthly / Nx / Turborepo Cross-language pipelines / monorepo runners.
3.9 · Package managers & registries
Ecosystem Registry Lock file
JS npm registry (also JSR for Deno) package-lock.json / pnpm-lock.yaml / bun.lockb
Python PyPI uv.lock / poetry.lock / Pipfile.lock
Rust crates.io Cargo.lock
Go proxy.golang.org go.sum
JVM Maven Central Gradle lock files
.NET NuGet packages.lock.json
Ruby RubyGems Gemfile.lock
System apt / dnf / pacman / brew / nix / scoop —
Supply-chain hygiene: pin versions, audit with npm audit / cargo audit / Dependabot / Renovate, scan with Snyk / GitHub advanced security.
3.10 · Self-check
Q1 · Go achieves "no GC pauses you'll feel" mostly by…
Avoiding heap allocations
A concurrent, low-pause collector
Reference counting
Manual free()