普通视图

发现新文章,点击刷新页面。
昨天以前QuarticCat's Blog

No more OOM in C/C++/Rust builds

2024年7月2日 08:00
I’ve seen people complaining about some gigantic C/C++/Rust projects engulfing all of their memory during building from time to time. Fortunately, there are a few simple methods to alleviate the pain without sacrificing speed. By “simple,” I mean you don’t have to modify your code! Root of the problem Usually, the most memory-consuming part of C/C++/Rust builds is the linking phase. To link object files, the linker must read all of them into memory.

One more nasty design of C++'s name lookup

2021年6月23日 08:00
As we all know that C++’s name lookup has always been extremely counter-intuitive. The infamous argument-dependent lookup (ADL), for example, often leads to unexpected behavior and, worse yet, is often difficult to troubleshoot. This can happen when you define a function in your current namespace, but when you call it the compiler selects another function with the same name thousands of miles away, even though you did not using that foreign function in the current namespace.

How to read C++ types

2021年2月13日 08:00
The readability of C++’s types is terrible, and most beginner tutorials don’t go into detail about how to read them. They at most discuss the difference between top-level const and low-level const. Many of my friends have asked me about this, and I’ve talked about it numerous times. So I thought, why not write a blog post on it? A common misconception Before talking about type reading in detail, I’d like to address a common misconception.

Blogroll

2001年1月1日 08:00
Listed in no particular order Name Blog oldherl Hydroxide liolok 李皓奇 liolok Ariel AxionL 艾雨寒 初等記憶體 可爱鸭鸭 DuckSoft’s Miscellanies 血牙 血牙的个人博客 Xris Xris Sinofine Sinofine Lotus CS Slayer CS Slayer Lancern Lancern 孙子平 山楂片的博客 kxxt kxxt 的小站
❌
❌