Python -- Metaclass
PEP 3119 tp_new vs tp_init tp_new and tp_init are both used during object construction. They take the same arguments args and kwargs. See code. So could we use __new__ instead of __int__ to p...
PEP 3119 tp_new vs tp_init tp_new and tp_init are both used during object construction. They take the same arguments args and kwargs. See code. So could we use __new__ instead of __int__ to p...
Sqlalchemy is huge. It has over 600k lines of code. concept: engine metadata: This provides abstract concepts of tabls, columns, constraints, foreign keys, etc. create_all api ...
Cpython Build On a 2019 Macbook Pro. MACOSX_DEPLOYMENT_TARGET=10.15 ./configure --with-pydebug bear -- make -j -s On a 2022 Macbook M1. I have some problem with openssl. So I follow this post ...
botocore and aiobotocore are the two fundamental AWS Python SDK. Most people probably only interact with the higher level abstraction packages such as boto3 and aioboto3. How are different service...
Setting up Java in MacOS MacOS is notorious for the lack of transparency of how everything works. Java is no exception. With a brand new MacBook, you have a few pre-installed commands: /usr/bin/ja...
You may heard about Graal in Java community, but do not know how exactly it works. OK. I do not know either, and this post is about my learning about Java JIT compilers. For a long time, Java has ...
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...