Linus Torvalds 与 Jim Zemlin 访谈——开源领导力峰会 2017 文字记录
本页标题、字幕、摘要和阅读笔记为已保存的 AI 译文,可能有误。时间戳与来源一致,可展开查看原始字幕,并对照原视频核对。
在与 Jim Zemlin 的 2017 访谈中,Linus Torvalds 解释了试错如何塑造了开发者在 Linux 内核上的协作方式。
转录来源:Vidleaf 上的自动语音识别(可能包含错误)。AI 标点由 Vidleaf 添加;保留原始措辞和时间戳锚点。原始转录可在下方查看。
AI 生成的摘要
Linus Torvalds 将本次会话定位为一次轻松的访谈,说他讨厌演讲也讨厌准备演讲,并且倾向于去能做一些有趣事情的地方,比如水肺潜水。关于内核,Greg Kroah-Hartman 的粗略统计表明每天大约新增 10,000 行、删除 8,000 行、修改约 1,500–1,800 行;Torvalds 将这种高流量归因于代码和开发模型的模块化,使工作能够并行进行,而单个补丁可能在一两天内落地,大型重组则可能需要数月或一年。他说大约在 20 年前他就不再阅读所有补丁了,因为那使他成为瓶颈,质量反而来自一个由信任和维护者组成的社交网络,维护者信任他人,并在每一层级进行检查;一项调查发现,大约 95% 的核心 Linux 开发者是由公司支付薪酬的专业人士,而当人员流动时,信任仍然属于个人而非公司。他将此与 Cloud Foundry 的结对编程进行对比,后者用于加速信任和共情,并将 Linux 缺乏本地核心圈子部分归因于他来自芬兰赫尔辛基。关于 Git,他对它的增长感到惊讶,认为 GitHub 等托管平台显然是 800 磅大猩猩,并强调他只担任了大约六个月的维护者,而 Junio Hamano 已经担任了 10 年的出色维护者。他将开源的优势描述为广泛的试错,将软件开发比作生物进化而非智能设计,并将其与那些无法承受用 10 个团队探索整个空间而浪费资源的公司进行对比。内核的发布模式从三年发布一次转变为大约十年前在内核峰会上提出的八周、两个月的日程,当时所有人都嘲笑它短得不切实际;现在这个周期通常是两个半月,并且运行良好。他说他的压力时期一直与流程有关,从不与代码有关,他相信 99% 分汗水加 1% 分灵感,称行业创新言论为“扯淡的创新”,并希望人们倾听那些真正做事的人。
根据文字稿生成。请对照原始视频核查所链接的段落。
带时间戳的章节摘要
Linus Torvalds 谈演讲、爱好和“被公交车撞”的问题
引言与 Linus Torvalds 对演讲的抵触
- [0:00] 主持人介绍林纳斯·托瓦兹是 Linux、Git 以及一款潜水应用的创造者。
- [0:31] 林纳斯说他并不做演讲,也讨厌准备演讲,尤其是在不知道听众期待什么的情况下。
- [0:38] 他开玩笑说,如果问题不够有趣,那应该怪吉姆。
轻松的访谈形式以及围绕活动四处旅行
- [0:46] 主持人把这场活动描述为一次吹捧式的访谈,而非尖锐的新闻采访。
- [0:53] 主持人指出林纳斯参加许多活动,并且喜欢水肺潜水,所以他会围绕许多活动去潜水。
- [1:07] 林纳斯澄清说,他在这次活动上带着滑雪板,但那些不是他的。
- [1:12] 他说他通常只去那些能玩得开心的地方,但偶尔赶上情人节,他就会去他妻子能玩得开心的地方。
“被公交车撞到”的问题以及各地的反应
Linux 内核的开发节奏与组织方式
每日代码变更统计
- [2:15] 格雷格·克罗阿-哈特曼的粗略统计表明,Linux 每天大约新增 10,000 行、删除 8,000 行,并修改大约 1,500–1,800 行。
- [2:28] 这种每日开发节奏被形容为惊人且令人震撼,尤其是对刚接触开源的人来说。
组织代码与维护者职责以避免冲突
- [3:02] 内核被描述为最大的项目,为其编写的代码量最大,并且已经开发了 25 年。
- [3:08] 在这段历史中,一个持续存在的问题是人们互相踩到对方的脚。
- [3:20] 代码、代码流动以及维护者职责都经过了组织,使得主要痛点——人们对某段代码意见不一——基本消失。
- [3:36] 内核在各个层面都经过组织,使人们能够独立工作。
并行模块化开发与逐补丁速度
Linus Torvalds 谈 Linux 内核开发中的信任与质量
技术作为共识与分布式质量控制的基础
- [4:54] 技术使人们能够就问题达成一致,因为它通常有相当明确的对错,所以人们可以就最终结果达成共识。
- [5:14] Linus 并不通过亲自阅读所有补丁来确保质量;他过去这样做,但大约 20 年前这使他成为瓶颈,于是他停止了。
- [5:32] 质量反而来自社交网络和信任,以及找到能够胜任工作的人。
分层信任与维护者链条
- [5:40] Linus 信任的维护者可能同样不阅读代码,但他们有自己信任的人。
- [5:49] 这个强大的网络使得每个版本都有上千人参与,并在每个信任层级进行检查。
- [6:09] 代码在最低层级接受检查,而当你沿着维护者链条向上移动时——通常经过三、四或五个人——总有一层信任和熟悉的人。
- [6:23] Linus 合作的许多人已经与他共事超过 25 年,不过新人也源源不断地加入。
专业开发者与基于个人的信任
- [6:49] 一项调查发现,约 95% 的 Linux 开发者,尤其是核心项目中的开发者,是由各公司支付薪酬的专业开发者。
- [7:05] 建立的信任是针对项目中个人的,并且花费了大量时间。
- [7:14] 当人们在公司之间流动时,信任不会留在公司,而是留在个人身上。
赢得进入内核信任网络的资格
- [7:26] 人们有时认为进入内核很难,因为新人期望发送一个补丁就离开,而事实并非如此。
- [7:41] 真正耗时的是发送大量小补丁,直到维护者信任你,此时你成为整个信任网络的一部分,而不仅仅是发送补丁的人。
结对编程与内核的远程、非本地化模式
- [8:04] Cloud Foundry 采用结对编程,开发者在两个屏幕上编写相同的代码,以加速在内核中需要很长时间才能建立的信任和共情。
- [8:20] 内核有些奇特,它的做法在其他场景中未必总是合理;例如,无法让人坐在一起,就意味着工作方式与其他一些公司不同。
- [8:39] 许多项目即使开源并使用电子邮件或互联网,也比内核本地化得多,往往位于公司或大学内部,信任来自以前就认识对方、彼此距离近并且属于内部圈子。
- [9:13] Linux 从未有过那种本地内部圈子,Linus 部分将其归因于自己来自芬兰赫尔辛基,这意味着他能合作的大多数人都是远程的,不像 BSD 等传统 Unix 项目发生在某一所大学内部。
Git 的意外增长与托管的作用
对 Git 被广泛采用的惊讶
- [10:18] 演讲者确实对 Git 的发展方向感到惊讶,因为它当初是为了解决内核社区的问题而编写的,而且在很长一段时间里似乎没有其他人关心分布式开发。
- [10:45] 在 Git 最初大约三四年里,最大的抱怨之一是它太不一样了,人们必须学习新东西,尤其是那些从 CVS 转过来的人。
- [11:09] 演讲者对转变之快感到惊讶,人们接受了分布式开发模型,而 GitHub 等公司让托管 Git 仓库变得容易。
- [12:09] 这花了很长时间,然后在大约一年内,情况从许多人抱怨 Git 多么不同,变成了疯狂增长。
为什么分布式模型降低了托管信任门槛
CVS 及其他源代码控制系统
- [12:24] 演讲者感到高兴,因为 CVS 存在得太久了,其他源代码管理器也存在,但似乎没有一个能像 Git 这样接管局面。
- [12:38] 他并不声称 CVS 在 40 年前是邪恶的;而是说时代已经把它抛在了后面。
感谢 Junio Hamano 和 GitHub
开源作为演化式的试错
超越快速跟随的需求
开源作为演化式的市场
- [14:56] 开源的真正优势在于,推动边界需要大量的试错,因为没有人能确切地说出应该怎么做。
- [15:20] 演讲者将软件开发比作生物演化而非智能设计,并指出许多人对事物应该走向何方都有自己的想法,因此需要一个市场来尝试它们。
- [15:48] 开源让不同的群体各自去尝试自己的做法,然后回来报告某些东西确实奏效了。
为什么公司无法广泛探索
- [16:01] 这在其他环境中非常困难,因为公司承担不起浪费这类资源的代价。
- [16:10] 公司不可能简单地用 10 个不同的团队去探索整个空间,看看什么有效;演讲者怀疑有些公司尝试过,但可能只尝试了一次。
竞争性项目与未合并的代码
- [16:27] 在开源中,尤其是在内核中,存在竞争性项目以及大量从未被合并的代码。
- [16:36] 一些开发者克隆了演讲者的代码树并做了自己的尝试,但始终无法让它工作,或者它只在他们非常特定的平台上才能工作。
- [16:52] 这些小众努力从未在其他地方取得进展,也从未被合并回去,因为这样做没有意义。
长期稳定版本
- [17:03] 内核曾在某个时候决定做一个长期稳定版本,并在其间穿插发布一些版本。
Linux 内核发布模式的转变
传统三年发布模式的问题
- [17:28] 传统模式每个版本需要三年时间,并针对少数旗舰特性,因为大型新特性需要那么长时间才能完成。
- [17:51] 开发树用新特性让极客们兴奋不已,但略微不稳定,因此大多数传统用户选择留在后面。
- [18:20] 在这种模式运行了五六年之后,切换造成了严重的问题,因为变化太大了。
- [18:26] 很少有人测试开发内核,因为它们被认为不稳定,所以只有最热情或最有前瞻性的人才会针对自己的工作负载测试它们。
- [18:44] 完成一个稳定版本总是很痛苦,而且无法扩展;那是一场灾难,但花了很长时间才意识到它有多糟糕。
采用八周发布周期
Linus Torvalds 谈流程、代码与 Linux 的成长
流程问题与代码问题
- [19:50] Torvalds 说流程运转起来几乎无聊,因为太轻松了。
- [19:56] 他说他个人压力大的时期都与流程有关,从来与代码无关。
- [20:03] 不工作的代码可以令人兴奋和有趣,即使撞墙几周很令人沮丧。
- [20:15] 解决技术问题带来巨大的成就感,所以代码问题是好事。
- [20:31] 流程问题很痛苦,绝不应该有;他很高兴他们的流程在过去 10 年里一直有效,并希望它能继续下去。
- [20:46] 当流程不奏效时,人们开始真的互相生气。
持久性与 Git 中断
- [20:52] 采访者指出 Torvalds 发布 Linux 内核已经 25 年,称这种毅力令人惊叹。
- [21:10] Torvalds 澄清说,去做 Git 的中断实际上大约两个月,对于一项小工作来说是非常短的休息。
Linux 基金会参与的规模
当项目不再只是个人项目时
林纳斯·托瓦兹谈实际工作与创新炒作
技术项目中汗水胜过灵感
- [22:43] 托瓦兹坚信99%汗水加1%灵感的理念。
- [22:59] 他把业界大肆谈论的创新称为“扯淡创新”,并说任何人都能创新。
- [23:06] 他对“不同凡想”的创新推动不屑一顾,认为毫无意义,因为99%的工作是把事情做好。
- [23:23] 他对科技新闻周期最不喜欢的部分是对创新、新想法和彻底变革的持续炒作,因为那不是真正工作所在。
关注细节和单个项目
- [23:40] 他说真正的工作在于细节。
- [23:48] 他更喜欢专注于一个项目,而不是从一个想法跳到另一个想法。
- [23:54] 那些四处奔波提出想法的人是需要的,但他们不是真正有用的人;他们最终可能会把想法提供给真正做事的人。
倾听做事的人
- [24:11] 他希望人们从他的演讲中得到的关键点是:真正做事的人才是你应该倾听的人。
- [24:22] 如今他不再亲自做事;他合并别人的工作。
- [24:28] 他希望会议少谈有远见的创新,多谈日常问题以及如何解决它们。
采访者的结束语
前 3 段双语对照预览 · 免消耗额度
以下展示前 3 段已保存中文译文与英文原版字幕的逐段对照(零额度消耗):
我想首先欢迎一位我认为你们大多数人都熟悉的人上台。今天我们有一系列出色的演讲者,但第一位我认为几乎不需要介绍。他创建了Linux,创建了Git这个东西,还创建了一个你们很多人可能不知道的出色潜水应用。请欢迎林纳斯·托瓦兹。欢迎。谢谢。和往常一样,我不做演讲。
I would like to start off by welcoming someone who I think most of you are all familiar with to the stage. We've got a great lineup of speakers today, but the first one I think needs very little introduction. He created Linux, he created this thing called Git, he created this great diving application that many of you may be unaware of. Please welcome Linus Torvalds. Welcome. Thank you. And as usual, I don't do talks.
我讨厌准备演讲,尤其是当我不清楚听众期待什么、对什么感兴趣的时候。所以如果问题不够有趣,就怪 Jim 吧。好吧,那么。嗯,好吧,让我说,这基本上就是一篇吹捧式的采访。我们要做的,这不是什么硬核新闻。但是,你知道,有意思的是,你经常来参加我们的活动,而且我知道你喜欢水肺潜水,所以你会在很多活动周边去潜水。
I hate preparing talks, especially when I don't know what people are expecting or interested in. So blame Jim if the questions are not interesting. All right, well. yeah, well, let me just, this is pretty much a puff piece interview here. we're going to, this is not a hard-hitting journalism. but, you know, it's funny because you come to a lot of our events, and i know that you like scuba diving, so you go diving around a lot of events.
我看到你把这个活动的滑雪板带来了。不,不,我当时拿着滑雪板,但那其实不是我的。哦,好吧,所以你不是。不,所以通常我只去那些我能做有趣事情的地方,但偶尔赶上情人节,我就会去我妻子能做有趣事情的地方。我注意到她现在就在山上某个地方。正是。因为有人把我拉到一边说:“水肺潜水、高山滑雪,Jim,你带着 Lena Storvall 来这里做什么?
i saw you brought your skis to this event. no, no, i was carrying skis, but they were not actually mine. oh, okay, so you're not. no, so usually i only go to places where i can do fun stuff, but then occasionally it's valentine's day, and i go to places where my wife can do fun stuff. i noticed that she's up on the mountain somewhere now. exactly. because someone pulled me aside and said, "scuba diving, downhill skiing, jim, what are you doing here with lena storvall?
[0:00] 我想首先欢迎一位我认为你们大多数人都熟悉的人上台。今天我们有一系列出色的演讲者,但第一位我认为几乎不需要介绍。他创建了Linux,创建了Git这个东西,还创建了一个你们很多人可能不知道的出色潜水应用。请欢迎林纳斯·托瓦兹。欢迎。谢谢。和往常一样,我不做演讲。
[0:32] 我讨厌准备演讲,尤其是当我不清楚听众期待什么、对什么感兴趣的时候。所以如果问题不够有趣,就怪 Jim 吧。好吧,那么。嗯,好吧,让我说,这基本上就是一篇吹捧式的采访。我们要做的,这不是什么硬核新闻。但是,你知道,有意思的是,你经常来参加我们的活动,而且我知道你喜欢水肺潜水,所以你会在很多活动周边去潜水。
[1:04] 我看到你把这个活动的滑雪板带来了。不,不,我当时拿着滑雪板,但那其实不是我的。哦,好吧,所以你不是。不,所以通常我只去那些我能做有趣事情的地方,但偶尔赶上情人节,我就会去我妻子能做有趣事情的地方。我注意到她现在就在山上某个地方。正是。因为有人把我拉到一边说:“水肺潜水、高山滑雪,Jim,你带着 Lena Storvall 来这里做什么?
[1:36] ”而我告诉他们的是,显然我的麦克风没在工作,但显然对你有危险的不是滑雪或水肺潜水,而是那种总担心被公交车撞到的持续恐惧。人们总是问我这个。是啊,我不知道,尤其是在美国,这对我来说完全说不通。在欧洲赛道上就更说得通了。好吧,我们待会儿要谈谈如果你被公交车撞了会发生什么,但是。你知道,我认为让很多人震惊的一件事,尤其是刚接触开源或正在做项目的人,就是 Linux 的开发节奏。
[2:15] 所以我们向 Greg Kroah-Hartman 要了一些统计数据,他大致描述的是:每天 Linux 中会新增 10,000 行、删除 8,000 行,并修改 1,500 个奇数行、1,800 个奇数行。这大概就是开发节奏。这很惊人。而且,你知道,这里有很多开发者一想到这个开发节奏就感到震惊。我的意思是,我问你的第一个问题是,你做这件事已经很久了。你是如何想出一套系统,让这种开发节奏得以持续的?
[2:49] 嗯,内核有点特殊。它是最大的项目。它也是迄今为止为其编写的代码量最大的项目,就是那个粘贴的东西。部分原因是我们已经这样做 25 年了,而我们一直面临的一个问题就是人们互相踩脚。所以在整个历史中,我们所做的就是。
[3:20] 组织代码,组织代码的流程,组织我们的工作。仅仅是维护工作,这样主要的痛点,也就是人们对某段代码意见不一的问题,基本上就消失了。所以内核在每一个层级上都得到了组织,让人们可以独立工作。而且这稍微有点,我的意思是,实际情况是,人们看到有大量的补丁涌入,而且我们有,统计数据确实很惊人,但当你去看任何一段具体的代码时,开发速度未必就快。
[4:03] 这可能需要,我的意思是,有些补丁一两天就进去了,但也可能需要几个月。大的重组可能需要一年才能发生,所以每个单独的部分可能未必。这不是那种极速的事情。只是我们能够真正把代码模块化,把整个开发模式模块化到我们可以大量并行工作的程度,而这最终就带来了这种高流量。
[4:34] 但你并不是,也许你是,你并不是自己读所有这些代码。比如你是如何培养这种能力的。你知道,当你做最终发布时,要确保那是质量不错的代码,而且这是一个社会性项目。我的意思是,它关乎技术,而技术正是让人们能够就问题达成一致的东西,因为技术往往有非常,它们不是非黑即白,但至少通常有相当明确的对与错。
[5:08] 所以人们,你可以让人们就最终结果达成一致。但与此同时,仅仅由我来确保质量,并不是因为我读完了所有补丁。我以前会读,但那成了一个大问题,因为我最终成了,这是20年前的事了,我成了瓶颈。所以我不再那样做了。靠的是社交网络、信任,以及找到能做这些工作的人。
[5:40] 而且我相信他们可能也不做同样的代码阅读,但他们有他们信任的人。我们有一个非常强大的网络,这就是为什么每次发布都能有上千人参与。在这上千人中,很多人最终处于这些信任层级,每个层级都有检查,不是检查代码,而是,嗯,最低层级是检查代码,但随着你在维护者链条上往上走,而这个链条通常是三、四、五个人。
[6:18] 你始终拥有那种程度的信任,以及那种了解他人的能力。与我共事的许多人,我已经和他们一起工作了超过 25 年。也有新人不断加入,但存在着这种……完整的人性。就像那里有潜力,我们非常广泛地利用它来确保流程运转,并且花了 25 年才达到现在的水平。我是说,在流程层面上也是如此。是的。
[6:49] 而且有趣的是,我们做过一项调查,我认为在 Linux 上工作的开发者中,尤其是核心项目里的 95%,都是受雇于各家公司的专业开发者,其中许多公司也派代表来到了这里。但你建立的信任是建立在那个项目中的个人身上的,这需要很长时间。是的,而且这一点也非常明显:当人们在公司之间流动时,信任并不会留在公司;信任留在个人身上。
[7:22] 而且很明显,人们不会永远留在这里。人来人往,我认为这也是人们有时觉得很难进入内核的原因之一。你以为你可以直接进来发个补丁然后就走人,但事实并非如此。真正需要时间的是发出许多小补丁,直到你达到维护者信任你的程度,到那时你就不仅仅是一个发送补丁的人了。
[7:55] 你成为整个信任网络的一部分。是的,是的,这很有趣。你知道,我们有一些项目。Cloud Foundry 就是一个有趣的项目。他们使用结对编程技术,这在 Pivotal Labs 是一种有趣的技术,开发者们在两个屏幕上一起编写相同的代码,以加速那种信任和共情,你知道在内核中这需要很长时间。我的意思是,内核有点奇怪,我们所做的事情在其他环境中不一定总是说得通。
[8:28] 就拿我们为例,无法让人们挨着坐在一起,这仅仅意味着我们必须以不同于其他公司通常做法的方式来工作。又或者有很多项目更加局限于内核,即使它们是开源的,即使它们大多数时候使用电子邮件或……互联网进行沟通。很多项目往往是在公司内部,或者大学内部,又或者只是有很多类似的情况——信任来自于之前就认识对方,所以身处附近、成为这个内部圈子的一员有很多优势,而在 Linux 我们从来没有这些,我把其中一部分归因于我自己来自芬兰赫尔辛基,这意味着。
[9:22] 我能合作的大多数人,绝大多数都是远程的。我的意思是,我身边并没有像某些传统 Unix 项目那样的本地团队,比如 BSD 项目,它们实际上是在某所大学内部产生的。是的。所以 Linux 这个项目也是如此,为了应对这种节奏,我喜欢这种社会结构,但你也需要特殊的工具。于是你创建了 Git 来做到这一点。
[9:54] 现在我们处在这个,你知道,有些人喜欢称之为后 GitHub 时代,昨天 GitHub 的某个人在这里,大声说 GitHub 上有 50 百万个仓库。那么你给 GitHub 项目什么建议呢?首先,你对 Git 的发展感到惊讶。然后你会给使用 Git 的项目什么建议?为了帮助他们建立信任关系,并大规模地做这类工作,关于惊讶的部分,我真的对 Git 的发展感到惊讶,因为显然。
[10:30] 是为了解决我们在内核社区遇到的问题而写的。没有其他人,或者说很长一段时间看起来没有其他人在意整个分布式环境和分布式开发。事实上,在 Git 最初的三四年里,关于 Git 最大的抱怨之一就是它多么不同,每个人都必须学新东西,人们讨厌它。我的意思是,那些不是内核内部的人,在学了 CVS 之类的东西之后试图学习它。
[11:09] 然后……我真的很惊讶它是如何转变的,显然人们真的开始看到整个分布式开发模型,并让像 GitHub 这样的公司利用分布式开发模型,让它变得如此容易。托管 Git 仓库,如果你没有分布式,这从来都不是真的。集中式模型的问题往往是,你只有。
[11:41] 恰好一个中心点,这意味着真的很难信任一家新公司或任何托管公司,对吧?因为如果你是一家托管公司,而你托管着那个唯一的集中式仓库,你就太关键了,以至于真的很难达到那一步。而分布式意味着现在成为一家托管公司并提供服务和增值要容易得多。我想说的是,这确实花了很长时间,然后一切就像在一年之内,从有很多人抱怨它多么不同,变成了疯狂增长。
[12:24] 这让我很惊讶,当然我也非常高兴,因为 CVS 存在的时间实在太长了,而且还有很多其他的源代码管理工具。现在依然如此。嗯,我是说,它还存在,我不是想说 40 年前的 CVS 是邪恶的。我更想说的是,时代已经把它抛在了后面,而似乎没有其他源代码管理系统能够做到。
[12:57] 真正接管并实现 Git 似乎已经做到的事情。所以是的。这显然是一件值得骄傲的事。但每次我谈论 Git 时,我都想非常非常清楚地说明,我可能只做了六个月的维护者。那是 10 年前的事了,对吧?所以我想出了设计,想出了基础,然后滨野纯(Junio Hamano)作为维护者已经 10 年了,非常出色。这一点始终要记住,除了最初的火花之外,所有功劳都归他。
[13:30] GitHub,没有功劳?不,我确实认为,事实是……我是说,没有 GitHub,还有其他公司,但 GitHub 显然是那个 800 磅的大猩猩。当然。没有那种基础设施,它不会走到任何地方。而且我认为 GitHub 存在这一事实,以及……有几个项目决定,嘿,这个模式就是非常有效。我认为所有 Ruby 项目都突然切换了,我认为那是推动它不仅仅是……的因素之一。
[14:08] 那些真正在乎的极客们。现在,GitHub 做得非常出色,你知道,这就是为什么人们称之为后 GitHub 世界,仅仅是正在进行的惊人开发。所以你有了工具,你有了信任关系。我还有一个问题,这个问题经常出现在我们的许多其他项目中。对于内核来说,似乎在最初很长一段时间里,你是在快速跟随一个现有技术,需求也由此而来。
[14:42] 这种情况已经很久不是这样了。除了你如何处理这么多代码之外,你如何理解外面有哪些需求,你想集成哪些特性和功能?嗯,我是说,这就是开源的真正优势。我认为,如果你想做新的事情,真正推动边界的事情。你真正能做的唯一方式……我是说,没有人能真正说这就是做事的方式。
[15:15] 所以,你需要做的就是大量的试错。我经常把软件开发比作生物过程,那真的就是进化。我的意思是,它不是智能设计。我身处其中,我可以告诉你,无论你怎么想,它绝对不是智能设计。你得有很多人,他们有自己的想法,知道事情该往哪个方向发展,然后你需要一个市场,让你可以尝试这些想法,而这就是开源允许所有这些不同群体去做的。
[15:55] 各自去做自己的事,然后回来说,嘿,看,我做了这个,而且它真的行得通。这在任何其他环境里都很难做到,因为如果你在一家公司里,你浪费不起那种资源。如果你在一家公司里,你不能说,好吧,我们就来探索整个这个空间,把 10 个不同的团队放上去,看看什么行得通。那行不通。我的意思是,我……我怀疑很多公司试过,但他们可能只试过一次。
[16:27] 但在开源里,我们 literally 就是这么做的,尤其是在内核里。我们有相互竞争的项目。我们有很多代码永远不会被合并,因为有人跑出去,克隆了我的代码树,做了他们的事,他们永远没法让它工作,或者他们勉强能让它工作。工作,但它只对他们那个非常特定的平台有效,那也没问题。别误会,正是这些小众的东西永远去不了别处,也永远不会被合并回来,因为那没有意义。
[17:01] 但你曾经有过。内核决定做一个长期稳定版本,然后在中间有间歇性的发布。是什么促成了这个决定?所以。我们经历过很多不同的模式,而且……它们都有巨大的问题,直到我们在大约 10 年前想出了我们现在用的模式,它似乎运行得非常好。传统模式是你花三年做一个新版本,瞄准某个……
[17:36] 特性。我的意思是,通常有很多不同的特性,但有几个旗舰特性,你知道,那就是你在做的。而花三年时间的原因是,完成大的新特性需要那么长时间。与此同时,你有了这个开发树,所有极客都为它兴奋,它做新东西,但它也稍微有点不稳定,所以大多数传统用户倾向于留在后面,而那……
[18:10] 这种做法算是有点用,但意味着我们这样做了大概五六年。而当你随后进行切换时,它引发了可怕的问题,因为太多东西已经变了。测试开发内核的人少之又少,因为它们被认为不稳定。所以只有最兴奋的人或最有远见的人——而这样的人非常少——才会测试开发内核,以确保它们能在自己的工作负载下正常运行。
[18:44] 所以每当我们完成一个稳定版本时,总是痛苦不堪,而且它就是……它无法扩展,行不通。它……它。那是一场灾难,但我们花了很长时间才意识到它有多糟糕。然后10年前,没人相信这能行。真的,房间里所有人都在笑。在内核峰会上,我们说,我基本上是说,我想要一个八周的发布周期,两个月,就这样,对吧?
[19:14] 大家都知道我是在推动一个短得不现实的目标,这样也许你能把它从三年缩短到六个月,对吧?但你瞄准两个月,是为了达到六个月。而现在我们实际上已经做到了,发布周期通常是两个半月,我们已经坚持了10年,这很美好。它真的有效。它避免了所有我们过去常有的问题。它解决了那么多我们甚至不知道需要解决的问题。
[19:45] 所以它几乎有点无聊。我们的流程运转得如此之好。我说几乎无聊,是因为流程顺畅时,人会放松得多。对我个人来说,所有真正压力巨大的时刻,都是关于流程的。从来不是关于代码的。当代码不工作时,那其实可以很刺激,对吧?那可以很有趣。那可以是——好吧,你拿头撞墙撞上几个星期,那可以非常令人沮丧。
[20:15] 但当你解决它时,那种成就感是巨大的,对吧?我希望在座的人都知道这一点,对吧?代码、技术问题可能具有挑战性、令人沮丧,但它们是好事。流程问题才是真正的麻烦。你永远、永远都不想有流程问题。这就是为什么我如此高兴,我们的……流程。在过去10年里一直运转良好,并且希望能继续运转下去,因为那正是——当流程不奏效时,人们开始真正互相愤怒的时候。
[20:52] 好吧,最后一个问题,你知道,10 10 年是很长的时间,但你发布 Linux 内核已经 20 年了。五年啊,你知道,任何人能坚持做同一件事 25 年,这都需要惊人的毅力。我了解到你曾休息了六个月,听起来是为了做 Git 这件事,但实际上更像是只有两个月,一次非常短暂的休息,为了一个小项目。
[21:24] 但最后一个问题是,你知道,现在有将近 900 个组织参与这里所有不同的 Linux 基金会项目,它们几乎在计算的每个方面都在编写代码。而且这些不仅仅是快速跟进的项目。它们是汽车行业、电信行业的核心主要项目。对你来说,有没有那么一个时刻,你心想,啊哈,这太庞大了,这比你刚开始时想象的要大得多?
[21:58] 有没有什么特别的事情让你……我以前回答过这个问题。其实并没有真正发生过那样的事。有过几个让我惊讶的时刻,但真正重要的时刻是它从个人项目转变过来的时候。那是在发布后仅仅六个月内。当时,我甚至不认识那些给我发补丁的人,也不亲自认识他们。我的意思是,显然现在我能通过电子邮件认识他们,但是……但有很多人我从未见过。就是超越了最初那个项目只为我服务的个人阶段,我确实想提一下整个 25 年的事情。
[22:38] 我非常信奉……就是 99% 分汗水、1% 分努力、1% 分灵感这个说法。任何技术项目,这个行业大谈特谈的创新都是扯淡的创新。任何人都能创新。搞这些“不同凡想”的大创新,去他的,毫无意义,其中 99% 的关键是把工作做好,而且实际上,那是我最不喜欢技术新闻周期的一部分,就是这种不断的……
[23:31] 创新和新想法,这将彻底改变一切,所有这些炒作,真正的工作并不在那里。是的,真正的工作在于细节,而我显然是那种喜欢专注于一个项目的人。我不喜欢从一个想法跳到另一个想法。你需要那些四处飘荡、提出想法的人,但他们并不是真正有用的人。
[24:03] 他们才是最终可能给那些真正动手做事的人提供想法的人。所以我希望你们,我是说,这就是任何人应该从这场演讲中带走的东西:真正动手做事的人,才是你真正应该倾听的人。而如今,我实际上已经不再动手做事了。我合并别人的工作。但我希望……会议也是如此,少一些关于远见式创新的东西,多一些关于日常工作的内容。
[24:39] 我的问题是什么,我又想如何解决它们?嗯,总是既鼓舞人心又令人沮丧,Torvalds 先生。所以我认为可以公平地说,真正的创新发生在你放下自我、坐下来动手做事的时候,这话说得在理。我觉得这是至理名言。那么,感谢你的到来。总是很愉快。
查看英文原始字幕
[0:00] I would like to start off by welcoming someone who I think most of you are all familiar with to the stage. We've got a great lineup of speakers today, but the first one I think needs very little introduction. He created Linux, he created this thing called Git, he created this great diving application that many of you may be unaware of. Please welcome Linus Torvalds. Welcome. Thank you. And as usual, I don't do talks.
[0:32] I hate preparing talks, especially when I don't know what people are expecting or interested in. So blame Jim if the questions are not interesting. All right, well. yeah, well, let me just, this is pretty much a puff piece interview here. we're going to, this is not a hard-hitting journalism. but, you know, it's funny because you come to a lot of our events, and i know that you like scuba diving, so you go diving around a lot of events.
[1:04] i saw you brought your skis to this event. no, no, i was carrying skis, but they were not actually mine. oh, okay, so you're not. no, so usually i only go to places where i can do fun stuff, but then occasionally it's valentine's day, and i go to places where my wife can do fun stuff. i noticed that she's up on the mountain somewhere now. exactly. because someone pulled me aside and said, "scuba diving, downhill skiing, jim, what are you doing here with lena storvall?
[1:36] " and what i told them was, apparently my mic is not working, but apparently it's not skiing or scuba diving that are dangerous to you, it's the constant fear of being hit by a bus. that's what people always ask me about. yeah, i don't know, especially in the us, it makes no sense at all to me. it makes more sense on the european circuit. well we're going to talk about what happens if you get hit by a bus in a minute here, but. You know, one of the things that I think shocks a lot of people, particularly people who are new to open source or who are working on projects, is the pace of Linux development.
[2:15] So we asked Greg Kroah-Hartman for some statistics, and what he roughly described was that 10,000 lines are added to, 8,000 lines are subtracted from, and 1,500 odd, 1,800 odd lines are modified in Linux every single day. That's sort of the pace of development. which is amazing. and, you know, there's a lot of developers in here who just think about that, the pace of development and just are shocked. i mean, my first question to you is, you've been doing this a long time. how do you come up with a system that allows that kind of development pace to continue?
[2:49] well, so the kernel is kind of special. it is the biggest project. it's by far the one that also has the... biggest amount of code written for it, just the paste thing. and part of it is we've been doing this for 25 years, and one of the constant issues we've had is people stepping on each other's toes. so for all of that history, what we've done is.
[3:20] Organize the code, organize the flow of code, organize our. just maintainership, so that the main pain point, which is people just disagreeing about a piece of code, basically goes away. so the kernel is literally organized at every level so that people can work independently. and it is slightly, i mean, what happens is people see that there's a huge influx of patches and there's a, we have, like, the statistics really are staggering, but then when you look at any particular one single piece of code, the development is not necessarily fast at all.
[4:03] it can take, i mean, some patches go in just in a day or two, but it can take months. it can take a year for... Big reorganizations to happen, so each individual piece may not be. It's not a breakneck speed kind of thing. It's just that we've been able to, to really modularize the code and modularize the whole development model to the point where we can just do a lot in parallel, and that's what then allows this high flow in the end.
[4:34] But you're not, maybe you are, you're not reading all this code yourself. Like how do you, how do you develop the ability to. You know, when you do your final release to be sure that that's that's code that's a decent quality and it's it's so it's a social project. I mean, it's about technology and the technology is what makes people able to agree on issues because technology tends to have very they're not black and white, but at least there's usually a fairly clear right and wrong.
[5:08] So people you can have people agree on. on the end result. but at the same time, the thing that just me ensuring quality, it's not because i read through all the patches. i used to, and it became a huge problem because i ended up being, and this is 20 years ago, i became a bottleneck. so i don't do that. it's the social network, the trust, and finding the people who can do the work.
[5:40] and i trust that they may not do the same code reading either, but they have people they trust. and we have a very strong network, and that's why we can have a thousand people involved in every release. of those thousand people, a lot of them end up being these levels of trust where there's checking at every level, not of the code, but of, well, code at the lowest levels, but as you move up the maintainership chain, and the chain is often three, four, five people.
[6:18] you always have that level of trust and the level of just knowing people. many of the people i work with, i've literally worked with for over 25 years. there are new people coming in also, but there's this. Whole human. Like, potential there that we use very extensively to make sure the process works and it's taken 25 years to get to where we are. I mean, right on a process level too. Yeah.
[6:49] And and you know what's interesting is that we did a survey and i think 95% of the developers who work on linux particularly in the core project. are all professional developers who get paid by various companies, many of which are represented here. But the trust that you've built is with the individuals in that project, and that's taken a lot of time. Yeah, and it's very noticeable too when people move between companies. The trust does not stay with the company; the trust stays with the person.
[7:22] And obviously, it's not like people stay around forever. People come and go, and that's, I think, one of the reasons people sometimes think it's hard to get into the kernel is because. You think you can just come in and shoot off a patch and go away, and that's not how it works. What really is takes time is to shoot off a lot of small patches until you reach the point where the maintainers trust you, and at that point you become something more than just the guy who sends patches.
[7:55] You become part of the whole network of trust. Yeah, yeah, it's interesting. You know, we have some projects. Cloud Foundry is an interesting project in that. they use a pair of programming technique which is an interesting technique at a pivotal labs where developers are programming together same code two screens in order to kind of accelerate that trust and empathy that you know in the kernel takes a long time. I mean the kernel is kind of odd and what we do. not necessarily always make sense in other settings.
[8:28] just the fact that we, for example, cannot have people sit next to each other just means that we have to work differently than you necessarily would do in some other company. or maybe there's a lot of projects that are much more localized to the kernel, even when they're open source and even when they use email or... Or the internet to communicate most of the time. A lot of projects tend to be. inside companies or maybe inside universities or maybe it's just that there's a lot of like there's the trust came from previously knowing the person so there's a lot of advantage to being close by and being part of this like inner group and in linux we never had that and i attribute some of it to me being from helsinki finland which meant that.
[9:22] most of the people, by far, that i could work with were all remote. i mean, i did not have the kind of local group around me that you find from some of the traditional unix projects, like obviously the bsds, which actually happened inside a particular university. yeah. and so also linux, the project, in order to handle this pace, i love the social construct, but you also needed special tools. and so you created git to do that.
[9:54] and now we're in this, you know, what some people like to call this sort of post-github era, where, you know, yesterday someone from github was here and shouted out that there are 50 million repositories on github. and what advice do you give to, you know, github projects? first of all, you're surprised about where git has gone. and then what advice would you give to projects that are on git? In order to help them build trust relationships and to do this kind of work at scale, so on the surprise part, I'm really surprised by where Git has gone because obviously.
[10:30] was written to be solve the problems we had in the kernel community. and nobody else, or it looked for a long time like nobody else cared about the whole distributed environment and distributed development. and in fact, for the maybe three, four first years of git, one of the biggest complaints about git was how it was so different and everybody had to learn something new and people hated it. i mean, people who came, who weren't inside the kernel and were trying to learn it after learning cvs or something like that.
[11:09] and then... I'm really surprised by how it switched, and apparently really people. started seeing the whole distributed development model and having companies like github just taking advantage of the distributed development model and making it so easy to then host git repositories, which was never true if you don't have distributed. the problem with centralized models tended to be that you had.
[11:41] exactly one point that was the central one, which means that it's really hard to trust a new company or any hosting company, right? because if you're a hosting company and you host the one centralized repository, you are so critical that it's really hard to even get there. and being distributed just meant that now it's much easier to be a hosting company and give services and value add. And what I'm trying to say is it really took a long time and then everything like within a year it went from having a lot of people complaining about how it was different to just growing like mad.
[12:24] And it took me by surprise and I'm very pleased obviously because CBS has been around for way too long and there were a lot of other source control managers. still is here. well, i mean, it exists, and i'm not trying to say cvs was evil 40 years ago. i'm more saying that time had passed it by, and no other source control system seemed to ever be able to.
[12:57] Really take over and get seems to have done. So yeah. And that's obviously a source of pride. But every time i talk about get, i want to make it very, very clear that i may i was the maintainer for six months. And that's 10 years ago, right? So i came up with the design, i came up the basics and then junior hamano has been such an incredible maintainer for 10 years that. that's always something to keep in mind, that all credit goes to him apart from that initial spark.
[13:30] github, no credit? no, i do think that the fact that. I mean, without github, there's other companies too, but github is clearly the 800 pound gorilla. Sure. Without that kind of infrastructure, it wouldn't have gone anywhere. And i think the fact that github existed and. which there were a few projects that decided, hey, this model just works very well. I think that was all the ruby projects switched like suddenly, and I think that was one of the things that drove it to to be more than just.
[14:08] The colonel people and the geeky people who really cared. Now, and github has done an amazing job of, you know, and that's why people call it the sort of post github world of just the phenomenal development that's going on. So you got the tools, you got the trust relationships. What about one question that i have? And then that comes up often for a lot of our other projects is. For the kernel, it seemed like for the first long period of time you were fast following an incumbent technology and requirements sort of flowed from that.
[14:42] that has not been the case for a long time. how in addition to how do you process so much code, how do you understand what requirements are out there, what features and functionality you want to integrate in? well, i mean, that's that's the real advantage of open source. i think is that if you want to do. something new, something that really is pushing the envelope. The only way you can really... I mean, nobody can really say this is the way to do it.
[15:15] So what, what you need to do is just a lot of trial and error. And I often compare software development to biological processes where, where it really is evolution. I mean, it is not intelligent design. I'm. there in the middle of the thing and i can tell you it is absolutely not intelligent design whatever you you want to think you have to have i mean you have a lot of people who have their ideas of where things need to go and then you need to have a marketplace where you can try them out and that's where open source allows all these different groups to just.
[15:55] go off, do their own thing, and then come back and say, hey, look, i did this and it actually worked. and that's very hard to do in any other environment because if you're inside a company, you can't afford to waste those kinds of resources. if you're inside a company, you can't say, okay, let's just explore this whole space and put 10 different teams on it and see what works. that does not work. i mean, i... I suspect a lot of companies have tried it, but they probably only tried it once.
[16:27] But in open source, that's literally what we do, particularly in the kernel. We have competing projects. We have a lot of code that never ever gets merged because somebody went off, they cloned my tree, they did their thing, they could never get it to work, or they could kind of get it to work. Work, but it only worked for their very particular platform, which is fine too. Don't get me wrong, it's these niche things that never go anywhere else and that never get merged back because there's no point.
[17:01] But you did at one point. The colonel decided to do a long term stable release and then have intermittent releases in between. What brought that decision about? So. We've gone through so many different models and... they've all had huge problems until we then figured out about 10 years ago the model we're on now, which seems to work really well. the traditional model is you take three years to make a new release and you aim for a certain.
[17:36] feature. i mean, there's usually many different features, but there's a few flagship features that you know, that's what you're working on. and the reason it takes three years is it takes that long to get big new features done. and in the meanwhile, so you have this development tree that all the geeks are excited about and that does the new stuff, but it's also slightly. Unstable, so most of the traditional users tend to stay back and that.
[18:10] kind of worked, but it meant we did that for. probably five, six years. and it caused horrible problems when you then did the switchover because so much had changed. so few people had tested development kernels because they were considered to be unstable. so only the most excited people or the most forward-thinking people, and there's very few of those, were testing development kernel in order to make sure that they worked for their workload.
[18:44] So whenever we then finished a stable release, we were always in huge pain, and it just... it does not scale, it does not work. It's... it. it was a disaster, but it took us a long time to figure out that it was so bad. and then 10 years ago, and nobody believed this would work. literally, everybody was like laughing in the room. and at the kernel summit, we said, i basically said, i want to have an eight-week release schedule, two months, that's it, right?
[19:14] and everybody knew i was like pushing for something unrealistically short so that maybe you could get it down to six months from three years, right? but you aim for two months in order to hit six months. and now we've actually done the release cycle is usually two and a half months, and we've done it for 10 years, and it's lovely. it really works. it has avoided all the problems we've used to have. it's solved so many things we didn't even know needed to be solved.
[19:45] so it's almost boring. how well our process works. and i say almost boring because it's so much relaxing, more relaxing when process works. all the really stressful times for me personally have been about process. they've never been about code. when code doesn't work, that can actually be exciting, right? that can be fun. that can be the, okay, you hit your head. on a wall for a couple of weeks and it can be very frustrating.
[20:15] but then when you solve it, the feeling of accomplishment is huge, right? i'm hoping people in the audience know that, right? code, technical problems can be challenging and frustrating, but they're good things to have. process problems are a pain in the ass. you never, ever want to have process problems. and that's why i'm so happy that our... process has worked for the last 10 years and hopefully will continue to work because that's when when people start getting really angry at each other when when the process doesn't work.
[20:52] Well, last question, you know, 10 10 years is a long time, but you've been releasing the linux kernel for 20. five years ah, you know, it's just an amazing amount of fortitude for anyone to do the same thing for 25 years. I understand you took a six month break, it sounds like to do this git thing ah, but it was actually more just two months. for a very short break for a minor effort.
[21:24] but the last question is sort of, you know, you got almost 900 organizations that participate in all the different linux foundation projects here that are creating code in almost every aspect of computing. and these aren't just, you know, fast-following projects. these are the core main projects for the automotive sector, the telecom sector. What for you was there a moment where you thought, aha, this is huge, this is much bigger than maybe what you thought when you started?
[21:58] Was there any particular thing that you. i've answered that before. there hasn't really been anything like that. there's been a couple of moments that took me by surprise, but the big moment was actually when it went from past being personal. and that was within six months of just releasing it. it was, i don't even know the people working on sending me patches, like know them personally. i mean, obviously, now i know them by email, but... but there's a ton of people i never met. and just going past that initial personal phase where the project was just for me, i do want to kind of mention the whole 25-year thing.
[22:38] i'm a huge believer in... Just the 99% sweat, 1% perspiration, 1% inspiration thing. Any technology project, the innovation that this. industry talks about so much is bullshit innovation. anybody can innovate. do this big think different don't do these big innovation thing screw that it's meaningless like the 99% of it is get the work done right and and there are i actually that's my least favorite part of the technology like news cycle is this constant.
[23:31] innovation and new ideas and this will revolutionize all that hype is is that's not where the real work is. yeah, the real work is in the details and i'm obviously one of those people who just. i like to concentrate on one project. i don't like flitting from one idea to another. and you need the people who just flutter about and come up with ideas, but they're not the really useful ones.
[24:03] they're the ones who end up being the ones who maybe give ideas to the people who then do the work. so i hope you guys, i mean, that's what anybody should take away from this talk is the people who actually do the work are the ones you should really listen to. and these days, i don't actually do the work anymore. i merge other people's work. but i'd like... Conferences too, to be less about the visionary innovation thing and more about the day to day.
[24:39] What are my problems and how do I want to solve them? Well, always inspiring and depressing simultaneously, Mr. Torvalds. So I think what it's fair to say is, you know, real innovation happens when you kind of get over yourself and sit down and do the work, which is fair enough. I think that's sage advice. So. thank you for coming. it's always a pleasure.
在 Vidleaf 工作台中打开
搜索转录文本、选择行、复制带时间戳的引文、翻译。
署名
《主题演讲:与 Linus Torvalds 的对话》,由 The Linux Foundation(https://www.youtube.com/@linuxfoundationorg)制作,依据 CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)许可。源视频:https://www.youtube.com/watch?v=Efi9wa4Fwds。本页是该视频的文本转录,添加了段落分隔和时间戳;创作者与 Vidleaf 无关联,也不为其背书。Vidleaf 添加了 AI 标点和 AI 生成的摘要;原始措辞仍可在本页查看。
您是创作者或权利持有人吗?请求更正或移除:copyright@vidleaf.app(参见关于这些页面)。
最后更新于