This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
缘起: | |
http://tieba.baidu.com/p/3063141987 | |
首先是羊驼受不鸟了: | |
http://tieba.baidu.com/p/3073589768 | |
城门本体: | |
http://tieba.baidu.com/p/3074520245 | |
混战: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://tieba.baidu.com/p/3172996151 | |
struct daze_player : player | |
{ | |
state s; | |
virtual state play( std::size_t milisecond_left, const std::vector< state > & self_history, const std::vector< state > & opponent_history ) | |
{ | |
s = (((millisecond_left + std::size_t('d')) * self_history.size() / (opponent_history.size() + std::size_t('a')) + std::size_t('z')) + std::size_t('e') * (self_history.size() ^ opponent_history.size())) % 3; | |
return s; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// LICENSE: MIT | |
// Based on: https://github.com/9chu/minicodecvt/blob/master/TestCpp/main.cpp | |
// Depends on: | |
// rapidjson: https://github.com/miloyip/rapidjson . | |
// minicodecvt: https://github.com/9chu/minicodecvt | |
// YSLib: https://github.com/FrankHB/YSLib | |
// MCF: https://github.com/lhmouse/MCF | |
// Prerequisite: | |
// *-w64-mingw32-g++ supports '-std=c++14'. | |
// Run Tool/install-sysroot.sh in YSLib repo dir to install Sysroot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-03-06 15:42 | |
序 | |
本系列几乎已成半年刊了。 | |
不是什么大书特书的东西。关键字“原教旨主义”。 | |
属于第一类族群,演化程度中等。 | |
正文 |
例如几乎没什么用的文件锁。
sem_open
允许 EINTR
,凭空制造 race condition ,根本没法确定打开时是不是同时创建了信号量。
而文件系统持久语义导致不 sem_unlink
就会在最后/进程挂掉以后遗留空的信号量(如果权限设置有问题后面访问/创建同名的信号量都麻烦)。
http://tieba.baidu.com/p/4860024843
56L @福音战士01 :
这是典型地没学明白。
首先是没搞清楚语言的目的和应用领域,其次是不明白现在对语言的应用的一些常见外延。
一条条分析。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"NOTE", "This file is moved.", "https://github.com/FrankHB/NPLC/blob/b523633b439085b42a73c0e66ddd17454b1b91c1/NBuilder/test.txt"; |