Blog Posts

Recent posts

Lamport clock

less than 1 minute read

In distributed system, clock can be skewed so if system is relying on wall clock or local clock, it will face unexpected results such as overwriting an exist...

Rust - Understanding Serde

less than 1 minute read

How Rust serde library works. https://www.joshmcguigan.com/blog/understanding-serde/

Rust - Iterator delegation

less than 1 minute read

Often, container structure having a single vector field needs to expose an iterator. The following code shows how to achieve this in a simple way.