touch-fish 21
think asio asio C++ library 一起来学asio的异步模型 出海第一步 收录独立开发者出海技术栈和工具 sender/receiver Eric Niebler - Working with Asynchrony Generally and AMA at CppEurope 2022 另外知乎还有个介绍的文章 浅谈c++虚表设计...
think asio asio C++ library 一起来学asio的异步模型 出海第一步 收录独立开发者出海技术栈和工具 sender/receiver Eric Niebler - Working with Asynchrony Generally and AMA at CppEurope 2022 另外知乎还有个介绍的文章 浅谈c++虚表设计...
Ping 是一个常用的网络诊断工具,其工作原理基于 ICMP(Internet Control Message Protocol,互联网控制消息协议) 发送 ICMP Echo Request: ping 命令会向目标主机发送 ICMP Echo Request(类型 8)数据包。 这个数据包包含一个标识符、序列号和可选的数据负载。 ...
llvm-tutor llvm-tutor shecc shecc A self-hosting and educational C optimizing compiler My First Language Frontend with LLVM Tutorial My First Language Frontend with LLVM Tutorial
BJ写了3个, c++的标准库确实好用 Five Popular Myths about C++, Part 1 Five Popular Myths about C++, Part 2 Five Popular Myths about C++, Part 3 开启卓越模式,避免异构cpu的性能调度问题 卓越中心 (CoE) 概述 13带cpu异构,开启卓越模...
看下msvc下实现的std::unordered_map, 写的有点复杂,但是思路很简单 针对key type,计算他的hash值,拿到index 计算元素在hash桶中的索引,如果超出了范围要缩小const size_type _Bucket = _Hashval & _Mask; 拿到了hashtable的index,数组每个点存的是一个链表,新插入的点都是头插法...
主要是针对old-new-thing-Constructing nodes of a hand-made linked list, how hard can it be? 最简单的就是 struct node { node* prev; node* next; }; 更进一步的思考就是天然让他做一个环形链表 struct node { node* prev ...
彻底理解 C++ ABI noexcept Can (Sometimes) Help (or Hurt) Performance Temporarily dropping a lock: The anti-lock pattern What’s so hard about class types as non-type template parameters? Refl...
In every simple assignment expression E1 = E2 and every compound assignment expression E1 @= E2, every value computation and side effect of E2 is sequenced before every value computation and side e...
pfctl 是用于控制 OpenBSD 或 FreeBSD 上的 Packet Filter (PF) 防火墙的命令行工具。以下是 pfctl 的一些常见用法: 加载规则集: pfctl -f /etc/pf.conf 这会从指定的配置文件加载防火墙规则。 启用 PF: pfctl -e 禁用 PF: pfctl...
leveldb的file io中,有些io是要同步磁盘的,这里集中看一下。 传统的UNIX实现的内核中都设置有缓冲区或者页面高速缓存,大多数磁盘IO都是通过缓冲写的。 当你想将数据write进文件时,内核通常会将该数据复制到其中一个缓冲区中,如果该缓冲没被写满的话,内核就不会把它放入到输出队列中。 当这个缓冲区被写满或者内核想重用这个缓冲区时,才会将其排到输出队列中。等它到达等待队列首...