huizhou92’s Newsletter-2024–22

huizhou92’s Newsletter-2024–22. Hello everyone, I am huizhou92. So glad we meet again. I will share the best articles, snippets, and anything else I have r。

分享
huizhou92’s Newsletter-2024–22
https://images.app.goo.gl/hD846Qo4BD9qkYeo6

Hello everyone, I am huizhou92. 
So glad we meet again. 
I will share the best articles, snippets, and anything else I have read in the past week related to computer technology. I hope you enjoy it. 
If nothing unexpected happens, it will come as scheduled every Sunday.

Articles

Dragonfly’s New Sorted Set Implementation

Dragonfly's New Sorted Set Implementation
This blog post delves into Dragonfly's innovative approach to enhancing the sorted set data type, showcasing a new B+…

Redis uses a very clear data structure skipList to implement the sorting function (zset). When I first learned about this data structure, I was amazed by its ingenious design. This data structure has been replicated in various systems.

Dragonfly developed a new sorted set implementation based on a B+ tree, improving memory efficiency and performance. This innovation reduces memory overhead significantly compared to Redis’s skiplist implementation. Benchmark results show Dragonfly’s sorted sets scale efficiently and offer up to a 40% reduction in memory usage.

Open source is neither a community nor a democracy

Open source is neither a community nor a democracy
Using open source software does not entitle you to a vote on the direction of the project. The gift you've received is…

Open-source software users do not automatically have a say in project decisions. Projects are typically led by a small group of dedicated contributors. Open source operates on productive effort, not democratic voting, with elitism playing a positive role in project advancement.

Golang 1.23: Changes to I/go: linkname and What It Means for Developers

Golang 1.23: Changes to //go:linkname and What It Means for Developers
Write code carefully, don’t be too clever

This is my own article., Go 1.23 restricts //go:linkname usage to prevent issues and improve code safety. In the long run, this decision may have a significant and lasting impact.

Tools

Today we are sharing a front-end icon library Icônes.
It should be the most comprehensive icon library in the world: it includes all the icon packs available on the market, and 118 different libraries. It has a very powerful search function and can be used directly in multiple formats. You can even download React or Vue components directly or use them together with UnoCSS. It’s amazing.

Think

Can two Linux programs share the same port? The answer is yes. Isn’t it amazing? This contradicts our basic knowledge, but at least it is true in Python. You can take a look at the source code of Python:

cpython/Lib/socketserver.py at 3.12 · python/cpython
The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

In Linux, SO_REUSEADDR and SO_REUSEPORT are used to allow multiple processes to provide services on a single port. For more information, you can refer to this post:

Running a Python web server twice on the same port on Windows: no "Port already in use" message
I'm on Windows 7. When I start a Bottle web server with: run('0.0.0.0', port=80) And then once again run the same…

This is my first attempt at writing a newsletter. There are still many things I don’t know, so please understand and be tolerant. If you can give me applause, that would be the greatest encouragement for me.

文章索引

阅读更多

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史

那些意外变成特性的 Bug:当代码漏洞改写计算史. 比起草台班子将错就错的神话,面对异常数据时的观测定力才是真的 社交网络上常年流传着一类爽文:某家公司的程序员把代码写崩了,结果不仅没被开除,这个 Bug 反而成了拳头产品,妥妥的爽文主角剧本。 最常被搬出来的有三个:Audio Hijack 写错试用期拯救公。

By huizhou92