[blog] REX - A Technical Understanding from the Source Code