Safely writing code that isn’t thread-safe | Hacker News