## LRU and LFU Cache Algorithms

Least Recently Used (LRU) Discards the least recently used items first. This algorithm requires keeping track of what was used when, which is expensive if one wants to make sure the algorithm always discards the least recently used item. General…

## Disjoint-set Forests Go Implementation

Disjoint-set Disjoint-set data structure also called a union–find data structure or merge–find set. It maintains a collection $S = \lbrace S_1, S_2,...,S_k\rbrace$ of disjoint dynamic sets. We identify each set by a $representative$, which is some member of the set.…

## Implement Go RPC Service Based on Apache Thrift

Remote Procedure Call (RPC) is a protocol that one program can use to request a service from a program located in another computer in a network without having to understand network details. (A procedure call is also sometimes known as…

## Embedded Icon in Go Windows Application

In this post let's talk about how to embedded icon in Go windows application with MinGW, GCC and winders utilities. MinGW is a compiler system uses GCC to produce Windows programs. Win32 ports of GCC, GDB, binutils to build native Win32 programs that rely on no 3rd party DLLs.