学校英语

2022年11月18日

I’m a PhD student in the CS program. I’m a doctoral student in the CS program. I’m a Master student in the CS program. I’m a m […]

stackless coroutine的实现方式

2022年10月31日

callback https://peps.python.org/pep-0255/ continuation passing style (CPS) state machine generators are used to easily create iterators; coroutines a […]

stackful v.s. stackless coroutine

2022年10月27日

coroutine (协程)是一般function的泛化。一般function一旦开始运行,就必须运行到return(或抛出异常)。coroutine除了可以开始运行和return,还能在中间的某个地方休息一会儿,歇完了能在刚才停下的地方继续运行。coroutine在执行时中间暂停的能力,一般实现为 […]

依赖类型介绍

2022年10月16日

在函数式语言中,不存在没有参数的方法,不存在没有返回值的方法。如果方法签名用箭头(->)表示,箭头两边都必须有类型。 string getStr() { return “hello”; } C#方法getStr()在函数式语言中不存在,它会被表示成一个值,无法调用。 泛型 Java 4,我们只能写L […]

全面战争战锤1混沌勇士永世神选阿克汉指南

2022年10月14日

开局送的神选者维护费太高,可在军队满编后删除这些高维护费单位。一开始招募掠夺者为主。 LegendofTotalWar在第一回合就删除神选者,是有其特定的背景。那时候混沌勇士可以反复劫掠城镇而不摧毁它,而且掠夺者自动战斗(auto resolve)能力强。 一开始就打出生点旁的城市贝尔索林,不要仆从 […]

项目管理工具测评

2022年10月12日

Trello 老牌的项目管理工具。我早至2012年就用过。现在去用,发现其界面是中文(一开始进去是英文,但打开新窗口就变中文),尽管我的language setting is English,我的IP也是美国,我的浏览器prefered language is English。Trello comm […]

评:LINUX磁盘使用命令du的改进

2022年10月8日

一开始说要改进du,我还以为要在du里加进排序的功能。你拿源代码自嗨就算了,还好没去给du作者提pull request,被喷死。 后面用sort加perl。perl已经是图灵完整了,干嘛还要sort?另外sort -n是什么意思,难道sort不能处理human-readable number吗?作 […]

软件与工具推荐

2022年9月12日

系统 ditto或clipx,剪贴板历史软件 Autohotkey directory opus, vim 另见《为什么我不用笔记软件》 一般编程 git tortoisegit smartgit on linux beyond compare github and github actions g […]

How to say a big number?

2022年9月11日

1,200,000 one million (and) two hundred thousand. British English requires the “and” while it’s optional in American English. one mi […]