languages/
Syntax, runtimes, compilers, JITs, type systems and memory management.
4 results
languages/reference-counting-how-python-knows-when-to-throw-an-object-away.md
Reference counting: how Python knows when to throw an object away
You never tell Python to free memory, yet unused objects disappear. How does it know when one is finished with? CPython keeps a tally on…
languages/generators-how-a-python-function-can-pause-in-the-middle-and-pick-up-w.md
Generators: how a Python function can pause in the middle and pick up where it left off
A generator is a Python function that can pause halfway, hand you a value, and carry on later from the same line with its variables intact…
languages/rust-ownership-why-let-b-a-makes-a-unusable.md
Rust ownership: why let b = a makes a unusable
Why does Rust refuse to compile `let b = a;` followed by a use of `a`? Because of ownership: every value has exactly one owner, and…
languages/go-slices-why-appending-to-a-copy-can-change-the-original.md
Go slices: why appending to a copy can change the original
Change a copy of a Go slice and sometimes the original changes too. The reason is that a slice is only a small window onto an array, with a…