摘要: Bind含义 一条tcp/udp 连接一般是有五元组进行标识的 Bind一般是在server端调用,通过bind,会把本端的地址和端口号与socket描述符进行绑定,而目的地址和端口在connect的时候才能确定;对于client端是不需要bind(但是可以bind),client只要在connec 阅读全文
posted @ 2016-12-04 16:27 goingstudy 阅读(804) 评论(0) 推荐(0) 编辑
摘要: 参考了知乎的这篇文章:https://zhuanlan.zhihu.com/p/20475329 阅读全文
posted @ 2016-11-02 19:11 goingstudy 阅读(220) 评论(0) 推荐(0) 编辑
摘要: The Root of Lisp 对Lisp类的语言(scheme,racket)的理解非常有帮助。 阅读全文
posted @ 2016-10-25 11:29 goingstudy 阅读(181) 评论(0) 推荐(0) 编辑
摘要: plai-type 的parser, 不得不说lisp语言还是擅长处理括号表达式,而且其list 的member允许类型不同,但是说真的,还是不怎么喜欢lisp。 因为刚开始学OCaml, 所以也用OCaml写了一个parser,但是我是用状态机实现的,很ugly, verbose,而且感觉代码风格 阅读全文
posted @ 2016-10-22 13:41 goingstudy 阅读(271) 评论(0) 推荐(0) 编辑
摘要: Recently I am learning the interpretor so I start to read PLAI(Programing Languages: Application and interpretation). However, for a noob of functiona 阅读全文
posted @ 2016-10-10 22:57 goingstudy 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 在Linux内核中,我们可以发现主要有这么几种不同类型的时钟(clock): CLOCK_REALTIME,可以理解为wall time,即是实际的时间。用户可以使用命令(date)或是系统调用去修改。如果使用了NTP, 也会被NTP修改。当系统休眠(suspend)时,仍然会运行的(系统恢复时,k 阅读全文
posted @ 2016-07-10 18:13 goingstudy 阅读(10588) 评论(1) 推荐(1) 编辑
摘要: 1. Registering a family Registering a family is including four steps: define the family, define operations, register the family, register the operatio 阅读全文
posted @ 2016-05-25 23:40 goingstudy 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1. vim cstags&cscope auto load tags&db For ctags, add following to .vimrc Or using this Note that, the semicolon(;) is necessary. For cscope, add foll 阅读全文
posted @ 2016-05-24 22:20 goingstudy 阅读(202) 评论(0) 推荐(0) 编辑