Java Http
Recently, I was bite by a httpServer issue that the connection hangs at below os.write step. A quick google search tells me that it is probably the client does not close connection properly, so we ...
Recently, I was bite by a httpServer issue that the connection hangs at below os.write step. A quick google search tells me that it is probably the client does not close connection properly, so we ...
JEP 304: Garbage Collector Interface is a must read if you want to learn the internal mechanism of Java GC. ZGC ZGC has 24k lines of code, which seems readable :) $ cloc src/hotspot/share/gc/z/ ...
Recently, I was reading Kafka connect source code, and was trying to figure out how Kafka connect loads plugins provided by users. It turns out Kafka connect uses the standard ServiceLoader to load...
Process IPC (Interprocess communication) wait system call blocks a parent process until a child process terminates. If not called, the child process will be a zombie process. How could we avoid b...
CPython’s thread state has a profiler callback hook c_profilefunc. If this callback is set, then it will be called when a function enters and exits. See relevant code here. Node this callback is on...
Network tools Tcpdump Tcpdump, as said on its front page, has two products: tcpdump: command line tool libpcap: C library for network traffic capture. libpcap The document is very short....
Each Instruction Set Architecture (ISA) has its own assembly language. So there isn’t an universal assembly. For example, given a piece of C code, Gnu as is capable of assembling it to the target I...
Recently, CPython announced the introduction of JIT in 3.13. See post. I have been long wanted to learn something about JIT, and this may be a good opportunity. The HN post actually provided quite ...
Recently, I spent some time learning compiler techniques. First, I read the first few chapters of dragon book. Then I turned to blogs teaching me how to build a compiler in short time. After a sho...
Lexer Maximal Munch principle This principle is also called the longest token matching rule. Basically, when there is ambiguity, the lexer always chooses the longest possible valid tokens. Most p...