Skip to content

Commit

Permalink
77 draft (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghenshui authored Aug 26, 2022
1 parent f297a58 commit 67f934a
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RSS使用仓库的release RSS [链接](https://github.com/wanghenshui/cppweeklyn
| --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- | --------------------- |
| [五十一](./posts/051.md) | [五十二](./posts/052.md) | [五十三](./posts/053.md) | [五十四](./posts/054.md) | [五十五](./posts/055.md) | [五十六](./posts/056.md) | [五十七](./posts/057.md) | [五十八](./posts/058.md) | [五十九](./posts/059.md) | [六十期](./posts/060.md) |
| [六十一](./posts/061.md) | [六十二](./posts/062.md) | [六十三](./posts/063.md) | [六十四](./posts/064.md) | [六十五](./posts/065.md) | [六十六](./posts/066.md) | [六十七](./posts/067.md) | [六十八](./posts/068.md) | [六十九](./posts/069.md) | [七十期](./posts/070.md) |
| [七十一](./posts/071.md) |[七十二](./posts/072.md)|[七十三](./posts/073.md)|[七十四](./posts/074.md)|[七十五](./posts/075.md)|[七十六](./posts/076.md)|||||
| [七十一](./posts/071.md) |[七十二](./posts/072.md)|[七十三](./posts/073.md)|[七十四](./posts/074.md)|[七十五](./posts/075.md)|[七十六](./posts/076.md)|[七十六](./posts/076.md)|[七十七](./posts/077.md)|||


---
104 changes: 91 additions & 13 deletions posts/077.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,137 @@ title: 第77期

# C++ 中文周刊 第77期

`TODO add README then remove this line`


[reddit](https://www.reddit.com/r/cpp/)/[hackernews](https://news.ycombinator.com/)/[lobsters](https://lobste.rs/)/[meetingcpp](https://www.meetingcpp.com/blog/blogroll/)摘抄一些c++动态
[reddit](https://www.reddit.com/r/cpp/)/[hackernews](https://news.ycombinator.com/)/[lobsters](https://lobste.rs/)/[meetingcpp](https://www.meetingcpp.com/blog/blogroll/items/Meeting-Cpp-Blogroll-343.html)摘抄一些c++动态

`TODO fix meetingcpp blogroll link`

[周刊项目地址](https://github.com/wanghenshui/cppweeklynews)[在线地址](https://wanghenshui.github.io/cppweeklynews/)[知乎专栏](https://www.zhihu.com/column/jieyaren) |[腾讯云+社区](https://cloud.tencent.com/developer/column/92884)

弄了个qq频道,[手机qq点击进入](https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=xzjHQ&from=246610&biz=ka)

欢迎投稿,推荐或自荐文章/软件/资源等

`TODO update draft name`

可以贴在下一期草稿里 [链接](https://github.com/wanghenshui/cppweeklynews/blob/dev/posts/078.md)


`TODO update date here`
2022 08 26

准备做视频,目前有代码走读/benchmark俩主题,大家还有啥意见可以供稿一下。下一期视频准备先来个userver代码走读。我先准备准备材料

---

## 资讯

标准委员会动态/ide/编译器信息放在这里

[编译器信息最新动态推荐关注hellogcc公众号 本周更新 2022-01-05 第131期](https://github.com/hellogcc/osdt-weekly/blob/master/weekly-2022/2022-01-05.md)
标准委员会八月邮件 https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/#mailing2022-08

[编译器信息最新动态推荐关注hellogcc公众号 本周更新 2022-08-24 第164期](https://github.com/hellogcc/osdt-weekly/blob/master/weekly-2022/2022-08-24.md)

`TODO fix link then remove this line`

## 文章

- [c++ tip of week ](https://github.com/QuantlabFinancial/cpp_tip_of_the_week/)
- [Did you know about memoized for less types (more compile-time friendly) conditional_t?](https://github.com/QuantlabFinancial/cpp_tip_of_the_week/blob/master/292.md)

`TODO fix link then remove this line`

```cpp
namespace detail {
template <bool> struct conditional;
template <> struct conditional<false> {
template <class, class T> using fn = T;
};
template <> struct conditional<true> {
template <class T, class> using fn = T;
};
} // namespace detail

template <bool B, typename T, typename F>
using conditional_t = typename detail::conditional<B>::template fn<T, F>;
```
说实话,没看懂
- [libcopp对C++20协程的接入和接口设计](https://owent.net/2022/2206.html)
关于协程的封装探索,挺有意思的
- [glibc and DT_GNU_HASH ](https://maskray.me/blog/2022-08-21-glibc-and-dt-gnu-hash)
看不懂
- [GCC internals — From a porting perspective](https://ekaitz.elenq.tech/bootstrapGcc1.html)
GCC整体介绍
- [C++没有trim为什么不自己造一个呢?](https://zhuanlan.zhihu.com/p/553071153)
看个乐
## 视频
- [fmt的痛与对format设计的思考](https://zhuanlan.zhihu.com/p/556307241)
fmt对输出有严格限制
- [Writing An Open-Source C++ Static Analysis Tool ](https://www.cppstories.com/2022/rsc-static-analysis/)
介绍他自己写的静态检查器 https://github.com/GregUtas/robust-services-core
- [A General Overview of What Happens Before main()](https://embeddedartistry.com/blog/2019/04/08/a-general-overview-of-what-happens-before-main/)
main函数执行前都干了啥,填充入参之类的
- [Catching sanitizer errors programmatically](https://lemire.me/blog/2022/08/20/catching-sanitizer-errors-programmatically/)
```cpp
#include <iostream>
#include <string>
#include <stdlib.h>
- [C++ Weekly ](https://www.youtube.com/channel/UCxHAlbZQNFU2LgEtiqd2Maw)
std::string message;
`TODO fix link then remove this line`
extern "C" {
void __asan_on_error() {
std::cout << "You caused an error: " << message << std::endl;
}
}
int main() {
int array[8];
for(int k = 0;; k++) {
message = std::string("access at ") + std::to_string(k);
array[k] = 0;
}
return EXIT_SUCCESS;
}
```

不过不太实用

- [QEMU 结构体对齐产生的问题](https://zhuanlan.zhihu.com/p/558121669)

memcmp比较出错。qemu这种牛逼软件也会有这种问题啊

- [C++ mdspan学习笔记](https://zhuanlan.zhihu.com/p/553772995)

```cpp
int arr[10000]; // 一个已有的数组
mdspan mdarr{arr, i, j, k}; // 把已有的数组 arr 视作 i×j×k 的多维数组
int value = mdarr[x, y, z]; // 访问多维数组的元素
mdarr[x, y, z] = 42; // 向元素赋值
```
简而言之就是这几行。现在你已经学会了
## 视频
- [C++ Weekly - Ep 338 - Analyzing and Improving Build Times](https://www.youtube.com/watch?v=Iybb9wnpF00)
-ftime-trace 生成编译的时间json结果,可以用chrome://tracing/ 浏览器来加载查看。可以自己试一试
觉得麻烦想快速验证的,这里有个build bench https://build-bench.com/b/zLopSp4Yj5XaijZSuwqiYvA2PNU
Expand All @@ -72,10 +146,14 @@ title: 第77期
## 新项目介绍/版本更新

- [cake](https://github.com/thradams/cake) 一个c写的c前端
- [asyncgi](https://github.com/kamchatka-volcano/asyncgi/) 一个fastcgi库
- [MultiArena ](https://github.com/tirimatangi/MultiArena) 内存分配器实现,O1,定位类似pmr
## 工作招聘
突然寒冬卧槽了,任正非你这嘴开过光吧
---
看到这里或许你有建议或者疑问或者指出错误,请留言评论! 多谢! 你的评论非常重要!也可以帮忙点赞收藏转发!多谢支持!
Expand Down
83 changes: 83 additions & 0 deletions posts/078.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
---
layout: post
title: 第78期
---

# C++ 中文周刊 第78期

`TODO add README then remove this line`


[reddit](https://www.reddit.com/r/cpp/)/[hackernews](https://news.ycombinator.com/)/[lobsters](https://lobste.rs/)/[meetingcpp](https://www.meetingcpp.com/blog/blogroll/)摘抄一些c++动态

`TODO fix meetingcpp blogroll link`

[周刊项目地址](https://github.com/wanghenshui/cppweeklynews)[在线地址](https://wanghenshui.github.io/cppweeklynews/)[知乎专栏](https://www.zhihu.com/column/jieyaren) |[腾讯云+社区](https://cloud.tencent.com/developer/column/92884)

弄了个qq频道,[手机qq点击进入](https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=xzjHQ&from=246610&biz=ka)

欢迎投稿,推荐或自荐文章/软件/资源等

`TODO update draft name`

可以贴在下一期草稿里 [草稿链接](https://github.com/wanghenshui/cppweeklynews/blob/dev/posts/78.md)


`TODO update date here`

---

## 资讯

标准委员会动态/ide/编译器信息放在这里

[编译器信息最新动态推荐关注hellogcc公众号 本周更新 2022-01-05 第131期](https://github.com/hellogcc/osdt-weekly/blob/master/weekly-2022/2022-01-05.md)

`TODO fix link then remove this line`

## 文章

- [c++ tip of week ](https://github.com/QuantlabFinancial/cpp_tip_of_the_week/)

`TODO fix link then remove this line`











## 视频

- [C++ Weekly ](https://www.youtube.com/channel/UCxHAlbZQNFU2LgEtiqd2Maw)

`TODO fix link then remove this line`









## 开源项目需要人手

- [asteria](https://github.com/lhmouse/asteria) 一个脚本语言,可嵌入,长期找人,希望胖友们帮帮忙,也可以加群384042845和作者对线
- [pika](https://github.com/OpenAtomFoundation/pika) 一个nosql 存储, redis over rocksdb,非常需要人贡献代码胖友们, 感兴趣的欢迎加群294254078前来对线

## 新项目介绍/版本更新



## 工作招聘

---

看到这里或许你有建议或者疑问或者指出错误,请留言评论! 多谢! 你的评论非常重要!也可以帮忙点赞收藏转发!多谢支持!

[本文永久链接](https://wanghenshui.github.io/cppweeklynews/posts/078.html)

0 comments on commit 67f934a

Please sign in to comment.