Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

monomorphization

The compiler making a separate copy of generic code for each type it is used with.

Monomorphization compiles each generic item once per concrete set of type arguments, producing specialized machine code with no runtime dispatch.

Loading interactive…

Examples

  • Change<u8> and Change<String> come from one definition but are separate types: 2 bytes and 48 bytes on a 64-bit machine.

Read the full section →