Dissecting the stdlib
summary
Walk through of stdlib source with concrete code and compiled output: inspects the collections API and scope helpers, shows bytecode examples for lambdas, demonstrates how capturing a variable changes allocations (single shared instance versus per-call generated classes) and how inlining avoids that at the cost of code bloat. Covers reified generics, 1.3 contracts, extensions like apply/let/run, KTX utilities and the execute-around pattern with real examples and trade-offs.
AI-written summary · about
chapters (20)
- 0:00Start
- 2:41Collections Api
- 5:28Kotlin Treats Functions as First-Class Citizens
- 5:56Function Literal
- 6:10Lambdas
- 8:29Qualified Returns
- 8:50What Are Lambdas
- 10:06Machine Code
- 12:28Higher Order Function
- 14:11Anonymous Functions
- 14:25Anonymous Function
- 15:11Standard Extensions
- 18:46Extension Methods
- 19:10Remove Diacriticals
- 28:26Closures
- 35:39Non-Local Returns
- 37:58Reified
- 40:39Operator Overloading
- 41:26Delegates
- 42:33Contracts








