Creează un cont pentru a te abona la acest blog și a-i urmări articolele pe pagina Lectură.
-
Atomic Queue
This post is about folly’s AtomicQueue.
-
Integer Division in Bucketed Time Series
This post is about a cool piece of integer math code in folly::BucketedTimeSeries.
-
A Mental Model for C++ Coroutine
C++ coroutine is not a library that is ready to go (e.g. std::vector).
-
Access a function’s return value in C++ scope guard
It 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.
-
When `__cxa_pure_virtual` is just a different flavor of SEGFAULT
A program crashed during shutdown, with message pure virtual method called which came from __cxa_pure_virtual – where a pure virtual function points to, in its vtable.
-
Rust’s early vs. late lifetime binding
Lifetime in many ways are similar to types but also different.
-
zsh interprets a standalone redirect as a `cat` command
I use zsh and yesterday I was testing a program with myprogram 2>/dev/null.
-
C++ coroutine and lambda’s lifetime
We rarely need to worry about lambda’s lifetime more than any other objects in C++ until we are dealing with coroutine at the same time. folly’s wiki has a good example of why we need to be careful about lambda’s lifetime – https://github.com/facebook/fol…
-
`folly::IOBuf` and zero-copy networking
I see folly::IOBuf often used as a return value (sub-)type in RPC definitions for data intensive and high performance applications.
-
What I learned about `inline` recently
C++’s inline is pretty nice, in my opinion.