作者: gqqnbig

生词本与字典解耦

2023年1月23日

以前我用金山词霸查单词,并使用金山词霸生词本。后来我改用灵格斯词典,但继续用金山词霸生词本记录单词。[1]现在,我用纸质版《牛津高阶英汉词典》、Oxford Advanced Learner’s Dictionary以及付费的Oxford English Dictionary。这样的话, […]

Delimited Continuations

2023年1月12日

本文绝大部分来自 https://gist.github.com/sebfisch/2235780 Delimited continuations manipulate the control flow of programs. Similar to control structures like […]

不论

2022年12月31日

no matter how/wh- no matter后面必须跟how, what, where, when, if, whether。 regardless regardless必须跟of。它跟no matter how/wh-一样,必须跟一个总结性的名词。 The club welcomes a […]

GIMP制作签名

2022年11月30日

filter -> render -> plasma (Turbulence=1 default value) color -> desaturate -> color to gray add a layer mask (all black) Choose paint brush (not penc […]

用时间表示距离

2022年11月22日

作为名词不加s It’s a three-hour drive to London. three-hour是drive的形容词,所以加hypen。 作为副词,在时间单位后加s’。 The station is (a few minutes’ walk) away […]

学校英语

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的泛化。[1]一般function一旦开始运行,就必须运行到return(或抛出异常)。coroutine除了可以开始运行和return,还能在中间的某个地方休息一会儿,歇完了能在刚才停下的地方继续运行。coroutine在执行时中间暂停的能力,一般 […]

依赖类型介绍

2022年10月16日

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