Summary: 1. Unchanged code in platform threads works correctly and with same performance (backward comp) ⏪ 2. Unchanged code in virtual threads works correctly (e.g. thread locals ✅) with same or better perf (forward comp) ⏩ When same, when better and what can you do? 🧵🧵
Summary: 1. Unchanged code in platform threads works correctly and with same performance (backward comp) ⏪ 2. Unchanged code in virtual threads works correctly (e.g. thread locals ✅) with same or better perf (forward comp) ⏩ When same, when better and what can you do? 🧵🧵
(It's 🧵🧵 because it's a thread🧵 on Loom🧵 - get it? I'll show myself out.) Virtual threads promise better scalability for I/O-bound apps and most code "just works". Here are five exceptions that, in worst case, bring scale back down to where it was with platform threads…