Recent Posts
-
2019-12-22
[译] 拨乱反正:Ken Thompson 才是 UTF-8 的设计者(2003)
译者序本文翻译自 2003 年的一份网页存档:UTF-8history。2003 年 4 月的最后一个夜晚即将从键盘上溜走时,作为 UTF-8 设计过程的亲眼见证者,坐在电脑前的 Rob Pike 终于决定写一封邮件来阻止 “UTF-8 编码是IBM 设计的” 这一错误的继续传播,本文的故事由此展开。Rob 在邮件中非常谦虚地隐去了自己作为联合设计者的功劳,只是轻描淡写地说了一句自己期间承担了 Ken 的鼓励师的角色。假如对文中几位的名字感到陌生,以下事迹或头衔可略作参考: Rob Pike Unix 开发者...
-
2019-12-08
[译] TTY 的前世今生(2008)
译者序本文翻译自 2008 年的一篇帖子 The TTY demystified.由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。 译者序 1. 历史 2. 使用场景 2.1 行编辑(Line editing) Line discipline 2.2 会话管理(Session management) 3. 进程 4. 作业(Jobs)和会话 5. 简单粗暴的信号机制 6. 一个例子 ...
-
2019-11-30
Cracking Kubernetes Node Proxy (aka kube-proxy)
TL; DRThis post analyzes the Kubernetes node proxy model, and provides 5 demo implementations (within couples of lines of code) of the model based ondifferent kernel infrastructures (userspace/iptables/ipvs/tc-ebpf/sock-ebpf).Related posts: Cracking Kubernetes Node ...
-
2019-11-25
[译] 标准错误 stderr 的诞生(2013)
译者序本文翻译自 2013 年的一篇英文博客 The Birth of Standard Error。从这则故事可以看出,即使是对这些极富传奇色彩的大佬,“需求是第一生产力” 也是成立的。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。今天早些时候,Stephen Johnson 在 The Unix Heritage Society(Unix 遗产学会)的 mailing list 中描述了标准错误(stderr)概念是如何诞生的,其思想是:应该通过一个独立于正常输出(normal output...
-
2019-11-23
[译] C 不是一门低层(low-level)语言(acmqueue, 2018)
译者序本文翻译自 C Is Not a Low-LevelLanguage,acmqueue Volume 16,issue 2(2018.04.30),原文副标题为 Your computer is not a fast PDP-11。作者David Chisnall。本文观点非常独特,甚至招来了老牌黑客 Eric S. Raymond(开源运动发起者之一,开源领袖,代表作《大教堂和大集市》等)写了一篇长文作为回帖:Embrace theSICK。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。...
-
2019-11-09
[译] 编程语言中的 6 种内存模型(2016)
译者序本文翻译自一篇英文博客 The memory models that underlie programminglanguages,截至本文翻译时,原文最后一次更新是在 2016 年。作者似乎是计算机和编程领域的老兵,除了高屋建瓴地分析这 6 种横跨半个多世纪的内存模型之外,还举重若轻地点评了如下几十种语言、库或系统(大部分都是编程语言):Forth、morden Lisps、Haskell、ML、Python、Ruby、PHP5、Lua、JavaScript、Erlang、Smalltalk、Java、C#、Assembl...
-
2019-10-27
Host Disconnect Caused by Istio Sidecar Injection
1 Problem 1.1 Phenomemon 1.2 Environment Info 2 Minimum reproducing scheme 3 Trouble Shooting 3.1 Check ingress/egress traffic interrupt 3.2 Check iptables rules 3.3 Check drops 3.4 Capture all host traffic 3.5 Fur...
-
2019-10-26
Cilium Network Topology and Traffic Path on AWS
This post explores the network topology and traffic path between twocross-host Pods in a Cilium powered K8S cluster on AWS. We will use general Linuxcommands to fulfill this task. At the end of this post, we will get a picturelike this:Besides, we’ll also look into t...
-
2019-10-16
[译] 400 行 C 代码实现一个虚拟机(2018)
译者序本文翻译自 2018 年的一篇英文博客 Write your Own Virtual Machine。文章介绍如何用 400 行左右的 C 代码实现一个虚拟机,该虚拟机能够运行标准的 LC-3 汇编程序。不过要注意,本文所说的“虚拟机”是指 JVM 或者 Erlang Beam 那种虚拟机(解释器),并不是 VirtualBox 或 VMWare 启动的那种有完整操作系统的虚拟机。由于译者水平有限,本文不免存在遗漏或错误之处。如有疑问,请查阅原文。以下是译文。 译者序 1. 引言 什么是虚拟机? ...
-
2019-10-13
OVS Unknown Unicast Flooding Under Distributed L2 Gateway
TL; DRIn a distributed L2 gateway environment (e.g. Spine-Leaf), misconfigurations ofARP aging time may cause OVS unicast flooding. And, the behaviors ofdistributed L2 gateway products vary among different vendors.1 Problem DescriptionAn internal user reported that t...