# Weekly

Nov 19, 2018 • 东岳

https://github.com/Cody2333/koa-swagger-decorator

Koa 框架下的轮子，用来做参数的输入校验和 Swagger 文档的自动生成

https://github.com/google/googletest

最近开始肝 RoboMaster，开始写 C++ 了，于是开始感受了一下 C++ 的单元测试框架。

总的来说，如果要在 CLion / CMake 里写 Unit Test，Google Test 大概是我唯一配置得来的了……

再附上 CLion 的配置和一个可用的 CMakeLists https://www.jetbrains.com/help/clion/creating-google-test-run-debug-configuration-for-test.html https://github.com/SkyZH/CAHRR/blob/master/test/CMakeLists.txt

C Portability Lessons from Weird Machines

为啥C有那么多的undefined和implementation-defined behavior？这篇文章就包括了很多奇奇怪怪的机器，有的char是9个bits，有的访问`0x0 ~ 0xff`以外的地址会特别慢，有的机子从`char*`到`int*`的转换不仅仅是算数的无符号扩展，有的机子最小寻址单位是nibble（4 bits），有的机子是mixed endian （`Unix` -> `nUxi`）。

https://begriffs.com/posts/2018-11-15-c-portability.html?hn=1

https://github.com/Azure/golua lua 的 go 实现 .w.

https://github.com/kubeedge/kubeedge

Kubernetes Native Edge Computing Management Framework http://kubeedge.io

hashicorp c1m

- https://www.hashicorp.com/c1m
- https://www.infoq.com/articles/scaling-containers-hashicorp-nomad
- https://github.com/hashicorp/c1m

> Schedulers generally fall into one of three categories: monolithic, offer based, or shared state. Monolithic schedulers have a single, centralized location for scheduling logic, often bound to a single machine. Offer-based schedulers (such as Mesos), also have a single location for scheduling decisions, but can parallelize by offering resources to multiple frameworks that each have their own tasks. Shared state schedulers have multiple locations processing scheduling decisions. Unified state is achieved through use of concurrency, allowing scheduling to be done in parallel

- https://www.nomadproject.io/docs/internals/scheduling.html

所以 k8s 的 scheduler 是? @gaocegege 记得策策好像说过更喜欢 nomad 的做法

https://github.com/tbodt/ish Linux shell for iOS

> So a warning: Long-term exposure to this code may cause loss of sanity, nightmares about GAS macros and linker errors, or any number of other debilitating side effects. This code is known to the State of California to cause cancer, birth defects, and reproductive harm.

https://github.com/MicrosoftDocs/azure-docs 附带的插件和入门文档很详细

- 插件 https://github.com/Microsoft/vscode-docs-authoring
- 连文档里该用什么语气都讲了 ... https://docs.microsoft.com/en-us/contribute/

https://t.co/H9JvPwKfgO USENIX LISA 2018 (devops 之类的东西 .... 当然现在大家都 cloud native 了 ...

https://github.com/fengjueming/unblock-NetEaseMusic 海外用户免翻墙听网易云音乐

https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition 让人想起 CMU-SV 的 Zhang Jia 老师的课，比如 Service Oriented Computing. 非常 Java. 非常 Enterprise.

AMD optimized compiler

AMD也仿照icc搞了个自己的编译器……不过有钱还是没钱还是能看的出来的，基本就是在clang上面加了几个pass，启用了更aggressive的编译选项。所以编译出来的代码相对icc来说还是too young

https://developer.amd.com/amd-aocc/

https://golang.org/lib/godoc/analysis/help.html godoc 居然是自带静态分析的, 跳转 etc.

REPT: Reverse Debugging of Failures in Deployed Software

OSDI 18' best paper。不知道有没有机会去G家kernel搞这个……

~~自己笔记本是AMD……失败~~

https://www.usenix.org/system/files/osdi18-cui.pdf