家里有两只猫咪。狸花色的叫吼吼,纯白色的叫一撮毛。一撮毛这个名字听起来很有趣,这是因为当初收养(绑架)她的时候,她头上有一撮黑色的杂毛。 “她头上有一撮黑毛,不然就取名叫一撮毛吧。”   2022年10月某天的一个夜晚,在小区楼下的一片草丛旁边,稚嫩的奶猫叫声引起了一群人的注意。我和对象吃完晚饭,正值夜间散步小憩之时,被这叫声吸引,加入了围观的人群。 “是一群可爱的白色小猫!”只见一位身着秋季披风的女士指着地上的猫咪喊道。我们蹲下身观察,是一窝五只小奶猫,母猫不见踪影。小猫们一点都不怕生,一边叫着,一边颤颤巍巍地四处行走,在我们身边环绕。   “真可怜,母猫可能放弃了这窝小猫。听说白色的猫咪在猫群里面会受到欺负。”对象对我轻声说道。我点点头,说道: “我们收养一只吧,家里的吼吼一只猫太孤独了。”对象立刻同意,于是我对大家说道: “大家如果能养的话,各自收养一只吧。” 我们随身带了一个纸质手提袋,里面能装不少东西,便俯下身放好袋子,准备迎接那只有缘的小猫。 “喵……喵……”小奶猫们一声一声地发出高亢的叫声,似乎在诉说着离开母猫的恐惧和无助。对象就近指着一只小猫说道: “要不就这只吧,离我们最近。”我正要“下手”,就在这千钧一发之时,这只小猫快步跑向了对侧,对面一位小哥抓住了 Ta。然后另一只小奶猫,在我们的呼唤下,没有任何思考,直接冲进了我的手里。 “就决定是你了!这就是缘分。” 对象高声叫道。于是这只“自投罗网”的小猫,跟随我们到家里,过上了猫界“卖萌一分钟,幸福一辈子”的都市传说。   她便是那只慵懒小母猫,名字叫“一撮毛”。除了对面小哥“绑架”走的另一只猫咪外,还有两三只由几位大姐负责收养和饲养。最后一只留在小区的流浪猫收养角,有人每天定时定点投喂,到现在经常能见到她——她已经成长为一只美美胖胖的大美女了。
C++26 定稿,Reflection 提案投票通过 2025 年 6 月 21 日,著名微软工程师、C++ 标准委员会委员 Herb Sutter 在其个人博客发布了一篇博文《Trip report: June 2025 ISO C++ standards meeting (Sofia, Bulgaria) – Sutter’s Mill》。 A few minutes ago, the C++ committee voted the first seven (7) papers for compile-time reflection into draft C++26 Herb Sutter 在第一段“A unique milestone: ‘Whole new language’”兴奋地提到,就在几分钟前,C++ 标准委员会投票通过了编译期反射涉及的 7 篇 […]
Have you ever struggled with hosting your own DLLs as Windows services using svchost.exe? Many developers face challenges due to the undocumented and restrictive nature of svchost.exe. That’s where SvcHostify comes in—a lightweight, open-source tool designed to make hosting custom DLL services easier than ever. Why SvcHostify? SvcHostify eliminates the complexity of writing svchost-compatible services. […]
A large number of open-source C++ projects choose Modern CMake as a powerful tool used for managing the building process across multiple platforms. Modern CMake refers to the practices, features, and methodologies introduced in CMake 3.x (and beyond) that simplify, improve, and modernize the build system configuration for C++ and other languages. It emphasizes clarity, […]
If the installed host GCC by default on common Linux distributions has a version not fitting to your requirements, you can build from the source by yourself and make it coexist with the installed one. The list of released GNU source packages can be checked on the GNU FTP Site. You can see several directories […]
The Windows NT kernel (from WinNT to Windows 11) internally uses UTF-16 strings by default, including Windows Drivers, Native Applications and COM clients and servers, etc. All other common encodings like UTF-8, GBK, GB18030, BIG-5 should always be converted to UTF-16 before invocations to the kernel functions within ntdll.dll. There is a compatible layer upon […]
Since C++20, the new revolutionary standard has introduced a meta class named std::source_location which provides information about the current line number, file name and function name of the executing context. This new class is included in a standalone header <source_location> and also a better alternative to the old methods like __LINE__ and __FILE__. std::source_location shows […]