Lu Pan@uvdn7Jul 14, 2025A really cool small piece of integer division code in `folly::BucketedTimeSeries` – uvdn7.github.io/bucketed-time-….uvdn7.github.ioInteger Division in Bucketed Time SeriesThis post is about a cool piece of integer math code in folly::BucketedTimeSeries.12160
Lu Pan@uvdn7Jul 11, 2025I wrote this post on the mental model for C++ coro in March, and found myself referring back to it often. Let me just post it uvdn7.github.io/cpp-coro/.uvdn7.github.ioA Mental Model for C++ CoroutineC++ coroutine is not a library that is ready to go (e.g. std::vector). It is not even a trait (think of Rust’s Future trait) that library writers or users can implement (or the compiler generates for...1162
Lu Pan@uvdn7Apr 16, 2025Guice configuration is like makefile, and injection is like dynamic linking, but all in Java.176
Lu Pan@uvdn7Jan 7, 2025OK I have my answer – I think you should switch.shachaf@shachafJan 5, 2025My sister sent me this puzzle. It's so good!read image descriptionALT1429
Lu Pan@uvdn7Aug 15, 2024[new blog post] Access a function's return value in C++ scope guarduvdn7.github.ioAccess a function’s return value in C++ scope guardIt is best to avoid accessing a function’s return value in a scope guard or we need to be really careful about the return value’s lifetime.1225