All I know about Markdown
I was confused why prettier formats my todo lists “wrongly” constantly. Then I read this issue and found it is my problem. The canonical description of markdown syntax does not specify the syntax u...
I was confused why prettier formats my todo lists “wrongly” constantly. Then I read this issue and found it is my problem. The canonical description of markdown syntax does not specify the syntax u...
Building Terraform from source code is simple: go build. What is annoying is that we must execute it in folder with a *.tf. This conflicts with delve because the later needs to run inside Terraform...
llamda.cpp ./build/bin/llama-server -m ~/.cache/llama.cpp/Qwen2.5-3B-Instruct-q5_k_l.gguf --port 8012 python -m venv venv source venv/bin/activate pip install -r requirements/requirements-conv...
Nimrod’s post is the best blog I found online that explains virtual table. This post tries my best to answer a few questions. What is inside vtable? How does dynamic dispatch work? How does...
shared_ptr and weak_ptr shared_ptr uses reference counting to realize automatic memory management. shared_ptr is very light-weighted. It only has two member variables: a pointer to the managed obj...
Libuv implements a double-linked closed list using macros. The first time I read it, I feel a little lost because the queue exists both in uv__io_t and loop. Then I read Bodo Kaiser’s explanation. ...
Libuv and io_uring https://github.com/libuv/libuv/pull/3952 Projects that use libuv Nodejs Neovim embeds libuv inside. Checkout this example. Python uvloop and many ASGI web server uses u...
Range libcxx implementation. Let’s walk through a simple example. #include <iostream> #include <ranges> using namespace std; int main() { vector<int> a = {1, 2, 3, 4}; int ...
Parser See code. One interesting thing is that is uses Pratt parser to parse constraint expression. Beginners to C++ concepts may be confused by the new keyword requires. For example, template&l...
Why do we have header files? p0132r0 is a great manuscript about the history and problems with using header files. To sum up, C/C++ files has a notion called independent compilation, which means e...