Luyu Huang’s Tech Blog

A Simple Transaction Implementation

Original link: https://luyuhuang.tech/2023/06/18/simple-transaction.html In server programming, transactions are often very important, and one of its very important functions is to ensure the integrity of a series of operations. For example, the server needs to execute two modification operations a and b successively to process a request, and both of them may fail; if a succeeds […]

A Simple Transaction Implementation Read More »

Neovim experience

Original link: https://luyuhuang.tech/2023/03/21/nvim.html I like Vim’s pure keyboard interaction method, but I have never used Vim very much. Although I am familiar with Vim’s keys, I don’t know Vimscript, how to install plug-ins, and how to customize it. Therefore, I have been using VSCode as The main development tool, with the VSCodeVim plug-in, can enjoy

Neovim experience Read More »

Use tcpdump to capture packets

Original link: https://luyuhuang.tech/2022/12/05/tcpdump.html tcpdump is a very practical tool for capturing packets. I have always just copied common commands on the Internet, and I have no understanding of its logic. Recently, I read its manual carefully and summarized the usage of tcpdump. command format If you use tcpdump –help to view its usage, you will

Use tcpdump to capture packets Read More »

C++ implements lock-free queue

Original link: https://luyuhuang.tech/2022/10/30/lock-free-queue.html In the previous article we discussed the memory order of atomic variables in C++, now let’s look at the application of atomic variables and memory order – lock-free queues. This article introduces the simplicity of write-single-read and multi-write-multiple-read lock-free queues Implementation, from which you can see some basic ideas of lock-free data

C++ implements lock-free queue Read More »