Language & Framework Internals
How CPython, C++, and PyTorch work under the hood: bytecode, memory, linking, and concurrency.
- INT
- 33 concepts
C++ memory and objects
Understand storage, object lifetime, ownership and shared state.
Starting knowledge: Basic C++ syntax, functions and classes; no compilation path required
Follow the reading order or select any concept to explore its connections.
Previewing Stack versus heap.
1. Storage, lifetime and ownership
Start with addresses and storage, then explain cleanup and ownership through object lifetime. Next, inspect how those objects represent types and behavior.
Concept 1 of 8
Stack versus heap
Learn: Explain automatic storage, dynamic allocation and how function frames change during calls.
Try: Push and pop stack entries, then allocate and free heap blocks.
Read concept
2. Objects, dispatch and containers
Use the ownership model to inspect object layout and generic containers before sharing their state across threads.
3. Share state safely
Bring lifetime and ownership into concurrent access: identify a race, then compare synchronization strategies.
Suggested reading order. Every concept can be read independently.
