按年被提到
20162016 · 8 次2026
编程语言与编译器›编译器与运行时优化·arXiv:1603.05636 · cs.OS

An Implementation and Analysis of a Kernel Network Stack in Go with the CSP Style

Harshal Sheth, Aashish Welling · 2016
开始阅读 ↗PDFalphaXiv 讨论
被提及 · 8 人首次 2016-04-04 · 最近 2016-05-29
8不同的人
2活跃月份
8讨论串
1被引(OpenAlex)
arXiv 摘要(候选层不写导读)

Modern operating system kernels are written in lower-level languages such as C. Although the low-level functionalities of C are often useful within kernels, they also give rise to several classes of bugs. Kernels written in higher level languages avoid many of these potential problems, at the possible cost of decreased performance. This research evaluates the advantages and disadvantages of a kernel written in a higher level language. To do this, the network stack subsystem of the kernel was implemented in Go with the Communicating Sequential Processes (CSP) style. Go is a high-level programming language that supports the CSP style, which recommends splitting large tasks into several smaller ones running in independent "threads". Modules for the major networking protocols, including Ethernet, ARP, IPv4, ICMP, UDP, and TCP, were implemented. In this study, the implemented Go network stack, called GoNet, was compared to a representative network stack written in C. The GoNet code is more readable and generally performs better than that of its C stack counterparts. From this, it can be concluded that Go with CSP style is a viable alternative to C for the language of kernel implementations.

候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。

HN 书评

没有评论直接链到它;下面是它被提交的讨论串里回复最多的评论(不计入统计)
讨论串评论bediger4000 · 2016-05

“Interesting project, but the conclusion seems off: > The GoNet code is more readable and generally performs > better than that of its C stack counterparts. From this, > it can be concluded that Go with CSP style is a viable > alternative to C for the language of kernel > implementations. "It worked for part of the problem, therefore, it will work fo…”

An Implementation and Analysis of a Kernel Network Stack in Go原评论 ↗
被提交为 story · 8 次