HackerTube 中文?
Explore / Caption comparisons

Why don’t two locked objects make a safe transaction?

Compare what each lock protects with what the combined operation requires. This is a cost of coordinating shared mutable state, not a claim that every lock is wrong.

Read on through a shared source

Compare the passages

values aggregate to values all the benefits apply to Aggregates
The Value of Values with Rich Hickey · ▶ 16:07–16:16
and unfortunately locks don't compose either, right. That's the problem with locks.
Category Theory 1.1: Motivation and Philosophy · ▶ 12:16–12:26
as soon as you have objects being shared encapsulation just flies out the window
Object-Oriented Programming is Bad · ▶ 20:59–21:10