Apparently mounting a 51% attack on a blockchain can sometimes net more money than the compute cost! https://blog.bitquery.io/attacker-stole-807k-etc-in-ethereum-classic-51-attack
miniblog.
Related Posts
In LSP, a position is represented as a line number and a column offset (in Unicode code units): https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#position
This is pretty elegant. You'll get the correct line regardless of encoding bugs, and the editor already knows the line number so it's cheap to compute.
The Bitter Lesson: how implementing generic search and scaling compute outperforms custom logic in many situations:
An introduction to polyhedral compilation, with a worked example showing how you compute relevant linear transforms: https://www.youtube.com/watch?v=iAF-orse4hE