Nutshell

Thoughts come and go, words stay eternal

30 Sep 2022

[python internal] Implementation of Type Set

Abstract Using array to store element, and using Open Addressing to solve hash collision. When Resing, a new set will be...
23 Sep 2022

[encryption] Keep Your Data Safe

Abstract System’s built-in full disk encryption should be always the first choice, windows - BitLocker, macos - Fi...
09 Sep 2022

[python internal] Implementation of Type Dict

Abstract using char[] store data, using Open Addressing handle hash collision hash table will be expanded only there are...
03 Sep 2022

[python internal] From Python to Bytecode until C

Abstract Use module dis to get the minimize assembly code. Found the entry from Python/ceval.c with the bytecode that di...
28 Aug 2022

[paper review] Fairness and Interactive Performance of O(1) and CFS Linux Kernel Schedulerss

Abstract For both medium and high load, CFS has higher average latency (5ms ~ 10ms) than O(1). The greater the load, the...
28 Aug 2022

[python internal] Implementation of Type List

Abstract The only way to shrink list without delete element is making a copy of the old one, like l = l[:len(l)] or a = ...
21 Aug 2022

[python internal] Binary and In-place Operation

Abstract Use of a compound operator that will be compiled into INPLACE_* bytecode instruction at the end may result in a...
20 Aug 2022

[nginx] HTTP Serving Compressed File

Abstract Most web browsers include built-in support for gzip, deflate, br Most programming languages include built-in su...
08 Aug 2022

[network] dns should i use dnssec

Abstract WARNING DNSSEC can only works as expected when the resolver ensure the zone and the upstream nameserver support...
01 Aug 2022

[network] UDP Server Listen on 0.0.0.0

Abstract UDP is connectionless protocol, there is no way to know real source address at protocol level Only way to get r...