Two ways to implement binary search
There are only two correct ways to implement binary search…
Before learning Rust, I never thought about object lifetime and ownership that much. It turns out they have many things to do with memory safety and thread safety. Nowadays I think about lifetime and ownership all the time, even when writing programs in C++. Here is a summary of my…
There are only two correct ways to implement binary search…
Following my previous post Raft, from an engineering perspective [https://www.ditsing.com/raft-from-an-engineering-perspective/], I gathered some thoughts on related topics. Latency and RPCs Latency matters in a distributed system Latency is tied directly to availability. The larger the latency, the longer the period the system is unavailable. RPC latency…
I recently completed an implementation of the Raft consensus algorithm! It is part of the homework of the online version of MIT course 6.824 [https://pdos.csail.mit.edu/6.824/]. It took me 10 months on and off, mostly off. The algorithm itself is simple and understandable, as…
标题是从 Culture Fit 生硬翻译过来的。…
打算写点什么 Write random stuff…