系统与基础设施github.com
从零写一个操作系统:教程
How to create an OS from scratch – tutorial
2018 — 2025,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这是一个 GitHub 上的开源教程,教你从零开始编写一个操作系统,涵盖引导、内核等基础步骤。作者在评论区提到这是他待业期间启动的项目,因文件系统实现遇到困难而一度停滞。
为什么经久不衰:写 OS 是理解计算机底层原理的最佳练习之一,这个教程上手门槛低,多年后仍是入门经典。
HN 评论精选
教程基于传统 BIOS 已过时,应改用或至少提及 UEFI
我最近看到不少“从零写 OS”的教程,这很棒!写操作系统确实能帮你写出更好的用户态程序,也很有趣。唯一希望的是更多教程能采用 UEFI 而不是 BIOS,或至少加个警告,因为 Intel 计划在 2020 年放弃对传统 BIOS 的支持。而且走 UEFI 其实更简单……也许我该少抱怨,自己动手写那个教程了。
justinian查看英文原文
I've seen a number of "build an OS" tutorials pop up recently, and that's awesome! Building an OS will definitely help you understand how to write better user-space programs, and it's fun. One thing I wish is that more of them would feature UEFI instead of BIOS, or at least come with a warning, as Intel plans to drop support for legacy BIOS in 2020. Going through UEFI is actually easier anyway, IMHO. ... Maybe I should stop complaining and write that tutorial myself instead. Hmm.
引用教程中“过多理论反而有害”的观点,认为其耐人寻味
“大学毕业后,过多的理论比没有理论更糟,因为它会让事情看起来比实际更难。”我大约每三分钟就改变一次对这句话的看法。我想这说明它是句好话。
jhinra查看英文原文
“Once you pass college, excessive theory is worse than no theory because it makes things seem more difficult than they really are.” About every third minute I’ve changed my mind about this quote. I think that means it’s a good quote.
写 OS 能让人理解 Linux 的设计,读懂开源内核代码
写操作系统是个有趣的练习,它会让你体会到让 Linux 这样可用、相对健壮且高性能的系统需要付出多少努力。自己尝试实现过这些功能之后,再去看 Linux(或其他开源 OS)如何实现也很有意思。你会发现,一旦知道某段代码要解决什么问题,Linux 的大部分内容都是可以理解的。
jeffreyrogers查看英文原文
Writing an OS is a fun exercise and it makes you appreciate all the effort that goes into making something like Linux usable and relatively robust and performant. It's also interesting to look at how Linux (or other open source OS) implements some of these features once you've tried implementing them on your own. You'll find that much of Linux is understandable once you know what problem the code in question is trying to solve.
作者现身说法:项目因文件系统实现困难而停滞,欢迎反馈
大家好,我是作者。感谢大家的善意评价。这是我待业期间启动的项目,可惜在实现文件系统时遇到困难,进展有些停滞。真心希望以后能继续做下去。欢迎留言评论,我非常感激。
carlesfe查看英文原文
Hi, author here. I’m humbled by the kind words. This is a project I started when I was in between jobs and unfortunately it’s kind of stalled because I had difficulties implementing the file system. Really want to get back to it some time. Anyway, feel free to leave your comments, I appreciate them a lot.
历次讨论
同类还值得读
TTY 揭秘(2008)
The TTY demystified (2008)
经典文章深入剖析了 Unix/Linux 中 TTY 子系统的工作原理,包括线路规程、终端驱动、信号与控制字符等机制。
系统与基础设施上首页 11 次 · 2009–2025linusakesson.net编辑精选为什么 GNU grep 这么快
Why GNU grep is Fast
FreeBSD 邮件列表上一篇广为流传的帖子,解释 GNU grep 为什么快:核心在于 Boyer-Moore 字符串搜索算法配合精心优化的内部循环和 I/O,让程序在搜索时“…
系统与基础设施上首页 9 次 · 2010–2022lists.freebsd.orgXplain:为普通人讲解 X11
Xplain – Explaining X11 for the rest of us
《Xplain》是作者(HN 用户 Jasper_)写的一系列 X11 长文,用他在浏览器中重建的 X11 绘图模型做交互演示,讲解 X11 的绘图模型与窗口系统设计。
系统与基础设施上首页 6 次 · 2013–2020magcius.github.io编辑精选旋风教程:为 Linux 创建极小 ELF 可执行文件(1999)
A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (1999)
breadbox 写于 1999 年的经典教程,主题是如何为 Linux 手工构造并裁剪出体积极小的 ELF 可执行文件。
系统与基础设施上首页 6 次 · 2007–2025muppetlabs.comPostgreSQL 内部原理
The internals of PostgreSQL
《The Internals of PostgreSQL》是一本免费在线书籍,系统讲解 PostgreSQL 的内部实现,包括查询处理、并发控制、WAL、缓冲区管理等核心机制。
系统与基础设施上首页 5 次 · 2017–2025interdb.jp编辑精选