Vim
Missing features: Cannot explore 3rd library file structure. In vscode, you can view them directly. Smooth scrolling is very important. When I started using nvim in a remote server, I immedi...
Missing features: Cannot explore 3rd library file structure. In vscode, you can view them directly. Smooth scrolling is very important. When I started using nvim in a remote server, I immedi...
I am using Macbook with M1 chip. The day-to-day develop experience is similar to working on Linux, but there are quite a few gotchas. For example, gdb is not available, so I can only use lldb. The...
Function sounds simple, but its implementation is quite complicated inside cpython. There are functions in the global space, functions inside a class (i.e., method), class method, static method, an...
It is so hard to compile Linux kernel on my Macbook M1. Since I only need the compilation database, I decided to build it in a Linux box, and then copy the the file compile_commands.json out. cd ~...
RSS (Resident Set Size) Resident Set is the virtual memory that is actually living inside physical memory. It consists of three different categories: Anonymous memory pages, file memory pages and ...
How does import work in Python Below findings are based on Cpython version of 6066739ff7794e54c98c08b953a699cbc961cd28. Bootstrap This step generates two C files Python/frozen.c and Python/deepf...
Basic flow Entry point is src/pytest/__main__.py -> src/_pytest/config/__init__.py:main. Then it creates a Config object, which is a core concept in Pytest. Config initializes a plugin manager....
What is WSGI? Web Server Gateway Interface. Work flow blow client requests -> web server/gateway -> WSGI server -> Python web application/framework. Web server/gateway: NGINX, Apach...
PEP 3119 How does metaclass work? Read Python/bltinmodule.c#builtin___build_class__ You can see that the execute sequence is Class body code block runs, which populates the namespace ns o...
Start learning sqlalchemy from here concept: engine metadata: This provides abstract concepts of tabls, columns, constraints, foreign keys, etc. create_all api will create all ...