第 479 期·中文精读

戴夫·普拉默:编程、自闭症与老微软往事

Dave Plummer: Programming, Autism, and Old-School Microsoft Stories

前微软工程师回忆开发任务管理器与 Windows 的年代,也谈编程这门手艺与自闭症带来的视角。

官方音频00:00 / --:--
中文精读由 AI 基于原始访谈改写,非官方翻译,可能存在偏差或错误;表述以原音频与官方文稿为准。说明

Windows 任务管理器每个月被大约 20 亿人打开。它的第一版是 87KB。

戴夫·普拉默(Dave Plummer)写它的时候,是在自己家里写的。那时候他刚进微软不久,白天在 Shell 团队改 bug,晚上回家打开编辑器,从注册表的 HKey Performance 里读性能计数器,因为他没有内部 API 的权限,而他又不愿意在家里调用内部接口。

后来这个程序被收编进 Windows NT 4.0,成了几代人的肌肉记忆:电脑卡了,Ctrl+Shift+Esc,看看谁在吃 CPU,把它杀掉。这个动作太自然了,自然到没人会想它是谁写的。

他想给那台机器下英文命令

1979 年,十一岁的普拉默骑着自行车去当地的 RadioShack。柜台边堆着一摞箱子,标签上写着“computer”。店员说刚进货,还没装。他说那我帮你们装。

“我完全不知道自己在干什么。它不比一台组合音响复杂。问题在于 Tandy 公司用同一种五针 DIN 接口做电源、视频和磁带机,插错了就炸。”(戴夫·普拉默)

他照着标签接好线,机器亮了。接下来他做了一件很有代表性的事:往 BASIC 解释器里敲英文句子。PRINT 2+2 能用,别的就不行了。他不理解为什么更“正常”的英文反而不行。

那台机器是 TRS-80 Model 1,Level 1,4K 内存。同一个时期,Commodore PET 2001 和 Apple II 相继问世。普拉默今天把“史上最伟大的电脑”这一票投给 Commodore 64,理由是销量,跟设计无关。他的判断标准很朴素:一台机器影响了多少人。

他用十六进制手写了一个 Galaga

他的第一台 Commodore 64 是被他烧坏的,准确说是软驱。机器不是从大零售商买的,没有保修,得寄回德国修。于是他只剩一台磁带机,和一个从磁带加载的机器码监视器。那个监视器带反汇编功能,但没有汇编器。

所以他直接在十六进制里敲 6502 指令码。

他做的第一个东西是 Galaga 的克隆。敌人会随时间推进,逻辑完整,纯手工机器码。6502 的代码没法重定位,想往中间插一段,只能跳到别处执行完再跳回来,代码结构惨不忍睹。但它跑起来了。

然后他做备份。

他把空白盘复制到了数据盘上。几周的工作,一张盘,一个方向搞反的操作,没了。

“我当时有很强的负罪感。你毁掉了几周的工作,而且你知道这是因为你着急了,或者做了个蠢决定。”(戴夫·普拉默)

这是他的第一次数据管理课。他今天还记得那种感觉,说明这堂课上得够狠。

辍学是一个过程,由一百个小决定累积而成

他高中辍学了。他自己强调,辍学没有“那一刻”。

“没有哪一刻你决定辍学。你只是去得越来越少,少到有一天你意识到,现在出现会很尴尬,因为我已经很久没去了。然后很快你就彻底不去了。”(戴夫·普拉默)

他说的这个机制值得每个人警惕。你每天做的是一个小决定:“今天不去上课。”但这个决定重复足够多次,就变成了一个大决定,而这个大决定你从来没在清醒的时候做过。

然后他在 7-Eleven 上夜班,也在油漆仓库干过。7-Eleven 的夜班要做账、做行政,店长倾向于安排脑子够用的人,但这个人得有个人理由必须留在 7-Eleven。他没有高中毕业证,正好符合。

他形容那份工作里最难受的部分是量油,被持刀抢劫反倒排不上号。

一根十五到二十英尺长的木杆,刻度是英寸和英尺,没有电子传感器,你得把它捅进地下油罐再拔出来,看油面停在哪个刻度。第一次他滑手了,重新抓了一把,零下四十度,一手木刺。

“我意识到我不想一辈子干这个。然后我想到‘下次我要换个方式拿’,三秒之后我又意识到这想法多荒唐。”(戴夫·普拉默)

二十一岁,他去找本地高中的校长,问能不能回来。校长说不行,你年龄超了,也没位置。他说,从现在到开学之间,总会有人辍学,位置就有了,那我们假设位置有了,我能回来吗。校长让他回来了。他补了三到四门课。

进了大学,第一学期他仍然没当回事。几何 90 是给没修过十二年级几何的人开的补修课,他以 1% 的差距被教授放行。因为补修课成绩不计入成绩单,他等于白捡了一个新起点。第二个学期开始,他为自己学,结果完全不同。

他翻遍注册卡,找微软的邮箱

大三暑假,他在电话公司做 UNet 到 TCP/IP 的迁移。听起来宏大,实际工作是换卡,然后搞清楚为什么客户的 config.sys 改完之后 Lotus 跑不起来了,因为可用内存少了 10K。他形容那是做计算机工作最糟糕的年代。

午休时他在美食广场读一本讲微软怎么诞生的书。他读得入迷,觉得那就是他想去的地方。但他在萨斯喀彻温省,能做什么?

他大学是靠一款叫 HyperCache 的软件读完的。那是 Amiga 平台的文件系统缓存,机器出厂不带,他自己写,用 C 加 68000 汇编,卖了两千多份,单价二十到四十美元。那时候买软件要寄回四乘六英寸的注册卡,上面写名字、地址、邮箱。

他把整摞注册卡翻了一遍,找微软后缀的邮箱地址。找到三四个,挨个冷邮件发过去。

其中一个人叫阿拉斯代尔·班克斯(Alasdair Banks),回信说有个人可以介绍给他。那个人叫本·斯利夫卡(Ben Slifka),电话面试之后,决定招他去做 MS-DOS 的暑期实习。

这套路径今天几乎无法复制。一个没有文凭、在加拿大中部、靠卖 shareware 为生的年轻人,通过翻注册卡找到了进入微软的门。但它背后的逻辑是通用的:先做出可以展示的东西,再拿着这个东西去找人。

他眼中微软最可怕的地方,是人

“那是我参与过的最强的一群聪明人的集合。你在普通计算机公司上班,那个真正懂行的人,他那个更聪明的朋友,多半在微软上班。”(戴夫·普拉默)

他在访谈里讲这个感受的方式很实在。你从小地方来,是当地的大拿,觉得自己懂很多。到了那儿,第一个反应是不敢说话,怕显得蠢。

关于比尔·盖茨,他给的评价没什么神话色彩:盖茨对“每家每户桌上一台电脑”这一个念头 relentless 追逐,雇比他更聪明或至少一样聪明的人来执行,搭出一台几乎停不下来的智力机器,然后去卖非常简单的产品。

MS-DOS 按他的说法,一点都不复杂。它就是命令行启动器:你输入命令名,它去当前目录和 PATH 里找,找到就加载进内存执行。加一点环境变量,一点脚本语言,能访问硬盘和 CPU,不能多任务,没有图形界面。90% 的 DOS 就是这回事。

但这恰好是那个市场需要的。微软跟 IBM 谈成了每台 PC 都预装 DOS,收费不高,却拿到了一个用了几十年的标准位。这里面的运气成分和眼光成分,普拉默都承认。

640K 是一个责任,不是一句名言

“没人会需要超过 640K 内存”这句话不是盖茨说的。普拉默直接否掉了这个流传几十年的梗。

但 640K 这件事本身,他讲出了开发者视角的重量。x86 实模式的内存上限摆在那儿,你作为操作系统开发者,用掉的每一 K,用户就拿不到。你无谓地用掉 10K,全世界每一台机器就少 10K。这是一种很具体的责任感,跟今天动辄几十 G 的运行时环境不在一个尺度上。

他在实习期做的第一件正事,是给 SmartDrive(磁盘缓存)加上 CD-ROM 缓存。光盘刚出来,微软 Bookshelf 是少数能跑的产品,缓存做得好,速度能快几十倍。更麻烦的活是把 SmartDrive 和后来的 DoubleSpace 压缩引擎搬进高位内存。

x86 上有个 A20 地址线,控制内存指针在 1MB 处回绕还是继续往上。你可以把段寄存器和偏移组合成超过 1MB 的地址,从而多拿到 64K,把代码放在那里,低端内存只留跳转桩。他们靠这招给几个产品多榨出 64K。他当时完全不懂 HIMEM 是什么,因为他是 Amiga 程序员,来微软之前没写过一行 x86 代码。

移植代码像闯进别人家翻抽屉

“这就像闯进别人家,翻他们所有东西,看到他们不想让你看的抽屉里的玩意儿。你会发现墙上的好画,也会在床头柜里发现一些让人不适的东西。”(戴夫·普拉默)

他参与把整个 Windows 95 的用户界面移植到 NT 上。核心工作之一是全部转成 Unicode,每个 8 位字符变成 16 位。他形容代码切换完之后是一片混乱。

他看到了宽度 200 字符的行,里面夹着脏话。这些东西后来几年里被清理干净了,但当时的代码水平说不上多专业。

这件事的另一面是:你写的每一行代码,都有人要一行一行读过去。包括五年后的你自己。普拉默说,这就是程序员的宿命,你写的时候以为没人会看,实际上会被非常多的人看到,而且是最挑剔的看法,因为他们正在找 bug。

NT 是另一套故事。微软从 DEC 挖来了戴夫·卡特勒(Dave Cutler),他在那边做过 VMS 和 RSX-11。DEC 西海岸的 Prism 和 MICA 项目被取消,整个团队一起过来了。所以 NT 是一个全新设计,起点是 OS/2,但 OS/2 是汇编写的,NT 要用 C 写,具体借鉴了多少,普拉默说他也不清楚。

他给卡特勒的定位很干脆:内核的架构师。Linux 世界里是林纳斯,Windows 世界里是戴夫·C。

“这人聪明得可怕,但他也像个农场主。他会跟在你后面,确保活儿干完了,而且干对了,确保你没往他的操作系统里塞垃圾。他不容忍这个。”(戴夫·普拉默)

他今年八十五岁,还是微软 Fellow,据说每天仍然写代码,仍然去上班。

他输过一场架,至今不服

移植时他们在 MIPS 机器上干活,RISC 架构不允许非对齐地址访问。而 Windows 的 ID 列表是把 C:\、Windows、System32 这些组件拼起来的字符串表,字符数一变成奇数,后面所有数据的地址就错位了。

从非对齐地址读字符串,要么开异常处理器逐字节复制,要么付出极大代价。他在邮件列表里主张:干脆保证 ID 列表永远是偶数长度,或者用个 hack 强制对齐,这样所有引用它的代码就能全速跑。

争论升级成人身攻击级别的对吵。他输了。

“我今天仍然知道,Windows 里那段代码比它本该有的速度慢几千倍。没人在乎,因为已经够快了。但它本可以快得多。”(戴夫·普拉默)

他讲这件事的语气里没有怨恨,更多是那种工程师特有的、对某个技术判断长期不服气的执拗。二十多年过去,他还记得。

这类争论他也见得多。两个聪明人吵到最后,技术优劣变成次要的,赢过对方变成主要目标,这时候讨论就不再产出任何东西。

他们那时候调试,全程看汇编

半天时间在调试,而调试的大部分时间花在纯汇编的调用栈上。没有源码级调试,你可以在旁边看源码,但屏幕上永远是机器吐出来的汇编转储。

更麻烦的是同时支持四套指令集:Intel、MIPS、Alpha、PowerPC。机器在哪套平台上崩,你面对的就是完全不同的寄存器和指令。他在 MIPS 上经验多,所以 MIPS 的活儿会流到他这儿。

这活儿在今天是难以想象的耐力消耗。他说自己职业生涯里 20% 在创造,80% 在调试和修东西。他有点修理工的名声,所以他总能接到这类活。

他讲了一个和任务管理器有关的 bug。程序偶尔会显示 CPU 总占用超过 100%,这对一个任务管理器来说非常难堪。他加了一堆断言,确保加起来之前每一项都不超 100,最后总和也不超 100,结果断言一次都没触发,用户那边照样能看到。

最后他把自己的电话号码写进了断言消息里:如果你看到这条消息,打 425-836 找 DavePL。

后来压力测试的调试器真的抓到了,问题出在内核的计数逻辑,不在任务管理器。内核那边改了。电话本该删掉,他们只是注释掉了。

“所以它就这么发布了,现在网上泄露的 NT 源码里到处都是。我找任务管理器代码的办法,就是在谷歌搜我的电话号码。”(戴夫·普拉默)

他对断言有一套近乎宗教的态度:

“我不去断言我希望不成立的事。我断言我知道不可能成立的事。这才是断言的本意。一旦它触发,那就是 bug,绝不能当成一条可以忽略的提醒。”(戴夫·普拉默)

他也知道很多人不敢加断言,怕它真的响。他的比喻是:你在路口转弯,觉得可能有车来,但你不往左看,因为你不希望有车。不敢断言,本质是不想知道真相。

他强调断言要长在代码里,不是事后补上去。写到某个函数,你知道这个指针不可能为空,那就断言它;你知道计数永远小于两倍字节宽度,那就断言它。

那个 87K 的程序,是从家里长出来的

任务管理器的起点是他自己想要一个东西:看清哪些程序在吃资源,哪些卡死了,然后能杀掉。他在家写了基本功能,用的注册表性能键,因为在家不能调内部 API。

收编进公司之后,他才能调 NtQuerySystemInformation 和 NtQueryProcessInformation,直接拿到真实数据,这让程序变得极快、极灵敏。

他从来没把功能多当目标。功能就是那一套,他想要的都有了。他要的是绝对的健壮,和绝对的小。第一版 87K。

做到这个体积的手法今天看有点硬核:完全不链接 C 运行时。他确保自己不调用任何运行时函数,也不链接它们,省下大约 96K,那几乎是程序本身的大小。代价是他得手动从分派表里调用所有对象构造函数,因为没有运行时会替他做。

不卡死的关键是不做假设。你调 Shell 去启动一个程序,那个路径可能在某台 TCP/IP 共享上,超时要等 90 秒。所以任何可能耗时的 API 调用,都得放到单独的线程里。程序因此变得多线程,复杂度上去了。

他还顺手发明了一遍汉明码。任务管理器的每一行每一列都有脏位,他通过行列两个方向的脏位反查哪些单元格需要重绘,配合 ListView 控件做到只重画变化的那一格。所以它能画得极快,缩放极其顺滑。缩放是他个人给这个程序定的最大目标:拖到任何尺寸都不崩,即使有 32 个 CPU(那个年代不可能),它会画八张图然后循环,今天还能跑。

这些代码今天大部分还在。上面叠了深色模式、XML 配置、GPU 和温度监控,体积从 87K 变成四兆。

“这就是我们生活的世界。”(戴夫·普拉默)

扫雷和纸牌是鼠标教程

这两款内置游戏放进操作系统,充当的是教学工具。纸牌教你拖拽,扫雷大概率是右键,每一个都在教你一个操作。普拉默说得很直白,这是给新用户熟悉鼠标用的教具。

结果一整代人在这上面耗掉了无法统计的时间。

太空军校生弹球(Space Cadet Pinball)是他另一段经历。有人走进他办公室问他接下来三个月想干什么,他说不知道,对方问要不要移植弹球。当时 NT 需要一个视觉展示,证明它能跑高速图形或者至少是响应灵敏的图形。

麻烦在于原版大量代码是汇编。他在 MIPS 机器上,只能先全部改写成 C,才能往各平台移。游戏核心是一个巨大的状态机,他记得大概是五十个分支的巨型 switch。里面还有彩蛋。他把这块当黑盒处理,自己的代码在上面做绘制和声音。

有个细节他一直被问到:为什么移植版的物理跟 Windows 95 原版略有不同。答案是 bug。他按每秒能画多少帧就画多少帧,在现代机器上弹球能跑到五千帧,于是物理被插值了五千次,而原来只有三十次。结果物理反而变“好”了,或者说至少不一样了。后来这个问题被修掉了。

他把一栋房子的照片贴在显示器上

1993 年,他和妻子开车在附近看房。有一栋三层卧室的房子,车道上停着一辆 93 年款红色科尔维特敞篷,售价三十万美元。他拿不出三十万,连首付都拿不出。

他拿了传单,剪下房子的照片,贴在显示器上。

晚上回家他做两件事:一是释放白天修 bug 时无处安放的创造力,二是挣点外快。他照着一份 MSDN 的示例写 Shell 扩展,做出一个能在资源管理器里打开文件夹的东西,然后往里加 ZIP 支持。每一步都是增量。

他把它当 shareware 卖,19.95 或 29.95 美元,卖了几百到几千份。

某天早上他准备上班,接到一个电话。对方问,你是戴夫·普拉默吗,你是写 Visual ZIP 的那个人吗。他说是。对方说,我是微软的贝琪,我们想收购它,你能来谈谈吗。

他问,你在哪栋楼。

对方愣了。他说我过来一趟就行。对方说不行,得先联系差旅,联系法务,要走流程。来回几句之后两个人才反应过来:贝琪不知道他就在微软上班。他们是照着作者信息冷电话打过来的。

他接受了报价。理由很实际:不接受的话,要么继续卖自己的版本然后辞职,要么停卖然后继续上班,两个都不好。

然后他买了一辆二手的 93 年红色科尔维特。

收编进 Windows 之后功能砍了不少。加密去掉了,因为那个年代加密算法算军需品,不能随便往操作系统里塞。多卷支持也去掉了,为了简化。

ZIP 本身的来历他也讲了。BBS 时代,人们用调制解调器拨号下试用软件,需要压缩。可执行文件大概能压到一半。一个叫菲尔·卡茨(Phil Katz)的人做了 MS-DOS 上的命令行工具 PKZIP,从此在整个 PC 行业无处不在。Windows 出来的时候,市面上已经积累了十年的 ZIP 文件,系统却打不开,这就是内置支持的动力。

这套代码今天还在用。他补了一句:它是单核时代写的,完全没有多线程。你有一块 96 核的 7995,解压时它只用其中一个核。

激活是他做的,他知道这东西招人烦

Windows XP 快发布时,原本负责把 Office 的激活机制移植到 Windows 的人一再延期,做不完了。普拉默有“能快速修好东西”的名声,于是被找上门。

他带着做 DRM 的团队和做产品密钥数学的研究人员,赶在 XP 发布前做出来了。

他也承认这东西烦人,尤其是电话激活。你得把硬件参数(内存、硬盘、绑定的各种硬件特征)和产品密钥一起编码成字母数字,让人在电话里念出来。

“你要是觉得电话激活很痛苦,想想在电话另一头干活的人是什么感受。连着八小时听产品密钥,那是份能把脑子磨平的工作。”(戴夫·普拉默)

操作系统不该成为对手

话题转到 Windows 11 的任务栏。他做过一期讲“为什么任务栏不能移动了”的视频,反响极大,愤怒是实打实的。

他给的解释不站在用户这边,也不站在微软这边。可以移动意味着渲染、布局、标签页排布的所有代码复杂度上升,bug 面变大,代码量变大,可能需要多一个开发者或者某个开发者的一部分时间。问题是,为了满足一小撮用户的小众需求,到什么程度还值得。

莱克斯·弗里德曼(Lex Fridman)的反驳是:VS Code 什么都能配,为什么开始菜单不行。这种对小众需求的照顾会形成声誉,会形成一种“这里每个细节都被认真对待”的气场,对招人也有好处。

普拉默的猜测是排期决策。重写开始菜单的时候,砍掉左右上下、双行标签这些特性,能提前四个月交付。他不认为这是对的决策,但很可能是真实的动因。

他提了一个更根本的问题:你希望操作系统是你的对手吗。Windows 有时候给人的感觉就是这样,它不站在你的利益这一边。

莱克斯举的例子很具体:登录时不想用微软账户,系统把这个过程设计得像在骗你,你得反复点“跳过”,还要确认“你确定吗”,一个界面的意图变成了让你做不到你想做的事。

普拉默补了另一个:升级时的“使用推荐设置”。听起来像该选的,实际上会把你重置回 Edge 和一堆别的东西。推荐是给他们推荐的,跟你没什么关系。

“我宁愿每年付 199 美元用 Windows Pro,或者一个月 20 块,别再往上推销,别把我的数据变现。”(戴夫·普拉默)

老虎机的真相

他玩老虎机,明知整体是亏的,但那些强对比色和灯光对他是实打实的多巴胺盛宴。

机制他也讲清楚了:机器内部有个黑盒,只干一件事,生成下一个随机数和对应的赔付结果。然后游戏说,我得编一段电影来配合这个结果。三个 7 还是别的什么,跟结果没有因果关系。转轮停下、看落在哪儿、再判断你赢没赢,这个顺序是颠倒的。

至于跑什么代码,他不知道。他试过接触,很难。都是基础 Windows PC,架在某种他不知道细节的安全飞地里。

他还讲了七十或八十年代拉斯维加斯的一个技术员,自己烧 ROM,把后门写进去,借着维修的机会换上自己的 ROM,半年后回来触发。

他给一台 PDP-11 装了四个兆内存

这几年他的特殊兴趣是老硬件。他修 1960 年代的肌肉车和卡车,也修 PDP-11。

他攒了多年零件,决定装一台他能装出来的最好的 PDP-11,就像给 PC 超频那样把一台小型机拉满。四个兆内存,那个年代是天文数字。上面是 PDP-11/70 的控制面板,下面两个机箱,旋钮控制 LED 显示哪条总线,你可以暂停机器,用开关改地址,往内存里塞数据。

灯的驱动不是现成的。他得重写 BSD 内核才能让灯按他想的方式闪。加一块新磁盘控制器,就得重新编译内核,就得去翻源码找设备驱动的位置。

他现在对 BSD 内核已经相当熟了。

GitHub Primes:用一百种语言写同一个算法

他有个项目叫 GitHub Primes,同一个素数筛算法,用大约一百种语言实现,规则统一,每晚跑一次基准测试,看谁快。

规则很硬:必须是素数筛,每个整数最多用一位,不能用一字节,因为那样更便宜也更容易。内存分配必须在计时循环内。每个实现装进单独的 Docker 容器跑,多核全开,五秒内尽可能多次筛到一亿。

有些语言做不到,比如 6502 只有 64K,筛不了一亿,那些就当表演项目跑。

他最初只写了 Python、C#、C++ 三个,发了期视频,然后别人往里扔实现,扔到失控,现在由欧洲的两个人接手维护。

目前的榜首是 Zig。C++ 那边优化一下能领先一阵,然后 Zig 的人不服气,回来再改快一点。这是一场没有终点的接力。

他用 Lua 加 Python 教 AI 打 Tempest

Tempest 是 1980 年的 3D 矢量街机游戏,360 度移动,屏幕上最多八发子弹,十一种敌人,还有尖刺。普拉默在这个游戏上持有世界纪录。

他先把 ROM 从机器里取出来逆向,搞清楚代码在内存里怎么分布、零页变量在哪、哪些位置有意义。然后写一个 Lua 程序,在游戏运行时把这些内存位置读出来当特征,通过 socket 送给 Python 那边,Python 做强化学习,用的是 dueling Deep-Q,两个网络互相追逐。

现在 AI 能打到第 36 关,比大多数人强,但那游戏一共 96 关,路还长。

他说得很实在:目标是想打赢他自己。

他的大脑一次只做一件事,但做得极深

自闭症的核心理论叫单otropism,普拉默的解释是:他的大脑做一件事,做得非常投入,做完了再换下一件。他不是多任务处理器,是彻底的串行单任务者。

好处是可以在一个任务上投入惊人的专注和坚持。前提是这件事他得喜欢,得有回报,得能看见进展。他说这感觉跟小孩玩火车是一样的。

坏处是他同时有相当程度的 ADHD。获取专注本身是难点,他极容易被分散,睡觉要戴降噪耳机,或者干脆睡不着。但一旦进入状态,很难被打断。这两件事同时存在,听起来矛盾,实际上是一个门槛极高、进去之后极难出来的房间。

更大的困难是:他不知道别人在想什么。

“我知道如果我是你,在这个位置,我会怎么想。这是我所能做到的全部。大多数神经典型的人会有一种感觉,莱克斯大概是这么想的或者那么想的,因为他的举止是这样,反应是这样,表情是这样。这些对我来说全都丢失了。所以我给每个打交道的人跑一个代理 NPC 小游戏。”(戴夫·普拉默)

电话对他格外难,因为只剩声音。FaceTime 好得多,因为对方讲完笑话可能会笑一下。在电话里他分不清你是讽刺还是认真。

字面理解也是一部分。他小时候爷爷给妈妈在厨房做花架,用了很大的角铁,五岁的他问这够不够结实能托住花盆。爷爷说,够托住一匹马。他当时非常困惑:为什么要把马弄进厨房,为什么要把马放在花架上。

他和妻子结婚三十一年,在一起三十七年。他们最早意识到彼此不同,是一天晚上坐在车里,看着对面那栋房子,砖柱之间用锚链连成围栏。他盯着那些两英尺见方的柱子想,这是空心的还是回填了混凝土。妻子看着他,说,你脑子里为什么会有地方关心这个。

他在比尔·盖茨面前纠正了“三个月”

第一个暑期实习,盖茨把所有实习生请到家里吃汉堡喝啤酒。他的导师本带他去介绍。

本说,这是戴夫,我们从加拿大来的实习生,四个月里他做了这些功能,还写了 SmartDrive 的副本,然后开始列他做过的事。

他打断了。

他说,其实是三个月。

两个人都愣了,对视了一眼。他当场意识到,这个时机不对。

“小地方的不准确会把我逼疯。”(戴夫·普拉默)

他现在的说法是,自己比过去好多了。以前他不知道,也不知道在对话里毫无意义地插一句纠正会影响对方、让对方有什么感受。现在他有更好的判断力了。

十秒测试,和十把椅子

他设计过一个粗糙的自测。第一个问题:对一个社会整体而言,合作和创造力哪个更重要?多数神经典型的人倾向合作,谱系上的人倾向创造力,倾向个体解决问题的价值。

想提高精度可以加第二题:一个房间里有十把椅子,六个人进来坐下,还剩几把椅子。

多数人会说四。他说十,因为椅子还在那儿。

“我并没有在抬杠。我也不想把事情搞复杂。但我的脑子就是这么运作的。”(戴夫·普拉默)

他回家后会重放每一个做选择的瞬间

这套方法他叫情绪后处理。见完人,尤其是新认识的人,回家之后他会把当天所有需要做选择的时刻重放一遍,先挑最不舒服的那些。刚才那一瞬我做错了什么,我漏掉了什么,对方当时在想什么,下次这种情况怎么处理,要不要去补救一下。

他讲了一个例子。他父亲 1969 年买的新车,他留着,开了五十年。二十多年前他把车送去翻新,三个工匠做了三年,几千小时。他去提车,检查,很满意,说这个好那个好,然后飞回家,写支票,车送到。

十年之后他才意识到:一群工匠围着他的车干了三年,他当时应该说点让他们高兴的话,夸夸他们干得多好。他没说,因为那一刻他不需要那些话,也没想到别人需要。

他给那家店的老板发了封邮件:不知道你还记不记得,十年前我来提车,可能看起来并不满意,但我想让你知道,我对整台车的工艺和水准非常佩服。

“他回信说,那个场面我想过很多次。”(戴夫·普拉默)

这十年的时间差,是理解自闭症的一把钥匙。他并非不感激,只是感激的信号在当下没有生成,十年后才被后处理机制捞出来。

也正因为这套机制存在,他要澄清一个流传很广的说法。

“社区里有一种看法,认为自闭症的人缺乏共情。我认为完全不是这样。我只能代表我自己说,我共情能力相当强。问题出在沟通上,而且是双向的。我不知道你此刻感觉如何,所以在你说出来之前,我很难对你共情。可一旦我知道了,一旦我理解了你脑子里在发生什么,我可以非常为你难过。”(戴夫·普拉默)

在没有信息的情况下,他的默认设定是:你会像我一样处理这件事,用我所知道的方式。

所以他对神经典型的人的建议只有一条:说具体。别指望他能接住暗示、微妙和言外之意。如果你想把他推向某个行为,最好的说法是“戴夫,你需要做这个”。

莱克斯在访谈里当场问:我今天有哪里做得不对吗?没有。那打分呢,一到十分?7.5 分。浮点数打分,很符合这个人。

假装正常是一份全职工作

所谓 masking,用他自己的话讲,就是表演正常。

“你在社交互动里做的每一件事,挥手、表情、语调、姿态,全都是刻意构造的,全是工作量。对多数人来说这是自然的,他们就是这么做的,有些人还做得特别好。但对谱系上的人来说,你得把这一切都假装出来。”(戴夫·普拉默)

他提到 Rush 乐队那首《Limelight》,尼尔·皮尔特(Neil Peart)写的词,大意是世界是个舞台,我们只是演员、表演者和描绘者,互为彼此的观众。歌里反复讲无法把陌生人当朋友、必须伪造情感。普拉默只对已故的人做推测,但他觉得写词的人大概也在处理同样的问题。

这首歌之所以能击中那么多人,可能正因为这份疲惫有普遍性,只是在他们身上被放大到了一个必须每天面对的强度。

崩溃是一个开关,不是一段情绪

他描述 meltdown 的方式很像在讲一个系统故障。情绪过载到某个点,你不再能管理自己的行为。他举《雨人》里机场那场戏,或者某些影视剧里那个被禁止做手术的外科医生。

“开关一翻,你就掉进原始大脑。额叶皮层在某种程度上关闭了,你不再拥有决策和过滤的能力。那种状态下你是一条爬行动物。这本质上是恐慌,是面对无法忍受的当下现实的战斗或逃跑反应。”(戴夫·普拉默)

莱克斯顺口把它比作大脑的蓝屏。普拉默说,差不多。

触发它的一般是一连串事情的累积:糟糕的出差、工作上的争吵、被随机打乱的一天,堆到临界点,任何一件小事都可能成为最后一根稻草。

“你还好吗”需要两个步骤

他和妻子最近几年养成了一套明确的检查机制。她会问,你还好吗。他答,还好。

“这里面有两步。第一步是‘你还好吗’,第二步是我的回答。因为如果我只是说‘好’,她就知道有事。”(戴夫·普拉默)

这套机制存在的原因很朴素:他没法通过看一个人就知道对方状态如何。所以必须显式地互相 ping。

他对感情这件事的自我评价很低。“我从来就不擅长跟人打交道。有人喜欢我,我大概也接收不到。”他给儿子买过一件 T 恤,上面印着:如果你在追我,请明确告诉我,因为我毫无察觉。

“我得在一个人身边待很久,慢慢长进去,因为我没有任何技巧,那种社交舞蹈需要的能力我一点都没有。我唯一的选择就是做我自己,而这对某些人是行得通的。”(戴夫·普拉默)

被这些问题吸引的人,大概有一两成

他写过一本书叫《自闭症百万富翁的秘密》(Secrets of the Autistic Millionaire)。书里提到一个概念:很多人会觉得自己“有一点点自闭”。

他的估计是,可能 10% 到 20% 的人处在谱系的某个位置,但影响程度没有高到构成障碍。这些人仍然带有许多源自自闭症的特征。如果能识别并优化地管理这些行为,既可以借力,也可以缓解它带来的缺陷。

这本书主要是写给他孩子的。据他所知,几个孩子都没到 ASD 的诊断标准,但身上都有他某些跟这个相关的行为特征。他想给他们写一本手册。

至于为什么程序员里这样的人格外多,他的答案很直接:那种单向的专注,把问题不断化简的能力,以及对“里面到底是什么”的终极好奇。他一辈子都在拆东西,拆妈妈的烤箱,就为了搞明白翻页钟怎么工作。他认为这是程序员的好习惯。

他刚好赶上了需要懂所有层的年代

关于 AI 写代码,他的用法非常务实。Python 他不熟,几乎是新学的,所以这个项目里大量用生成式工具。他觉得很有用,因为看不懂的地方可以看它生成什么,从中学到东西。他自己从零写 Python,长度大概是 AI 产出的四倍,因为 Python 写得好的话可以非常简洁。

他承认自己是在 vibe coding 这个项目。

莱克斯追问了一个关键点:这必须建立在你已经会编程的基础上。普拉默同意。他说你不可能在自己完全不会编程的情况下靠 vibe coding 做出一个东西,但如果已经是个好程序员,AI 能让你变得极其强大。因为你能读懂它生成的东西,能判断下一步该让它做什么。

关于二三十年后的编程,他给的类比是桥梁工程。曾经有一批人在下面焊钢梁,现在人们在 AutoCAD 里拖拽预制件。编程大概也会变成那样:你不再逐行扔代码,你搬动组件和接口,向 AI 描述它们之间该怎么交互,让它把组件造出来。但我们离“凭空生成一个兼容 Linux 的内核”还差得很远。

莱克斯问他会不会觉得遗憾,从机器码、汇编、C、C++ 一路走到用自然语言写代码,抽象层爬得这么快。

“我出道的时机其实很幸运。技术是在三四十年里一层层长出来的,所以我理解 TTL 逻辑,也能用 AI 写代码,中间那些零件我大概都知道。我的知识当然有洞,但要把这张图拼得这么完整,恐怕只有亲身活过那段时间才行。现在起步的人,很难复制这个。”(戴夫·普拉默)

这句话点出了一件事:他这一代人的知识结构是历史给的礼物。硬件、编译器、驱动、界面、网络,每一层都在他职业生涯的不同阶段被推到台前,他被迫全部学一遍。今天入行的人,一上来就站在十层抽象的顶端,底下九层是黑箱。这不是能力问题,是时代问题。

意义这件事,他答得很干脆

莱克斯最后问的是那个大问题:这一切的意义是什么。

“做出很酷的东西。归根到底,我在乎的是能做出对别人有用的复杂东西,这件事能调动我的能力,让我有创造性,让别人用得上。如果把我限制在绘画、雕塑那些传统艺术里,我毫无希望。对我来说这就是意义所在。然后再养出几个好孩子,把接力棒交出去。”(戴夫·普拉默)

访谈的结尾,莱克斯引用了本贾尼·斯特劳斯特卢普(Bjarne Stroustrup)的一句话:世界上只有两种语言,人们抱怨的,和没人用的。

这句话放在普拉默身上挺合适。他写的东西被几十亿人用过,也被人抱怨过,任务管理器被人抱怨,Windows 激活被人抱怨,ZIP 文件夹被人抱怨。他本人对这些的态度是一致的:先把东西做出来,做小,做稳,然后接受它被使用的方式。

这期对话里最值得带走的,可能不是那些微软往事。是一个人在明确知道自己大脑如何运作之后,围绕这个事实重新设计了生活和工作的方式:用作品代替自我介绍去争取机会,把社交规则显式化成检查机制,把每次失误放回家之后重放一遍,把 640K 当成对全世界每一台机器的责任。

还有他那句关于专注的坦白。他能对一件事投入极强的注意力和坚持,但前提是这件事他得喜欢、得有回报、得看得见进展。这三条其实也是所有人能进入心流的条件,只是大多数人可以在状态不佳时硬撑过去,而他的大脑不提供这个选项。

最后是他自己给出的那份清单。

  • 如果你正走在“今天先不去”的路上,注意那个决定正在变大。想走非标准的路,就明确地做大决定,别让一百个小决定替你做。
  • 找工作的时候,卖你能做的东西,不要卖你自己。GitHub 记录、你写过的算法、你做出来的成品,比性格展示有效得多,尤其是在你不擅长社交表演的时候。
  • 断言要写在你确信不可能成立的事情上,而且要长在写代码的过程里,不要留到事后补。它响了是在帮你。
  • 写任何要给别人用的工具,先假设所有 API 调用都可能卡住九十秒,把所有可能耗时的操作放到独立线程。程序的可靠性和体积可以同时追求,87K 的任务管理器就是证据。
  • 不要在代码里留自己的电话号码,除非你已经准备好它会在二十年后被谷歌索引到。
  • 如果你身边有人在谱系上,把话说具体。不要说“你觉得那样行吗”,直接说“你需要做这个”。不要指望对方接住暗示,那不是不愿意,是收不到。
  • 如果你是那个收不到信号的人,建立显式的检查机制。跟亲近的人约定一个固定的问法和答法,把“读空气”换成“直接问”。
  • 每隔一段时间,回头重放那些你当时没反应过来的社交时刻。十年后才想起来夸一句工匠的手艺,也比永远不说好。
  • 想学一门新语言,最快的路径是带着一个真实项目去学,让 AI 生成,你负责读懂和判断下一步。前提是你已经会编程。
  • 如果某件事让你痴迷到想拆开看里面到底怎么运作,别压着它。这种好奇是能吃饭的本事。
文稿来自 Lex Fridman 官网公开发布的官方 Transcript(含说话人与时间戳)。
Lex Fridman (00:00:00): The following is a conversation with Dave Plummer, programmer and an old-school Microsoft software engineer who helped work on Windows 95, NT, and XP, building a lot of incredible tools, some of which have been continuously used by hundreds of millions of people, like the famed Windows Task Manager. Yes, the Windows Task Manager, and the zip/unzip compression support in Windows. He also ported the code for Space Cadet Pinball, also known as 3D Pinball, to Windows. Today, he’s loved by many programmers and engineers for his amazing YouTube channel called Dave’s Garage. You should definitely go check it out. Lex Fridman (00:00:44): Also, he wrote a book on autism, and about his life story, called Secrets of the Autistic Millionaire, where he gives really interesting insights about how to navigate relationships, career, and day-to-day life with autism. All this taken together, this was a super fun conversation about the history and future of programming, computing, technology, and just building cool stuff in the proverbial garage. This is the Lex Fridman Podcast. To support it, please check out our sponsors in the description, and now, dear friends, here’s Dave Plummer. Lex Fridman (00:01:22): Tell me about your first computer. Do you remember? Dave Plummer (00:01:25): I do. I didn’t own my first computer for a long time, but the first computer I ever used was a TRS-80 Model 1, Level 1, 4K machine, and I rode my bike in fifth or sixth grade, so I was about 11, to the local RadioShack. They had the standard component stereo systems, everything else RadioShack had, but they had a stack of boxes that was labeled “computer.” So I was asking the people who worked there about it, and they said they just got it and they hadn’t set it up yet. I was rather precocious and I figured, “Well, I’ll set it up for you,” and they said, “Okay. Have a shot.” Lex Fridman (00:01:53): Did you know what you were doing? Dave Plummer (00:01:54): Absolutely not. I mean, it’s no worse than a component stereo. The only thing is that Tandy, in their infinite wisdom, used the same five-pin DIN connector for power, video, and I think cassette, so they were all identical, and if you plugged them in wrong, you’d blow it up. So I read the label and got it working and wound up playing with it and not knowing anything about computers. So I’m typing English commands into it and, you know, PRINT 2+2 works perfectly, yet more simple English that you enter into a basic Level 1 interpreter is not going to get you very far. Lex Fridman (00:02:23): So you’re trying to talk to it in English? Dave Plummer (00:02:26): Didn’t know any better. And I still have an old foolscap that I wrote in sixth grade of a program that’s kind of illogically correct but has no chance of working on any interpreter that existed at the time, so it took me a while to figure out what was actually going on with them. But I rode my bike down there every Thursday and Saturday, and they were gracious to let me use the machine. Lex Fridman (00:02:45): When was this? Dave Plummer (00:02:46): ’79, ’80. Lex Fridman (00:02:47): Okay. What was the state of the art of computing back then? So what are we talking about? Dave Plummer (00:02:50): Well, the big three had come out. There was the TRS-80 Model 1, there was the PET 2001, and the Apple II came out roughly simultaneously. Lex Fridman (00:02:59): Apple II. Would you say that’s the greatest computer ever built? Dave Plummer (00:03:02): Probably in retrospect. Well, I would probably give that to the Commodore 64. Lex Fridman (00:03:06): Yeah. You and I agree on this, that that was my first computer probably many years after it was released, but yeah, Commodore 64’s incredible. But yes, Apple II had a huge impact on the history of personal computers. Dave Plummer (00:03:18): Right. It’s hard to gauge the long-term impact, but I think the 64 itself probably influenced more people, so that’s my reason for picking that one. Lex Fridman (00:03:26): You think so? Dave Plummer (00:03:26): The sales were certainly higher. Lex Fridman (00:03:28): So Commodore 64 sold a lot? Dave Plummer (00:03:30): Yeah. I mean, the numbers are hard to believe. It depends which numbers you believe, but even the medium estimates were pretty high. Lex Fridman (00:03:36): All right, cool. So you eventually graduated to the Commodore 64. Tell me about that machine. What did you do on the Commodore 64? Dave Plummer (00:03:45): Well, the first thing I did was overheat the floppy drive on it, which was unfortunate because it wasn’t a warranty machine. My parents didn’t have a lot of money so we bought it from Computer House as opposed to one of the major retailers, which meant when it died, it had to go back to Germany or something to be fixed. So I was left with no floppy and so I had a cassette deck, which was the best you could do at the time, and so I was writing small things, and I had a machine language monitor that you could load from cassette. It didn’t have an assembler built in, but it had a disassembler, so you could enter the op codes in 6502 in hex, and if you were careful about planning, you’d be able to write some basic programs. Dave Plummer (00:04:17): So that’s kind of how I learned, and the first thing I ever wrote on it was a clone of Galaga. Now, it’s a bad clone of Galaga, but it has the major enemies that attack over time, and it’s all written in hand-coded machine language, and you can’t relocate 6502, so if you need to add code in the middle, you need to manually sort of jump to somewhere else, do your work, jump back to where you were. It’s just hideous spaghetti code. But it all worked eventually, and I went to make a backup of it to preserve it for future scholars or whatever the hell I was doing. And I copied my blank floppy onto my data floppy. So that was my first experience with data management. Lex Fridman (00:04:53): Oh, no. Dave Plummer (00:04:53): So I don’t have a copy of my first program anymore. Lex Fridman (00:04:55): What was that feeling like? Do you remember, of, of just doing something if I may say so, like stupid, you know? Which is a part of the programming experience. Dave Plummer (00:05:04): Yeah, there was a huge amount of guilt because, right, you destroyed several weeks- … of work and you know it was because you rushed- or you did something stupid or you made an unwise choice. Lex Fridman (00:05:12): What can you tell me about the programming involved in that game? Dave Plummer (00:05:15): So it’s literally machine language. Lex Fridman (00:05:17): So machine… So it’s not- Dave Plummer (00:05:19): Yeah, 65 with- Lex Fridman (00:05:19): … even assembly. Dave Plummer (00:05:19): Not assembly yet because there was no assembler built in, so I should have written an assembler as my first task, but I wasn’t that clever. Lex Fridman (00:05:26): How hard is that to do? Dave Plummer (00:05:28): Trivial, and it’s one of those things that sticks, I think. You do it so many times. You know, if I give you a C issue, there are certain syntactic issues in C that you’re never going to forget and get wrong. And it’s just one of those. Lex Fridman (00:05:40): Like, what are the limitations of programming in machine code, as a programmer? Dave Plummer (00:05:44): The biggest issue is you have to write completely sequentially because at least in that variant, 6502, you can’t add things later. You can only add things on the end. So it’s like programming a tape in a way. Lex Fridman (00:05:54): What was the most complicated thing you’ve built with machine language? Dave Plummer (00:05:57): That game would be. I mean, in assembly language, I’ve done a fair bit of complicated stuff, but in actual machine language, I think that game would be the only thing I’ve actually- Lex Fridman (00:06:04): You literally built a game. Dave Plummer (00:06:06): Not a great game, but it worked. Lex Fridman (00:06:07): Okay, all right, and then you erased it? Dave Plummer (00:06:10): I did. Lex Fridman (00:06:10): All right. When did you first fall in love with programming? When you figured out, like, this is a, this is something special. Dave Plummer (00:06:18): … I think there was two stages for me. I always knew immediately that I was fascinated with these machines, from the TRS-80 Model I. It’s all I wanted to do was ride my bike back there and have more time with it. And I did that, you know, to wear out my welcome as much as I could. And the other revelation came, I think about second or third year of university when I realized, “I love programming, but I have no idea what I’m going to do. Am I going to make the 12 flash on a VCR somewhere? Or am I going to go work on an operating system? I have abso- absolutely no idea what I’m going to do post-graduation. But I love what I do.” And so, I think that was a lot of consolation. It’s like, it doesn’t really matter what I’m doing at this point, ’cause I kind of love doing it, so… Lex Fridman (00:06:54): So, you’ll figure it out. As long as you’re following this kind of feeling that’s telling you- Dave Plummer (00:06:58): I knew I was in the right area, finally. Yeah. Lex Fridman (00:06:59): Yeah. All right. You dropped out of high school. Dave Plummer (00:07:02): Yeah. Not the smartest move. Lex Fridman (00:07:03): Okay. But you ended up going back to school and being very successful at school and, just in general, successful as a programmer, as a developer, as a creator of software. How were you able to find your way? Can you tell that journey of dropping out— …and then finding your way back? Dave Plummer (00:07:21): There’s no moment when I dropped out. You just go less and less and less until you realize it’s going to be embarrassing if I show up because I haven’t been there in a long time, and then pretty soon you’re just not going, and that’s how you drop out of high school. So, if you find yourself on that path, stop doing that. But that’s precisely what I did. And so now I’m not at school and I have to get a job, so I’m working at 7-Eleven and a paint warehouse and stuff like that. And 7-Eleven is actually kind of an interesting job because it’s a job I think they keep rotating for people that are smart enough to do the night shift with all the accounting and the administration and stuff they make the night shift do, but that have reasons personally that they need to work at 7-Eleven. Dave Plummer (00:07:56): And I was one of those people because I had no high school diploma. Lex Fridman (00:08:00): What are some memorable moments from that time at 7-Eleven? Or maybe what do you appreciate about the difficulty of that job? Dave Plummer (00:08:09): Probably the worst moment for me… I mean, I got held up at knife-point and stuff, and that’s all entertaining, but the worst… …The most… The suckiest part for me was doing the gas dips. We’ve got a long… It’s a, like a 15 or 20-foot wooden stick and it’s measured in gradients of inches and feet, and you drop it into the gasoline tanks and then you bring it up and you measure where the gasoline sits because there’s no electronic sensor. So, I’m doing that, and the first time I do it, I drop the pole and I re-grab it. Well, that’s about a thousand splinters of wood into your hands, and it’s 40 below out and that really sucked. Lex Fridman (00:08:38): Oh, wow. Dave Plummer (00:08:39): And I realized, “I don’t want to do this for a whole life.” I knew that, so… Lex Fridman (00:08:44): Okay. So you stand there frozen with splinters in your hand. Dave Plummer (00:08:47): And at some point, I have a revelation about my life that next time I’m going to do it differently. And then how ludicrous that is hits me about three seconds later, right? And I think that was really the moment for me where I realized that I’ve got to do something different. And so even though I was 21, I went and I talked to the principal of my local high school and I was like, “Can you let me back in?” And he’s, “No, you’re too old and we don’t have room,” was his main reason. And I said, “Well, between now and then, somebody’s going to drop out. So, you’ll have room. So, let’s assume you have room. Can I come back?” And he was gracious and let me come back. And so I did the three or four classes that I needed. Lex Fridman (00:09:24): Yeah, just if you can linger on that, the slow dropping out. That’s a weird thing that you can do with your brain. You realize to yourself that you don’t have to do the thing that everybody else is doing, and that’s a dangerous realization because, like, you kind of have to be part of society to do certain things. Dave Plummer (00:09:44): Right. Lex Fridman (00:09:44): And if you realize you don’t have to do what everybody else is doing, you can either have an incredible life or a really difficult life. Dave Plummer (00:09:54): Well, the problem with that process is you’re making a much smaller decision. “I’m just not gonna go to class today.” And that’s all you’re deciding, but you do that enough times, you’re making a much bigger decision. And that’s the problem. Lex Fridman (00:10:04): So it’s better to make… If you want to live life in a non-standard way, it’s better to make the big decision explicitly and then you can stop going. Don’t allow yourself to make the slip-ups, though. Dave Plummer (00:10:15): It’ll be made for you eventually. Lex Fridman (00:10:17): Okay. Well, you got back, and you eventually went to college and were very successful as a student, and you weren’t that good of a student before. Dave Plummer (00:10:24): No, I was a terrible student in high school, and even my first semester of college, I still wasn’t taking it quite seriously because I got mercy passed in Geometry 90, which is like the makeup class for the Geometry 12th-grade class that I didn’t have. And that scared me because I realized by 1% or the grace of the professor that let me through, I just about ended my entire university career here. So, fortunately, those marks don’t count on your transcript because they’re remedial classes. So, I got kind of a fresh start the next semester and did it for real, and I did it for me, and that made all the difference. Lex Fridman (00:10:55): What can you speak to maybe by way of advice on how to be successful as a student? Dave Plummer (00:11:00): Well, ideally, there’s some aspect of school that you do enjoy, whether it’s art, whether it’s computer science, whether it’s shop class, whatever. So, go for those classes and just put up with and do the hard stuff because it’s way easier than having to do it later, and that’s easy to say when you’re 50-something. It’s harder to say when you’re 15-something, but— … it makes a lot of sense. Lex Fridman (00:11:20): All right. What’s the story of you joining Microsoft? How did we get there from 7-Eleven to Microsoft? Dave Plummer (00:11:27): Yeah, it’s a big jump. So, I had gone back to school, and I think it was in my third year of university. I was working for the phone company for the summer as a summer job, and I’m doing conversions of their UBNet to TCP/IP and modern networking, which really amounts to swapping cards but then figuring out why their config.sys doesn’t allow Lotus to run anymore because it’s got 10K less than it used to, and it’s just a horrible time to be working in computers, but I was doing it. And at lunch, I’m sitting in the food court with the old and the bored, and I’m reading a book that I had bought called “Microsoft or Bill Gates and the Making of Microsoft Hard Drive,” I think is the title. And it’s a great book. Dave Plummer (00:12:02): It’s just sort of a matter-of-fact history of how Microsoft came to be, what it’s like, how it operates, what the people are like there. And I’m reading this book, and I become really entranced by it and fascinated because it sounds like exactly the place that I want to be, but I’m in Saskatchewan, so what am I going to do about it? And what I wound up doing was, I had put myself through school with a program called HyperCache, which is a file system cache for the Amiga because the Amiga didn’t have any out of the box, and it had done reasonably well. Dave Plummer (00:12:29): So, I went through my registration cards, because in those days you had a four-by-six card that people had to fill out with their name and their address and, if they had an email, their email, and they’d send it in, they’d get notifications of updates and so on. Well, it’s shareware. And I went through the whole stack looking for anybody with a Microsoft email address, and I found maybe three or four people, and I just cold-emailed them and said, “Hey, I’m an operating system student in Saskatchewan looking for an opportunity.” I don’t remember exactly what I said. Dave Plummer (00:12:54): But one guy, Alasdair Banks, he wrote back and he said, “I know somebody that I can put you in contact with.” And he put me in contact, I think, with a guy named Ben Slifka, who did a phone interview, who eventually wanted to hire me to work on MS-DOS for the summer. So, that’s how I got there. Lex Fridman (00:13:10): You put yourself through school by… Tell me about HyperCache. You built a piece of software- Dave Plummer (00:13:15): It’s the weight loss program for hard drives. Lex Fridman (00:13:17): That was sufficiently useful to a large number of people that would somehow give you money? Dave Plummer (00:13:24): Yeah, it made decent money. I mean, I sold a couple thousand copies. At 20 bucks a copy or 40 bucks a copy, depending on the rules. Lex Fridman (00:13:29): What program, what language was it written in? Dave Plummer (00:13:31): C. So there were some assemblers. The actual really tight code to do the real work of transferring data to and from the cache was 68,000 assembly. Everything else was C. Lex Fridman (00:13:40): Okay. This is like file system I/O? Dave Plummer (00:13:43): Device block I/O. So any block that gets serviced from the drive would go through my cache first, and it was an N-way associative cache, and so it would try to match the geometry of the drive and do pre-fetch based on you’re trying to read a whole track at one time, that kind of thing. Lex Fridman (00:13:57): What was it like trying to get your software out there at that time? How were you able to find customers? Dave Plummer (00:14:05): Yeah, it’s interesting. I think I started on Usenet and some of the Amiga forums, posted, “Here’s my trial version, try it out for 30 days, see what you like.” And eventually it got picked up by a few retailers, and I remember I was with my… Now wife in her car, and she had a cell phone, because her dad was very concerned about her safety. And so this is late ’80s, and she’s got, you know, the antenna on the roof and the big box in the trunk, the whole deal. But we got a call from one of the software retailers that wanted to buy 50 copies at… 20 Bucks, which to me is a thousand bucks, which in 1989 or whatever year it is was a big deal. And so eventually a number of companies just bought inventory. Lex Fridman (00:14:41): Let’s go to that time. It’s such an interesting time with Bill Gates and Microsoft. Why do you think Microsoft was dominating the software and the personal computing space at that time and, and really for many, many, many years after? Dave Plummer (00:14:52): At the time, it was the single most potent assemblage of smart people that I’ve ever been a part of. And I’ve been in academia and I’ve been in industry to a certain extent, and you know, when you’re working at a regular computer company, the one guy who actually knows what he’s doing, his smarter friend? He probably works at Microsoft. So when you get there, you’re the big cheese from your small town, you think you know a lot, and all of a sudden, you’re just in an environment where, like, “Uh-oh, I’m just not going to speak because I don’t want to look stupid.” Lex Fridman (00:15:20): Okay. What about Bill Gates himself? What are some qualities of Bill Gates that you think contribute to the success of Microsoft? Dave Plummer (00:15:28): I think he was relentless in the pursuit of his one dream, which was his old slogan of a computer in every home and a computer on every desk. It was his special interest, and he was a smart guy, super determined, and he hired people that were as smart or smarter than him to help him execute it. And he built an almost unstoppable machine of intellect to go forth and make, let’s say, very simple products. MS-DOS is not a complicated product by any stretch, but it’s exactly what the market needed at that time. Lex Fridman (00:15:56): MS-DOS changed the game. And that’s actually the team you joined, the MS-DOS team, and I think you joined before Windows 95. Was released. So tell me about the story of MS-DOS. Its success is probably pivotal to the success of Microsoft. Dave Plummer (00:16:18): Before DOS, they were largely a language company, so they had made BASIC for a lot of computers, and they had a Fortran compiler and a Pascal compiler, that kind of thing. But their deal to have MS-DOS included with every version or every instance of the PC effectively set them as a standard that they were able to leverage for decades going forward. To a certain extent, they lucked into that, and on the other hand, they were smart to have done it. They didn’t charge IBM a lot of money for it, but making it a standard really played out to their advantage over time. Lex Fridman (00:16:51): So at that time, MS-DOS, no graphical interface. Can you just speak to what the heck MS-DOS is? Dave Plummer (00:16:57): It’s largely a command launcher. So you type in a name of a command, it looks it up to see if that’s in the current directory or on a special path of folders, and it loads it into memory and executes it if it’s there. And that’s 90% of what MS-DOS does. Now, it has environment variables and some complexity and a small scripting language built in, but it is basically just an operating system shell that allows you to use the resources of the computer, like the hard drive or the CPU, and it doesn’t allow you to multitask. There’s no graphical interface. Now, Microsoft did a- add a text-based graphical interface for things like an editor and QuickBASIC in DOS 5.0, I believe, and there was a DOS shell, which was sort of a graphical file manager in MS-DOS 4.0. Dave Plummer (00:17:38): So they experimented with it, but it’s largely a command prompt. Lex Fridman (00:17:42): Does it have the ability to communicate with external devices, so drivers and all that kind of stuff? How expansive of an operating system was MS-DOS? Dave Plummer (00:17:52): Well, it was limited by the original x86 instruction set, which limited it to 640K. And then there were various Band-Aids on top of that to do high mem and then extended memory beyond that, and a lot of hoops have to be jumped through to make anything work without consuming base RAM. Lex Fridman (00:18:10): Yeah, I mean, you programmed on MS-DOS. What’s it like? What are some interesting details there? Like you said, there’s the memory constraints of 640 kilobytes. Dave Plummer (00:18:20): Yeah, 640K is the maximum that’s ever gonna be available, so it’s not what’s available to you as an operating system developer, because whatever you use is what the user won’t get. So if you use 10K needlessly, you’re gonna… Every machine in the world now has 10K less, so it’s kind of a big responsibility. Lex Fridman (00:18:35): Is that a true quote from Bill Gates, where he said, Dave Plummer (00:18:38): Nobody will ever need more than 640K? Yeah, no, it’s not him. It’s been attributed to him, but not real. Lex Fridman (00:18:43): What are some interesting aspects of what you were able to do as an intern and when you joined on MS-DOS and beyond? Dave Plummer (00:18:52): One of the first things I did was to take SmartDrive, the disk cache, ’cause I had familiarity with disk caches- and to add CD-ROM caching to it, because that was new. CD-ROMs were just coming out. Microsoft Bookshelf is one of the few products you could run for it. And as you can imagine, caching a CD speeds it up by dozens of times if you’re smart about it. So it was a big performance win and a nice thing to work on. A bigger part of that was moving a bunch of SmartDrive and eventually the double-space compression engine up into what’s known as high memory. Dave Plummer (00:19:19): And without rat holing on the technical aspect of it, on the x86, there’s something I believe called the A20 line. And I probably have this backwards, or I got a 50-50 shot at it, but if you’ve got the A20 line asserted, then your memory pointers wrap at the one megabyte mark. Dave Plummer (00:19:34): And if not, they don’t. So you continue going up in memory. So you can rewrite memory above by combining your segment and offset registers to a number bigger than one megabyte, and you get an extra 64K. And you put your code in there, and then you just put stubs to jump to it from low memory. And so you can get another 64K out of the machine that way, and we did that for a couple of the products. And that’s … I had no idea what HIMEM was, ’cause I was an Amiga programmer and I’d never written any x86 code before I got there, so … Lex Fridman (00:20:02): So that was, like, a cool optimization you got to be a part of. So what about Windows? There was a parallel development of Windows 95, right, at that time. Did you get a chance to interact with those folks? Dave Plummer (00:20:12): I actually worked on Windows 95 for about three or four months. I was on the COM/OLE team doing the presentation cache, which is when you insert a, say, a Word or an Excel spreadsheet or chart into a Word document. You don’t want Excel to have to be loaded to render it every time, so there’s a presentation cache of enhanced metafiles and I was working on that. So that shipped in Windows 95, but I moved to the Shell team about six months after getting to Microsoft, and so I worked on NT from there forward. Lex Fridman (00:20:38): Okay, and what’s 95? What’s NT? Dave Plummer (00:20:40): Windows 95 is an evolution of the original 16-bit Windows 3.1, which was the very first popular version of Windows. And it adds 32-bit support, then VxD drivers and a bunch of new technology and an entirely new user interface. And it’s something that at the time was revolutionary. The people lined up at night to wait in line to buy the thing. Lex Fridman (00:21:00): Can you just take us back to that time and describe why 95 was such a big leap from 3.1? So Apple already had a graphical interface. Windows 3.1 had a graphical interface. Why was Windows 95 such a gigantic leap? Dave Plummer (00:21:17): I don’t want to make it as basic as the Start menu, but I think… …It’s a big part of it. I know when I first saw it… …I couldn’t quantify what about it was different and awesome, but I realized that I wanted to be a part of it, and that’s why I started writing a Shell extension, which became Zip folders at some point. But I was just fascinated by the new Shell, and that’s why I wound up working on the team that brought that Shell over to the NT and what’s Windows today. Lex Fridman (00:21:39): Would you say that’s the greatest operating system ever? What’s the most impactful operating system ever? Dave Plummer (00:21:46): Windows 95 would be number two for me. I think OS/360 is going to be number one. Lex Fridman (00:21:50): Okay, interesting. Dave Plummer (00:21:51): Because you could take a machine and write a COBOL program for it in 1962, jump in your time machine, go to Poughkeepsie and boot up an IBM z17 mainframe and run it today. And they’ve been doing it for however many years that is. And it’s all on the business side, so we as consumers don’t have much access to it, but I think it was probably as influential in the commercial side as Windows 95 was in the home side. And then probably Linux would be number three for me. I put Linux as bigger than Unix, which doesn’t work because you can’t have one without the other, but the impact of Unix, BSD, and so forth, is largely in the academic space. It’s by programmers for programmers. Lex Fridman (00:22:29): So, yeah, Linux created… I mean, it was the embodiment of the open source spirit at its largest scale. Right? So it almost created a community and it created a spirit of programming that propagates to this day. That’s true. That’s true. Like scale matters. Dave Plummer (00:22:51): Yeah, and its penetration on the server side of things now is, I don’t know if it’s equivalent to what System/360 achieved, but it’s almost ubiquitous, so… Lex Fridman (00:22:59): Yeah, the world… I mean, this is the quiet secret of the universe, is it runs on Linux. Okay, so tell me about your work days. What were they like back then? Back in the MS-DOS and Windows 95 days? Take me through a productive day. Dave Plummer (00:23:17): Well, your day starts coming in and you’ve got to download the address book, which is… Microsoft has between 10 and 15,000 employees at this point, and we’re all on MS Mail. We’re just getting off of the PDP-11 called Miss Piggy, which ran Whizmail, and we’re running MS Mail. But MS Mail has a fixed address book that every user must download every morning, and when there are 10,000 people downloading 10,000 people, it gets pretty messy. And I think we were on 10 megabit networking at the time, so your first hour is downloading the address book, which was always frustrating. But you’d use that time to look at the crashes that would have happened overnight from a process we called Stress, which is NNT… Dave Plummer (00:23:53): All the machines that are unused run tests all night long and they try to crash themselves, and if they manage to crash themselves, it will drop into a debugger with a serial cable to another machine and you can connect to that other machine and remotely debug the crashed machine. So you come in and they will have triaged bugs, you know, there was a crash in the Start menu, so we’ll assign that to Dave, and so you come in and that’s your first thing, is to connect, because you’ve got to get that machine back to the guy that owns it and unlock the machine, so that’s your first hour of your day, is basically triage for bugs that have come up from Stress overnight and then at that point it’s probably back to coding, which unfortunately 80% of the time is fixing bugs, especially in my career it Dave Plummer (00:24:31): was porting code and fixing bugs. I wasn’t writing a lot of new code and there were exceptions. I wrote a lot of new code on the side to get it out of my system… …From a day-to-day grind of always fixing bugs in other people’s code, which is amazing learning experience. Lex Fridman (00:24:46): So you did a lot of the… At Microsoft, you did a lot of the porting of what is it, Windows 95 code to NT? Dave Plummer (00:24:53): Yeah. We took the entire Windows 95 user interface, and we ported it to NT, which meant making it Unicode, for one thing. So everything that was eight bits is now 16 bits. Lex Fridman (00:25:02): Okay. Dave Plummer (00:25:02): …pointers. It’s quite a mess when you switch the code over, as you can imagine. Lex Fridman (00:25:07): Can you give us insights into what is involved in porting? Dave Plummer (00:25:12): It’s like breaking into somebody’s house and going through all their stuff and seeing the stuff in their drawers that they didn’t want you to see. You find all the good stuff, the pretty pictures hanging on the wall, and you find some disturbing stuff in the nightstand. I saw code that was like 200 characters wide with, you know, profanity and swears in it. It eventually got all cleaned up over the years by the time I left. But it was not always the most professional code in the world. Lex Fridman (00:25:37): Right, because every single piece of code you have to go through. Dave Plummer (00:25:40): Line by line, so you see it all. Lex Fridman (00:25:41): Yeah. I mean, that’s the story of programmers. You write a piece of code, and you think it’ll never be seen by anybody. And sometimes, oftentimes, that code is going to be seen by a very large number of people, …that come after you, including you five years later. You yourself looking at your own code. Okay, so tell me about Windows NT. That was a giant leap too. Dave Plummer (00:26:06): It was. It was basically a clean-sheet design. So they went and they got Dave Cutler from Digital Equipment, who had done operating systems for them, VMS and RSX-11, he had done. And so he came over after, I believe it was Prism and MICA were some projects at DEC West that got canceled. And so you had a whole team of guys where their project is canceled, and basically, they took a whole bunch of them and came to Microsoft. And I don’t know the specifics of the deal, but they all showed up. So you had Dave Cutler and Mark Lucovsky and all these really smart guys from DEC, and they did basically a clean sheet, but they also had OS/2 as a starting point. But OS/2 was, of course, written in assembly language, and NT is going to be written in C. Dave Plummer (00:26:46): So to what extent they were able to leverage any of that, I don’t actually know, but at least they had a system to start with. Lex Fridman (00:26:53): You said that Dave Cutler’s the man, the mind behind Windows. Can you explain? Dave Plummer (00:26:59): So Dave Cutler is the architect of the kernel. So he is Linus in the Linux world. It’s Dave C. in the Windows world. Lex Fridman (00:27:06): Yeah. Dave C., okay. Dave Plummer (00:27:07): And it’s not that there weren’t other people that contributed, of course, huge pieces to it. But I think he’s the driving force behind it and always largely has been. And he’s still… I think he’s 85 now. He still codes every day. He’s a Microsoft Fellow. He, as far as I know, still goes into work, so… Lex Fridman (00:27:21): Can you speak to the genius of that guy? Like, what’s interesting about his mind, having worked with him, having interacted with Dave Cutler? Dave Plummer (00:27:30): Well, the dude’s wicked smart, but he’s also like a farmer. He’s like the guy that will follow you around and make sure that stuff gets done and gets done right to make sure that you’re not checking any crap into his operating system. And he won’t tolerate it. And he’s a real taskmaster in that regard, but I think it really paid off ’cause it was a very big paradigm shift for Microsoft developers to be subjected to the Dave Cutler Digital Equipment style of leadership. Lex Fridman (00:27:55): What did you learn from that about successful software teams, where there’s a large number of people collaborating? Because Microsoft had a lot of brilliant engineers back then, and like you said, Dave Cutler. They had to they had to create completely new systems, many of which we still use today. What have you learned about great software engineering teams from that time? Dave Plummer (00:28:21): Tools are everything, I think, for one. And people are everything. We’ll grant that. But the tool set is a huge factor. If we went ahead with Git, it would have been immensely easier. We were using Diff and, you know, manual Deltas. …To do this porting and stuff. So being able to fork a branch of source code would be a luxury that is new to me. At the time, it would have been really handy. Lex Fridman (00:28:44): What were some memorable conversations from that time when you walked over next door- Dave Plummer (00:28:49): Well, what… Lex Fridman (00:28:50): … and talked to some of these folks? Dave Plummer (00:28:50): …I was not present for was, somebody was complaining, a new hire came into the team and was working on what I believe was called Cairo. Cairo was going to be the next future operating system, was going to be beautiful, and have a whole new user interface newer than Windows 95, and it never materialized. But while they were working on it, one of the guys working on Cairo was kind of flaming on the open NT dev alias, which is thousands of people, how shitty the NT boot experience was. The response that came back was an epic flame that I wish I would have saved, and I won’t name the guy who wrote it. He knows who he is, but… … It was a work of art of angry flame mail, kind of like the ones you see Linus send every now and then about kernel stuff. So it’s a very similar sentiment. Lex Fridman (00:29:32): Were there, like, kind of intellectual debates, like- Dave Plummer (00:29:35): Oh yeah. Lex Fridman (00:29:35): … there’s some, some heated stuff with the engineers? Dave Plummer (00:29:38): It was… Yeah, it got contentious. So you’ve got intellects competing, and eventually, the technical merits for some people are secondary, and it’s about besting the other person in that argument. And it’s no longer productive at that point half the time, but there was a fair bit of that. Lex Fridman (00:29:53): Yeah, I’ve seen those kind of debates in programming language design communities, like Guido van Rossum, the leaders of those communities, it can wear them down because people get… You almost forget the mission you’re on and start being very nitpicky about the details. I mean, engineering minds get together, and you just go to war over the stupidest, like, syntax subtlety. Dave Plummer (00:30:20): Right. Lex Fridman (00:30:20): Well, I shouldn’t say stupid, but it’s a small syntax subtlety for programming language. I’m sure there are internal battles about specific kernel components. Dave Plummer (00:30:32): Yeah, I mean, there’s one that I lost that still bugs me to this day, I think. Lex Fridman (00:30:35): Okay, yeah. What’s that? Dave Plummer (00:30:38): ‘Cause I still think was right. Well, when we were doing the shell, we were porting everything from ANSI to Unicode, so every character that was eight bits now becomes 16 bits. Now, the problem is I’m on a MIPS box ’cause I’m porting it to RISC…. and you can’t have unaligned addresses. But if you take two ID lists, which are basically past components, you take the one for C colon backslash, take the one for Windows, take the one for System32, and you add them together. But if you’ve got an odd number of characters, now you’re at an odd address in this thing, and it takes me an immense amount of work to turn on exception handlers, to do unaligned byte access, to pull the string out and copy it manually. Dave Plummer (00:31:11): And it’s literally like a hundred to a thousand times the amount of work to read a string out of this ID list on a MIPS machine because it’s unaligned. So I’m having the argument that even though it’s late in the Windows 95, they’ve already shipped one beta, that we should now just guarantee that ID lists are always an even number of bytes, or do some hack to just make sure this never happens so the code that references them on all this hard work can just blaze through it. And it became a shouting match and sort of a personal match and I lost that one. And I still think that, I know today, that that code running on Windows is thousands of times slower than it has to be and it- nobody cares ’cause it’s plenty fast but- …it could be a lot faster. Lex Fridman (00:31:49): Yeah. So yeah, I mean you mentioned MIPS and RISC. How deeply did you have to understand the lowest level? Sort of the lowest level of the software and even the hardware with the stuff you were building. Like what are the layers of the abstractions you had to understand to be successful with all the stuff you’re doing with NT and before that with… Dave Plummer (00:32:12): Well, about half your day is going to be spent debugging, and most of the time is going to be spent in call stacks that are in pure assembly language because there’s no source level debugging. So it’s not like we’re in Visual Studio, and you hit a breakpoint, and it pops up, and there’s the source code. You can go look at the source code, but you’re looking at the raw assembly dump from the machine at all times. Lex Fridman (00:32:29): So even if you’re programming in C, the debugging is in assembly? Dave Plummer (00:32:33): Yeah, 100%. Lex Fridman (00:32:34): Oh man. Dave Plummer (00:32:35): So it’s a little cumbersome. Lex Fridman (00:32:36): Oh. Dave Plummer (00:32:37): And better yet, we’re doing four instruction sets because we’re doing Intel MIPS, Alpha, and PowerPC. So depending on which machine it crashes on, you’ve got an entirely different instruction set… …That registers. And so you get reasonably adept at debugging all four, but I had more experience in MIPS, so MIPS stuff would come my way. Lex Fridman (00:32:54): That’s a real endurance event. I mean, can you speak to that? The torture there is debugging, especially that kind of debugging without the tooling associated with it. I mean that’s, you know, programming, kids these days, programming isn’t all about creating beautiful things, right? It’s also about fixing things. Dave Plummer (00:33:18): Yeah, I would say that 20% of my professional life has been creating and 80% has been debugging and fixing. And I mean, I got a bit of a reputation as somebody who could fix stuff, and so stuff like that would flow to me, and so I would spend more time doing that. I wasn’t renowned as a creative UI genius where I’m flowering all these new ideas. So I got to fix ugly stuff, but you get really good at that. So I don’t mind it until it’s one of those things where you’ve been chasing it for so long that you don’t know what to do next and you can’t understand why it doesn’t work or how it ever worked or whatever situation you happen to be in, and you know, after a day of it, it can get pretty trying. Lex Fridman (00:33:52): Yeah, debugging can be real torture. It can be really, really difficult. There’s a psychological component, I think, of perseverance. Dave Plummer (00:34:00): I think the ones that, you know, take you a day, they resolve one of two ways. Either it’s like, “Oh, extra semicolon,” and then you finally see it… …Or it’s some horrible manifestation of cross-threaded apartment nonsense that was really hard. But it can go both ways. I had a bug. It wasn’t my bug, actually, but it was a manifestation of a bug in Task Manager where every now and then it would say greater than 100% total CPU usage, and this looks pretty silly for a task manager. So I had tried to resolve it for a long time, and I’d talked to the kernel guys about my issue, and they were unsympathetic, let’s say, because the kernel guys are a special breed, and they weren’t interested in my user land problems. “It’s probably some issue in my code,” right? Dave Plummer (00:34:40): And they’re probably right, but it wasn’t in this case, and I was sure of it, and so I kept adding asserts all through the code to make sure that the preparatory steps of adding the stuff together were never more than 100, and that the final sum was never more than 100, and finally it never asserted. But occasionally we would get this bug where people would still see it, and so I finally put my phone number in the assert, and I was like, “If you see this message, call DavePL at 425-836,” my phone number. And finally, we did get a catch in the actual stress debugger that I was talking about earlier where it happened to somebody with a debugger connected. Dave Plummer (00:35:16): We were able to go through, and it was actually a kernel accounting issue, and it wasn’t a Task Manager issue, so they just fixed it in the kernel once I was able to prove that it was in fact a kernel issue. And you’d think we would then remove my phone number, but we just commented it out, so it’s shipped, and it’s in all the damn source code leaks for NT that are out there, so… Lex Fridman (00:35:32): That’s awesome. Dave Plummer (00:35:32): …that’s how I find Task Manager code. I search for my phone number on Google, and it will reverse-find… Lex Fridman (00:35:37): Oh, yeah, that’s fantastic. Dave Plummer (00:35:38): …the NT source code. Lex Fridman (00:35:39): Can you speak to the assert thing? By the way, I saw, I think you tweeted or you said somewhere that if you want to take your asserts really seriously, you add your home phone number in there. It’s true, it’s true. Dave Plummer (00:35:49): A little facetious, because it’s probably not the smartest thing, but… Lex Fridman (00:35:51): No, it’s not. Dave Plummer (00:35:51): …you will find out. Lex Fridman (00:35:52): But I mean, assert by itself is already a serious thing, because it stops all execution. I mean, this is one of the reasons I really, really love asserts, because they stop everything and force you to take care of the problem. Dave Plummer (00:36:07): Yeah, I’m a little religious about my asserts too. I don’t assert things that I hope aren’t true. I assert things that I know cannot be true, and I think that’s really the intent of an assertion. So I’m overstating the obvious, but when it does occur, it’s a bug, plain and simple. It’s not a warning. Lex Fridman (00:36:21): It’s kind of fascinating how often it can really help you figure out the problem, because if you put asserts everywhere, you can get very quickly to the source of the problem. Dave Plummer (00:36:34): Yeah, I tend to… it’s not something I want to suggest you go back and add later. It’s something you should do organically as you build your code. Lex Fridman (00:36:40): As you’re building. Dave Plummer (00:36:40): So for each function, if you’ve got assumptions like, “I know that this pointer is never null,” well, assert that. If you know this count is always less than twice the byte width, assert that. And don’t be afraid, because if it asserts, it’s doing you a favor. I think some people are afraid. You know, it’s like when you turn out of an intersection, and you think maybe there’s somebody coming, and you don’t look left. Or maybe I’m one to do that. But it’s like that. People don’t assert because they’re afraid they’re going to fire. Well, no, you want to know. Lex Fridman (00:37:05): You mentioned Task Manager. Obviously, we have to talk about this, the legendary program that you created, the Windows Task Manager. Tell me every detail of how you built it. What is Windows Task Manager? Dave Plummer (00:37:18): So Windows Task Manager is a way to go in and find out which apps on your system are using the computer, using the hardware, using the CPU, using the memory, and which ones might be using too much or locked up or going crazy. And it gives you the ability to terminate and kill those ones. So it’s an inspection and a fixing tool. Lex Fridman (00:37:34): Yeah, it lists all the processes. I mean, it’s a legendary piece of software. It’s crazy. You just take it for granted. It’s like the Start menu, right? It’s like genius. Dave Plummer (00:37:44): Well, I had the great fortune of working on a lot of things that people are familiar with. And Task Manager was one of those side projects that I started as something that I wanted for myself and eventually came in-house. So I started writing it at home and I got the basics up and running. I was using, I think it’s HKey Current Performance or HKey Performance in the registry to get the stats because I didn’t have access to the internal APIs because I was working from home and I don’t call those if I’m working from home. Dave Plummer (00:38:08): And when I brought it in-house then I was able to call things like NtQuerySystemInformation or NtQueryProcessInformation and get the real answers very quickly, which enabled it to become a very fast and responsive app. So people have come to rely on it because I wrote it to be as reliable as possible. I wasn’t worried about the features. It was a basic set of functionality that I wanted in there. I got everything I wanted, but I wanted it to be really robust. And small. And the original was like 87k. Lex Fridman (00:38:35): Okay, can you speak to what it takes to build a piece of software like that that doesn’t freeze? Dave Plummer (00:38:40): You don’t assume much, right? If you’re going to call the shell to run an app, well, that could be a network path that’s on a TCP/IP share that takes 90 seconds to time out. So anytime you do any kind of API call like that, that could take time, you’re going to wind up doing it on a separate thread. And so the app becomes a little more complex because everything is multithreaded. Lex Fridman (00:38:59): Okay, so what programming language were you working in? Dave Plummer (00:39:01): C++. Lex Fridman (00:39:02): So this was for Windows NT? Dave Plummer (00:39:04): Yes. Lex Fridman (00:39:05): Okay. Dave Plummer (00:39:05): So this shipped initially in NT 4.0. Lex Fridman (00:39:07): Okay, so what are some interesting details about this program? Because you have to get it as simple as possible, but also as robust as possible. What are some interesting optimizations, for example, you had to implement? Dave Plummer (00:39:20): There are a couple of things that are a little hardcore now. I’m surprised I did. Like, I didn’t want to link to the C runtimes at all. So I made sure never to call a runtime call and I didn’t link to them, and that saved me whatever the C runtime is, 96k or something. So, it almost doubled the size of the app if you just touched any C call. So I was careful not to do that, but then I was actually writing in C++, which is C with objects more than anything. But in order to get it to work, I had to go through and call all the object constructors manually from the dispatch table and stuff because you don’t have the runtimes to do it for you. Dave Plummer (00:39:50): So you’re working with a compiler that doesn’t have its runtime, and I don’t want to get off-topic on the technical issues, but it’s a lot of extra work to get it to work, but when you do, it’s incredibly small and tight. Lex Fridman (00:40:00): That’s about the size- of the program. What are some interesting aspects of tracking down every process and how much CPU usage is in that process? Dave Plummer (00:40:10): One of the cooler things that I saw is… I don’t want to say I invented Hamming code, but I kind of invented Hamming code without knowing Hamming code existed. So every column and every row in Task Manager has a bit on whether it’s become dirty or not, and then I can look, basically the same way Hamming code looks in your X and Y columns, to find out which rows have changed, go through, and find out which ones actually need to be repainted. So Task Manager is super efficient and it works in concert with the ListView control, which provides that functionality to go through and repaint as little as an individual cell that changes from frame to frame. So it could paint very fast, it can resize very smoothly, and resizing was probably my biggest personal goal with that app. Dave Plummer (00:40:51): So you can size it to any size and it still works and even if you have 32 CPUs, which wasn’t possible in the day, it will draw, I think, only eight graphs and then it wraps but it still works today. So kind of proud of that. Lex Fridman (00:41:06): It is incredible. You’ve gotten the chance to observe the evolution of Task Manager. In some ways, it really hasn’t changed much. Maybe there are some prettier aspects to it that fit into whatever version of Windows it’s in, but it’s really basically the same thing. Dave Plummer (00:41:23): The functionality is very same. The reporting is more because they’ve added GPU and thermals and things like that, which is really nice to have. And we didn’t have that ability in the day, so… Lex Fridman (00:41:32): I mean, what can you say? Do you know about, like, was there any refactoring done or is it basically the same code? Dave Plummer (00:41:37): As far as I know, the original code’s still mostly all there so there are layers of drawing code and dark mode code and whatever else, XML, schema code, that goes on top of that that makes it four megabytes instead of 87k but that’s the world we live in, so… Lex Fridman (00:41:51): Yeah, it’s one of those pieces of software you create and just stay once it’s there. It’s just really like the Start menu, and I’m sure if you remove it, people would just lose their mind. Dave Plummer (00:42:02): Yeah, it might be locked in for a while, on that one. It might be good. Lex Fridman (00:42:06): Yeah, I thought that would be true for Clippy, but Clippy will make it back one day. All right, what are some other pieces of software you created at the time that are legendary? So you were part of Space Cadet Pinball, at least porting. Dave Plummer (00:42:22): Yeah, so they came into my office and said, “Hey, what are you doing?” And I told them what I was doing and they said, “Well, how do you want to spend your next three months?” And I said, “I have no idea.” And they said, “Do you want to port Pinball?” And I’d seen Space Cadet Pinball as a game standalone for the Win95 platform and it had a couple different tables and it was a cool game so I was kind of excited. What they wanted was some visual splash for NT to show that NT can do, for then, high-speed graphics or at least responsive graphics. Dave Plummer (00:42:48): And so I took a shot, and unfortunately, a lot of the code was in Assembly, and I was on a MIPS, so I had to rewrite the code in C so that I could then port it to all the different platforms. At the heart of the game is a huge state engine, and it’s like a giant switch statement with, if I remember, like 50 entries in it. Dave Plummer (00:43:06): And it’s got an Easter egg built in. And decoding the state, it’s like running a neural network through this thing as you hit it with different states. And I just put it aside and treated it as a black box. So my code runs on top of that and does the drawing and the sound and everything else. But the original game is still running. And somebody recently asked me why it is slightly different; the physics are slightly different from the Windows 95 version, but it should be the same code because I’m trying very hard to preserve that. But what it is, is I had a bug where I will draw as many frames per second as I can, which on a modern computer can be 5,000 frames a second for Pinball because it’s a pretty basic game. Dave Plummer (00:43:45): And so all your physics are interpolated 5,000 times per second instead of 30 times a second, or whatever you would’ve got on the old one. So you’re getting arguably better, or at least different physics, but they fixed that since, so… Lex Fridman (00:43:57): Why is that game so awesome? Dave Plummer (00:43:59): I think it’s a great design. I mean, I take no credit for that. That’s all totally the guys at Cinematronics. But the original game is a great design. It’s very similar to Black Knight 2000, which I own as an actual physical pinball machine. And the layout is actually very similar. I don’t know if it was inspired by it or not. So it’s a good game. Lex Fridman (00:44:15): Yeah. Sometimes I think about Tetris, about certain games with pretty primitive graphics that captivate the excitement of a large number of people. And maybe it’s the excitement of a large number of people that contributes to the awesomeness of the game. So when many people together get excited and talk about it, that sort of gets implanted into your head. But that’s one of the great games. I mean, even like Solitaire and Minesweeper. I mean, there’s just a generation of people that have gone to war in Minesweeper, right? Dave Plummer (00:44:48): Well, those things were included in the OS not as games, but as educational tools to get you to use a mouse. Lex Fridman (00:44:53): Oh, interesting. Dave Plummer (00:44:54): So Solitaire is there to show you how to do drag and drop. And Minesweeper’s probably right-click. I think you put a flag or some item. I’m not a Minesweeper guy, but so each one of them teaches you something. Lex Fridman (00:45:03): Minesweeper guy? That’s funny. Yeah. Wow, I didn’t know that. That’s interesting. And that’s true. But I don’t know how many hours I’ve spent on these games, and millions of people have spent millions of hours on these games. Dave Plummer (00:45:16): I used to volunteer teaching computer science at my kids’ school, you know, for the third graders and stuff. So it’s more like logging in than computer science. But the kids, of course, all their dads work at Microsoft, so nobody’s impressed by anything you do. But so one of the kids found out I worked on Pinball, and then they were like, “Whoa, you worked on Pinball?” Because they all knew that in those days. Now the kids are probably aged out, they don’t know it anymore, but for a brief period. Lex Fridman (00:45:38): You’re behind the Windows activation. Dave Plummer (00:45:42): You say it like it’s a bad thing. Lex Fridman (00:45:44): Everything’s a matter of perspective. So tell the story of that. What’s Windows activation? How’d you get involved? Dave Plummer (00:45:53): So they came to me late in the XP ship process. I don’t know if the beta had gone out. I don’t think the beta had gone out yet, but they had intended to take the Office activation code and then adapt it to Windows and add activation to Windows. But whoever was responsible for doing it had slipped it enough times that it wasn’t going to happen. So I had kind of a reputation for being able to fix things quickly, so they came to me and said, “Can you get this done in time for XP?” “I don’t know, but I’ll try.” So with the help of the guys that were doing the DRM stuff on the DRM side and the research guys doing the math for the product keys and everything else, we cranked it out in time for XP. Dave Plummer (00:46:26): And I don’t know what its actual impact is for revenue, but I imagine it’s substantial when you start enforcing license keys. Lex Fridman (00:46:35): I wonder what it is. Dave Plummer (00:46:36): I don’t know. Lex Fridman (00:46:36): Because it’s also annoying. Dave Plummer (00:46:39): It is, especially if you have to phone activate. And that was just the case that we had to carry with us as an albatross around our neck, where you’ve got to pass data up to the clearinghouse, the backend systems that are going to approve your key. You’ve got to tell it all your hardware parameters, like how much memory and hard drive space and the various things the hardware key is bound to, as well as the product key, and you’ve got it encoded in letters and numbers that somebody’s willing to read in over a phone. And if you think doing product activation is painful over the phone, could you imagine being the person that worked on the other end of that line? I mean, that’s just got to be a mind-numbing job to listen to product keys for eight hours a day. Lex Fridman (00:47:13): Yeah, one of the challenges with Windows, and it’s been a frustration point for me, but I understand from a design perspective it’s very difficult, is so many different kinds of people use Windows. But it’s been frustrating how over time Windows has more and more leaned into the direction of not the power user, I should say, which is why Linux has always been really wonderful. But from an activation perspective or from any kind of configuration, it’s been a source of a lot of frustration. Dave Plummer (00:47:49): Yeah, one of my more popular episodes of late has been why you can’t move the Windows taskbar. And I had no idea, but the outrage is palpable amongst people that you— Lex Fridman (00:47:56): Yes. Dave Plummer (00:47:57): …just put it on the left or top and you can’t anymore, and it is an affront to their existence. And I understand it to a certain extent. Lex Fridman (00:48:02): Well, it’s one of the main reasons I really just dislike Windows. There’s a lot of aspects about Windows 11 I dislike. One of which is like you can’t customize things as much about the position of the taskbar, just basic customization. Can we just configure stuff? Because there’s going to be a small contingent of power users that are just going to enjoy the hell out of this operating system if you just give them that option. It costs you nothing. Just give them that freedom. Dave Plummer (00:48:28): Well, it does cost, right? Because the freedom to put the Start menu on the left or the top or the right really increases the complexity of the code that renders the Start menu and lays out the tabs and does all the things, and now it’s a much larger surface for bugs and it’s a much larger piece of code to maintain, so you probably need more developers or another developer or some portion of a developer’s time. So the question becomes at what point is it still worth it to satisfy the niche needs of a small set of users? Those decisions weren’t mine to make, but I could see it from both sides. Lex Fridman (00:49:04): I think just like the people who make movies and insert very nuanced details that only a small number of people will realize are there, that’s going to really pay off. There’s a kind of reputation that builds over time that has a very powerful ripple effect. That I think it has so many benefits, including for hiring great software engineers. It’s like you create this aura of a place that puts love into every detail, that really takes care of the power users, that takes care of the developers, and I think Microsoft has more and more moved in that direction with GitHub and acquiring GitHub and just taking care of the developers. But on the Windows interface side, come on, some customization. Lex Fridman (00:50:04): With VS Code, you can customize everything. Why can’t we customize the Start menu, all right? And the taskbar, and really every aspect of the Windows interface. I don’t know, maybe you’re right. Maybe it increases the complexity of the code. I suspect that’s just not the case. Dave Plummer (00:50:24): I bet it was. I bet it was a scheduling decision when they rewrote the Start menu. I think they rewrote it because it’s different than the old taskbar. Dave Plummer (00:50:31): And somebody was tasked with, “You’ve got to deliver this set of functionality, and if I cut out putting it on the left and the top and the right and two rows of tabs and all the other cool features, I can deliver it four months sooner.” And I’m not saying that’s the right decision, but I’m guessing that might be the kind of thing that motivates it. And they’re on such a different release schedule now. It used to be… You won’t see much craftsmanship unless somebody owns a component for a long time and it settles to a point that then you can work on and polish it, right? But if it’s always churning and the UI is changing every release, it’s never going to get that level of polish. Although I think the UI is pretty nice, but… Lex Fridman (00:51:06): Yeah, it is nice, but I think it’s a craftsmanship thing. Just like you with the Task Manager, if there’s a guy or a girl in there who takes ownership of it, who has a passionate… For them, it’s a thing that they take pride in over a period of time, they can by themselves in a short amount of time create something truly wonderful. Dave Plummer (00:51:33): Right. Lex Fridman (00:51:34): And like, I think if you have large software engineering teams with managers and scheduling of meetings and all this kind of stuff, yeah, okay. Then your argument applies. But if you allow the flourishing of individuals that create cool stuff and their own sort of side project, which Google is very good at. Dave Plummer (00:51:55): They’ve tried that, right? At Google, yeah. Lex Fridman (00:51:56): Yeah, like have fun with it. Like do some crazy stuff and then we’ll integrate it. We’ll try to integrate it into the whole ecosystem. I don’t know. I don’t know, because to me, it’s such a great joy for an individual developer to create something like customization of the Start menu or the taskbar because you know that millions of people are going to use the taskbar. And then you know that thousands, tens of thousands of developers might be using to customize even little subtle aspects of the taskbar. You know how much joy you create, you give to people to customize, to have some kind of JSON thing where you customize something about the taskbar? Dave Plummer (00:52:37): Okay, but how do you respond to the Steve Jobs aspect of giving you customization implies that we couldn’t figure out the right answer for you? Or maybe there is no right answer and all four answers are equally right. I have no idea, but… Lex Fridman (00:52:51): Right. I think I’ve always— I’m glad Apple exists. It’s a beautiful thing, and that idea of design is wonderful, but I always thought that Windows creates the contrast. The point of Windows is to be the operating system that works on all kinds of devices, that’s supposed to be much more open. And they’ve moved towards that direction more and more with Windows Subsystem for Linux. It’s just this whole developer-friendly ecosystem. The interface should be in the spirit of that, I think. But I do think that there could also be security vulnerabilities created with that. It’s not just the complexity of the code, because Windows is just under attack. Lex Fridman (00:53:30): It’s very difficult to keep it secure. Anyway, taking that tangent, you also developed ZIP file support for Windows, creating Visual ZIP, which eventually evolved into ZIP folders. Tell the story of that. Dave Plummer (00:53:44): So that was a piece of software that I wrote at home again, and what happened was, I was out with my wife, and I think it was a Sunday afternoon. We were driving around. This is 1993, and we’re living in our apartment, and we’re just seeing what the housing market is like out there. And there’s a guy, he’s got this beautiful three-bedroom house and a Corvette convertible, ’93 red, torch red, parked in the driveway, and the house is for sale, and it’s like 300K, I think. And there’s no chance I’m coming up with 300K at that point, or even the down payment on that. So I took the flyer, and I cut the picture of the house out, and I taped it to my monitor. And that was my incentive to just write something at night, because when I came home, I was doing two things. Dave Plummer (00:54:21): I was, one, expressing a creativity that I couldn’t get out at work when I was just fixing bugs, and I was trying to make some extra money. And so I wrote a Shell extension. Before I actually went to the Shell team, I started it, and that’s what led to my interest in going to the Shell team, based on an MSDN sample or MSJ at the time, an MSJ sample that I saw on how to, like, bring up a folder. Well, once I had the very basic bring up a folder template, adding ZIP file support to it was just incremental all the way. And I released it as a shareware product. Dave Plummer (00:54:50): I think it was 19.95 or 29.95, and I sold, whatever, a couple of hundreds or thousands of copies. And one day, I’m getting ready for work, and I get a call, and it’s a lady, and she says, “Are you Dave Plummer?” I said, “Yeah.” She said, “Are you the guy that wrote Visual ZIP?” I said, “Yeah.” And she said, “Well, this is Betsy from Microsoft, and we’d like you to come by and come in and talk about an acquisition of it.” And I said, “Okay, what building are you in?” And she’s like, “What do you mean?” And I said, “Well, I’ll come by.” And she said, “Well, no, you got to talk to travel, and you got to talk to legal, and this all has to be set up.” And I’m like, “I don’t get it. We both work at the same place.” Why can’t I just stop by?” I don’t know if I said that literally— Dave Plummer (00:55:24): …but it was a few minutes of back and forth where we both realized that she didn’t know I worked there. Lex Fridman (00:55:28): Yeah, that’s funny. Dave Plummer (00:55:29): They had just cold-called the author and then found out that it was me. Lex Fridman (00:55:32): Yeah, that’s funny. Dave Plummer (00:55:32): And so they made me an offer on it, and it’s the kind of thing where if I don’t accept the offer, well, now my choices are: I can keep selling my own version and quit Microsoft, or I can stop selling my own version and work for Microsoft. Neither of those is great. I mean, I’d like to keep my job, of course, but I’d like to still— …have this income stream. And the other option was accept their offer, which is what I did. So then I bought a used ’93 red Corvette, and… Lex Fridman (00:55:56): And you got to continue building it internally? Dave Plummer (00:56:00): I did. So we took a lot of features out, right, to simplify, because it had encryption, and it had a number of features that were common in ZIP programs of the day, but probably weren’t appropriate for Windows. And, at the time, encryption was like a munition, so you couldn’t just add encryption willy-nilly to various parts of the operating system, so we took out some things like that. Multi-volume support, I think, was taken out just to simplify it. Lex Fridman (00:56:23): Can you speak to ZIP in general, just the history of ZIP and, you know, compression, that whole thing? Dave Plummer (00:56:29): Yeah, it was really borne out of the BBS era when people were dialing in on modems to download trialware and shareware and other things from BBSs online and to compress them. Executables compressed about half their size. Other stuff compresses much more. But a guy named Phil Katz came up with a command-line program for MS-DOS called PKZIP, which was able to do compression of programs, and he has a rather tragic arc. But it became ubiquitous in the entire PC industry, and pretty much everybody was using it. So when Windows came out, there was no way to open up a ZIP file, but everybody had been creating them for a decade, and so that really drove the desire to have the ZIP support right in Windows. Lex Fridman (00:57:11): Yeah, and that’s another piece of software that’s just kind of with us to this day. Dave Plummer (00:57:15): Mm-hmm. And it could be vastly improved, but, you know, it was written in the single-core days, so it doesn’t do anything multi-threaded. And you’ve got a 96-core 7995, well, it uses one of them to unzip your file. Lex Fridman (00:57:26): What other awesome things were you a part of at Microsoft? What other pieces of software? Dave Plummer (00:57:32): I worked on the initial prototypes of Windows Media Center. So we did— Lex Fridman (00:57:35): Nice. Dave Plummer (00:57:35): …that in ’96, I believe. And we didn’t have, at the time, any sources, so we had like a CD of MPEG video files of Raging Rudolph and I think the original South Park video— …the Christmas one, which is all wildly inappropriate in the workplace today, but— it’s all the content we had until we got actually… We had them put a satellite dish on the roof, a DSS, whatever the 18-inch dish is, because we couldn’t get cable to the building. And so we built up this thing that would eventually look a lot like Media Center, and it was distance viewing UI for Windows, so you could sit with a remote control on a desktop and have, you know… The current Start menu is not great at 20 feet away. Lex Fridman (00:58:13): Tell me the story of the infamous blue screen of death. Dave Plummer (00:58:17): What it is is when Windows has no other option, when the kernel gets into a state where something illegal has happened, so let’s say a device driver is trying to write to a piece of memory it doesn’t own or is trying to free a piece of memory twice, something that just cannot happen, and the kernel has no other option, it will shut the machine down to save your work. And… Well, not save, but prevent further damage, and it puts up a blue screen and it prints out the stack information, depending how your settings are. Sometimes it’s just a sad face. In the current Windows. Lex Fridman (00:58:46): I wonder what the first version of Windows when the blue screen came to be. Dave Plummer (00:58:51): So, Windows 3 had a blue screen- but it’s completely unrelated to the blue screen in Windows NT. And I talked to the guy who wrote the blue screen in Windows NT. His name’s Jon Viert, and the reason he picked white on blue, I had thought, I’d always heard it was because in the labs, you could walk through a lab where we have 50 PCs all running stressed. “Oh, that one’s got a blue screen. It’s—” “crashed.” It wasn’t that simple. It was just the MIPS firmware that he was building it on was blue on white, and Visual SlickEdit that he was using as an editor was also the same color scheme. And so you could code, boot, crash, and reboot, all in the same color scheme. Lex Fridman (00:59:25): Why do you think so many problems with computers can be solved by turning it off and turning it back on again? Dave Plummer (00:59:34): I think there’s two major things that happen with computers as you run them over time. One is memory gets used and not freed. And so it accumulates on the heap or in the swap file or wherever, and things get sluggish. And the other is, code gets into a state that the developers didn’t anticipate or didn’t test very well. And maybe that’s a rare state, but now that Notepad or Word or Excel is in that state, your system is goofy. So if you just reboot the thing or shut it down or restart it, you’re getting a fresh state and there are no memory leaks, so it covers a lot of sins, basically. Lex Fridman (01:00:03): And the intricate ways that several pieces of software in a goofy state interact with each other creates sort of a meta goofy state that just the entire system starts acting a little weird. And then somehow fixes it. What are some of the best and the worst code you’ve seen during that time at Microsoft? What’s some beautiful code and what’s some ugly code that pops to memory? Dave Plummer (01:00:31): In terms of beautiful code, there’s two that stand out for me. One is the kernel in general. When you get down into the Windows kernel- Dave Plummer (01:00:38): …in the actual NT APIs and stuff, it’s very well written, and it’s written to a standard that you don’t see on the user side, or at least is uncommon on the user side. On the user side, probably the coolest code I remember seeing was a guy named Bob Day, who wrote a named pipe implementation to eliminate the use of shared memory. So Windows 95 had a big shared segment amongst all the shell processes where it would store stuff that was common to all the shells. We didn’t want to do that. Shared memory is a bad idea on NT at an industrial level, so he came up with a way to do it with named pipes, and I remember doing a code review on it, and it was very impressive to walk through the code. Dave Plummer (01:01:15): It was one of those things where it was like, “Oh, I don’t think I could have done that if I was trying.” Lex Fridman (01:01:19): Who’s the greatest programmer you’ve ever encountered? Dave Plummer (01:01:22): You know what? I don’t think there is any one. I’ve met a number of great programmers, but I’ll tell you one story that impressed me a lot. When I was brand new at the company, I’d been there like six weeks, and I’m working on this OLE Presentation Cache that I’d mentioned earlier. And I’m on Windows 95, and I’ve got Excel inserted into Word, and I’m in the kernel debugger, and something’s going wrong in the scheduler. And I’ve been there, you know, I’ve barely written any x86 code, and I’m looking at the Windows scheduler, trying to figure out why my thing is deadlocked. Dave Plummer (01:01:49): And eventually, I get stuck, so I’m kind of out of my element, and I send an email to the Windows 95 kernel team and say, “Could you send somebody by?” So about 10 minutes later, this developer strolls in, and they’re just holding a null modem cable, which is to connect my two machines together so they can debug one with the other in case I didn’t have it, but it was already set up. And so they sit down, and they’re using WinDbg, which is a horrible debugger. It’s just accursed. Dave Plummer (01:02:10): But they’re very, very competent with it, and they are just blasting through the call stacks, and they’re checking all these objects in the kernel and trying to find out who’s waiting on what and why things are deadlocked, and what things are signaled and what’s not. And it’s just this quicksilver ballet of call stacks flying by, and I’m watching this, and I’m pretty blown away because I’m a good programmer, but this person is an amazing debugger, and I’ve never seen a performance like this. And about five minutes in, I just hear, “Oh, I see.” And then they disconnected and got up and left. And that was Laura Butler, who became a distinguished engineer at Microsoft. I think she may still be; I’m not sure if she’s retired or not, but… Dave Plummer (01:02:49): So she kind of set my template for, you know, what Microsoft developers were like when they’re debugging and what kernel developers were like, and even what female developers were like, because I had such a small sample set. But it was a very high standard, so… Lex Fridman (01:03:02): There are few things I love in life more than people who are ultra-competent at anything, really. But the lower level, the better, in the engineering space. They’re able to, for example, run or maintain the computer infrastructure. So not the individual computer, but the computers communicating and working together. Those people are just magicians. It’s so inspiring to make… It’s like watching a great carpenter or… Dave Plummer (01:03:28): I love anything done really, really well. Lex Fridman (01:03:30): Yeah, it’s beautiful to see. It’s beautiful to see that humans are able to accomplish that. Even in civil engineering, when I look at bridges, it’s like the number of people that had to come together to build that, and now millions of people use it every single day. With software, sometimes you don’t get to see visually just the number of people impacted by a thing. So imagine how many people are impacted by Linux and all the different open-source systems that make up Linux. It’s incredible. And Task Manager is an example of a piece of software. Just how many people have used that over the years, and how many times? It’s crazy. It’s probably, is it billions? Billions have used that. Dave Plummer (01:04:12): Yeah, two billion a month or something. Lex Fridman (01:04:13): Two billion? Dave Plummer (01:04:14): Something like that. I’ve seen the metrics, and it’s up there. Lex Fridman (01:04:16): Oh, crazy to think. Dave Plummer (01:04:18): It is. What I love about it, though, and I’m sure you’ve had this experience, where sometimes you design a piece of software, and it’s complex, and you get it working in your head, and you get the plumbing working, and you know how it’s going to run and flow, and then eventually you write the code, and the code does that thing that you had pictured in your head. And now there are billions of copies of that thing that I had in my head running on billions of people and machines, and that in itself is really cool to me. It’s not a vanity thing so much as I’m impressed by it, I guess. Lex Fridman (01:04:46): How’s your programming evolved over the years? Dave Plummer (01:04:50): I take a lot more care with complexity these days. So it used to be you would write code and just keep writing code, writing code, and then at some point, go back and clean it up. Well, I write the other way now. I try to write really clean initial skeletal code and then flesh it out because I have been involved in too many projects of my own and of other people’s making where things get so messed up that they’re just not fixable. And so sometimes the work you put in upfront pays off, you know? Lex Fridman (01:05:18): What programming languages have you used over the years? What’s been your main go-tos? Dave Plummer (01:05:22): For me, it’s been C++ and assembly language. Lex Fridman (01:05:25): And still to this day, C++ is really what you lean on? Dave Plummer (01:05:28): Yeah, right now I’m 100% Lua and Python, but that’s just a side project I’m working on. Lex Fridman (01:05:33): Can you speak to the Lua and the Python detour that you took, and what do you love about C++? Dave Plummer (01:05:40): What I’m doing is I wanted to build an AI to play the game Tempest. That’s the old Atari game, Tempest. This is a game that I actually hold the world record on. Lex Fridman (01:05:49): Can you take me to this Atari game, Tempest? Okay, Atari Tempest. What kind of game is this? Dave Plummer (01:05:55): So it’s a 3D vector game from 1980. Lex Fridman (01:05:59): Okay. Dave Plummer (01:05:59): And it’s a very complex game. You’ve got full 360 degrees of motion, you have eight shots on the screen, there are like 11 enemies, there are spikes. So it’s a very complex game. It’s not like trying to do Pong or something. And what I wound up doing was first taking the ROMs out of the machine and reverse engineering the code. So I got a sense of where all the code in Tempest lives and what it does, where the zero-page variables are, where things live. And yeah, there’s one. Lex Fridman (01:06:23): So, oh, wow. That’s a very geometric… Okay, what can you explain to me about the gameplay? Dave Plummer (01:06:28): Yeah, that’s me playing the game right there. Lex Fridman (01:06:30): This is literally you playing? Dave Plummer (01:06:31): This is me. Dave is the high score, you’ll see, in the top center there. Lex Fridman (01:06:34): Can you explain to me what I’m looking at? Dave Plummer (01:06:36): Well, it’s a 3D geometric world. It’s basically 3D Space Invaders wrapped into a shape, and the enemies descend from the center of the tube towards the outside, and they all have different behaviors. Lex Fridman (01:06:50): Wow. Dave Plummer (01:06:51): So long story short, it’s a fairly complicated game to play well, and I wanted to see if I could get an AI to do it. So once I had figured out where all the interesting parts of the game lived in memory, I added them as parameters and built a Lua app to extract everything from the game’s memory as it’s running and puts them together as parameters, which sends it to the Python side over a socket, and then the Python side does RL learning. I’m using a dueling Deep-Q, and I believe… Two with two head and tail, and they chase each other and it can play up to about level 36 now, which is way better than most humans. But that’s level 96, so it’s got a ways to go yet. Lex Fridman (01:07:27): And you’re the red thing shooting? Dave Plummer (01:07:29): Yes. Lex Fridman (01:07:30): You’re controlling the red thing that’s shooting? Okay. What are the options? You can just move clockwise or counterclockwise and then you could shoot. Dave Plummer (01:07:38): Yeah, so you have a rotating knob- …which is an optical spinner, and you have a fire button and a super zapper for emergencies. But that’s it. Fire and rotate, basically. Lex Fridman (01:07:46): All right, let’s get back to your favorite C++. What do you love about C++? Why have you stayed with it for all these years? Dave Plummer (01:07:51): Because it allows me to encapsulate my favorite C code in classes. I’m not a big- Lex Fridman (01:07:57): You’re really a C guy. Dave Plummer (01:07:58): Well, I actually- Lex Fridman (01:07:58): Okay, I got you. Dave Plummer (01:07:58): Yeah, I’m really a C guy. Although I write two kinds of C++. I write really modern C++ 20 using no pointers, no strings, or no character strings, so there are… you know, it’s basically as safe as Rust as far as I’m concerned. Or I write C with classes, which is standard C, but, you know, with polymorphism and encapsulation. That’s most of what my code is, but I try to do both. Lex Fridman (01:08:23): Let me ask you about the whole stretch of time that we kind of skipped over. You built a lot of software over the years after Microsoft, on the side while at Microsoft and afterwards, a lot of successful pieces of software. One of your companies was Software Online, and it got into trouble for nagging users too much, I guess- Dave Plummer (01:08:44): Yep. Lex Fridman (01:08:44): … to upgrade. That’s what I saw. What was all that about and what did you learn from that experience? Dave Plummer (01:08:49): That was… Other than, like, family health scares, you know, when kids are sick, that was the scariest time of my life. And the period leading up to it was one of the most invigorating and exciting, because what had happened was while I was at Microsoft, I had written all these shareware utilities and I was selling them on the side and sold one to Microsoft, as we talked about, and they started to do really well. And then I discovered banner advertising online. So I signed up with my credit card for a site, I think it was called Fast Click, and you could say, “I will pay this much for a banner ad impression. Here’s my banner.” And it would rotate it in. And I didn’t set a cap on it. I came back on Monday and I saw I had spent like $10,000 in banner ads. Dave Plummer (01:09:26): I was like, “Holy crap. How am I going to explain this to my wife? This is a bug, it’s a mistake, it was my fault.” And I looked at the sales and it had made like $38,000 worth of sales. And I was like, “Holy cow. So all I have to do is scale that at some point,” and basically did that for the next several years. And the reason we got in trouble was the AG came in and they had… well, I was blown away because they had like 12 court claims of action and 10 of them were outrageous, which to me as a person with autism, I couldn’t get past. It’s like, I know these 10 things are absolutely not true. Why are we even here talking about them? And then all they care are the two things that might be true. Dave Plummer (01:10:03): And the two things that might be true were that it was a 30-day trial version, and after your 30 days were up, it would then, if you continued to run it and not buy it or uninstall it, it would remind you once a day. Not like every 10 minutes, but once a day or every time you booted your computer, but most once a day. And the AG contended that was too often; it amounted to spam. And so we agreed with them to limit it to once a week, I believe. And, you know, there had to be a button to just uninstall with one click. So we did those kinds of things. The other one was, in those days, when somebody bought a piece of software, even if they bought it online and got a download, they fully expected there would be media showing up at their house. Dave Plummer (01:10:38): So in the year 2001, which were 2001-2003 we’re talking about, if you bought software, there was an expectation that a disc would show up. And so we made that the default, was to fulfill by disc and it was $3.95 or $4.95 extra, and it was very obvious, but it was a checkbox and it was turned on to ship the disc to your house. Because we found if we didn’t do that, we got all these calls, people would wait, they’d order, two weeks later call, “Where’s my disc?” And we’d look, “Oh, you didn’t order a disc.” “Well, cancel it all. Dave Plummer (01:11:04): I don’t want it because I’m not waiting for it.” And so we got a lot of returns and we didn’t include the disc, and so we decided to include the disc, but that is an a priori violation of negative affirmation billing in Washington State because you’re giving them a default higher purchase price. Lex Fridman (01:11:18): What about the software user relationship? It’s interesting, like, how often to annoy the user with a thing. Right? If you never mention anything, they might never discover something they actually want. But if you mention it too much, then they can get annoyed. Dave Plummer (01:11:46): Yeah. And what you don’t want is you don’t want them to have to do it or buy it or do something to get rid of it. Lex Fridman (01:11:51): That’s one of the things that bothers me with… I think Windows does that a little bit still to this day, where it bothers me by asking me certain questions, like, “Do you want this?” For example, I really don’t like to use my Microsoft account to log into Windows. I think now it’s basically required. I think there’s just no way around it. But they make it so difficult to not do that. It’s almost like they think they can just trick me into… It really does feel like I’m getting tricked into not doing what I want to do. Lex Fridman (01:12:32): It’s… I have to, like, think, “Okay, I need to click skip,” and then it’ll do something, “Are you sure?” Like, I have to use too much of my brain to do the thing I need… As an interface, you know what I’m trying to do. You’re trying to trick me into not doing the thing I want to do. And what I hate about that is, like… It’s probably effective, sure, for converting people, but it’s really not good long-term for taking care of the interests of the user. Dave Plummer (01:13:06): Yeah, the one that really throws me is the user recommended settings. So I just did a Windows upgrade, I went through the steps, and, you know, I’m going through this new dialog or wizard, and “use recommended settings” sounds like the thing you should do, but I’m pretty sure that resets you to using the Edge browser and… …And all this other stuff. So yeah, recommended by them, but not recommended for me. And that’s the difficulty. Lex Fridman (01:13:25): That’s a really good example. What effect do you think that does in resetting the default browser to Edge? Do you think you’re going to really earn the loyalty of a user if you do that? Don’t you think that there are actually… What you’re going to create… You’re going to create some passive loyalty from some user base, so on the metrics, it might actually look like you’ve increased the number of Edge users, but really, it’s that reputation hit you take over time where it just forms where the Edge is the thing that you can’t quite trust. Unfairly, because I think Edge is a really great browser, but just this unpleasant feeling. I don’t know what that is, and… Dave Plummer (01:14:10): Well, you don’t want your operating system to be an adversary, right? And sometimes Windows can feel adversarial. Like, it doesn’t have your best interests at heart, and that bugs me to a certain extent. Lex Fridman (01:14:20): I mean, we have this feeling, I think we just have general distrust when somebody is super nice to you and is basically selling something. There’s a certain aura about that kind of interaction. And when an operating system is interacting with you in that way, it’s like… Dave Plummer (01:14:36): Yeah, I would much rather pay $199 for Windows Pro per year, or 20 bucks a month, or whatever the fee schedule would be, and not be upsold any further and not have my data monetized, and those kinds of things, so… Lex Fridman (01:14:47): Did you learn about finding the right balance from that? Dave Plummer (01:14:50): Yeah, I mean, I’m way more self-aware now. There are things I would do much differently, particularly in terms of the advertising. I always figured… There’s a guy named David Ogilvy, and he did this ad long ago for the Volkswagen Beetle where it had a picture of a Beetle, black and white, and it just said, “Lemon,” and there was a block of text below it. So it’s clickbait-y and then informational, and I always tried to follow that pattern. But there are three ways to sell something, I think, and you can use sex, fear, or greed. Sex doesn’t work really well for software. Fear works well for antivirus and stuff, but not so much for optimization and make your computer faster utilities. Dave Plummer (01:15:24): And so I always tried to cater to the greed aspect. You know, make your computer faster, get more RAM available, whatever the value proposition is. But I realize now that I’m looking at that with my knowledge, and as an autistic person, I now have an appreciation that other people are going to look at it with their background knowledge and may conclude something different. So I might be scaring people where I was just trying to incentivize or get their greed instinct going. So I’d be more sensitive about that kind of thing today. Lex Fridman (01:15:50): Ridiculous question, but what do you think are the top three Windows operating systems? The different versions? Dave Plummer (01:15:59): I’m a fan of Windows 2000 server. That’s Lex Fridman (01:16:02): Really? Okay. … Wait, wait, pl- Dave Plummer (01:16:04): That’s what I ran my business on and I ran my brother’s business. We set up multiple salons all VPNed to one another and using the SQL Server and… Lex Fridman (01:16:11): I don’t know if I ever got to experience Windows 2000 server, so when was XP out? Dave Plummer (01:16:16): 2001. Lex Fridman (01:16:18): What was before XP? Dave Plummer (01:16:20): 2000. Lex Fridman (01:16:21): 2000. Was that good? Dave Plummer (01:16:23): Yeah, I liked it. I mean, it doesn’t have the visual flash that came with XP, but as a system, and especially as a server operating system, it was great for the day. Lex Fridman (01:16:29): But then XP was, hmm, I would say probably from a completeness perspective and impact and how long it lasted, it was probably the greatest Windows for consumers, the operating system. Dave Plummer (01:16:44): I would think so. It’s certainly got the longevity for it. There are people who still run it. I mean, I’d still run it on stuff if you could get security updates ’cause it does 98% of what I need Windows to do, but… Lex Fridman (01:16:52): Yeah, that was incredible. I mean, so Windows 95, I’ll probably put Windows XP as the number one for me and then Windows 95 two. Dave Plummer (01:17:01): What’s your metric? Personal preference or industry impact or… Lex Fridman (01:17:05): Industry impact, stability, just there’s certain, like, just like with programming, you have code smell. Just, like, how well all the features were orchestrated together, how there’s a design philosophy that permeated the whole thing and was consistent. Not too many features, not dumbed down too much. Dave Plummer (01:17:26): Right. Lex Fridman (01:17:27): But not overcomplicated. How often it crashes to blue screen. All of those things. Dave Plummer (01:17:33): I don’t know if it’s a very apt description, but I think of it as crisp. So there’s not a lot of rough edges. It does what it does, does it snappy and… Lex Fridman (01:17:39): You said you play slot machines, and given that you love hardware and software, you’re the perfect person to ask, how do slot machines work? Dave Plummer (01:17:50): Well, I’m happy to ruin them for you. Lex Fridman (01:17:52): Okay. Dave Plummer (01:17:52): So- It’s ironic to me that I play slot machines because I know it’s a losing bet overall, but there’s a whole dopamine feast there of bright lights and high contrast colors that I enjoy. So I do play them. But what happens is, internally, there’s basically a black box mechanism that does nothing more than generate the next random number and what the outcome is in terms of probability and payout. And then the game says, “I’ve got to make up a movie to go along with that.” And maybe it’s three bars or whatever it is, but there’s no correlation. It’s not spinning the reels, seeing where they land, and looking that up to see what you won. It’s completely the other direction. It determines whether or not or if you won and then makes something up to fit that scenario. Lex Fridman (01:18:29): That, that indeed is ruining it for everyone. Dave Plummer (01:18:31): A little bit. Lex Fridman (01:18:33): What kind of code runs them? Dave Plummer (01:18:35): I don’t really know. I tried to get down and get inside access to one, and it was very hard. They don’t want to tell you a lot about them, and I’m sure it’s not that deep of a secret, but… They’re all basic Windows PCs, but they’re basic Windows PCs on top of a very secure enclave of some kind that I don’t know a lot about. Lex Fridman (01:18:53): Yeah, it has to be extremely secure, right? Dave Plummer (01:18:56): Yeah. Well, in the 70s or 80s, there was a tech in Vegas who went around and he was burning his own ROMs for the slot machines. With a backdoor in them, so when he serviced the machine, he would just put his ROM in. Lex Fridman (01:19:06): Nice. Dave Plummer (01:19:06): And he’d come back six months later and… Lex Fridman (01:19:07): Nice. Dave Plummer (01:19:08): Invoke the backdoor and… Lex Fridman (01:19:09): I love humans so much. Anyway, do you have other favorite kinds of systems like that? Dave Plummer (01:19:15): I like a lot of old hardware. I restore cars, so I do a lot of 1960s muscle cars, cars and trucks. Lex Fridman (01:19:20): Nice. Dave Plummer (01:19:21): And old computers, so I restore PDP-11s. It’s been my fascination and my special interest for the last six months or so, and I’ve built a number of those. Lex Fridman (01:19:30): Yeah, I’ve seen you posting videos about it, the PDP-11/83. What’s that whole project? Dave Plummer (01:19:40): So basically, what it is, is I had built a number of PDP-11s. And so over the years, I had acquired all these parts and I decided, “Well, let me build the best PDP-11 that I can.” And so it was kind of a quest to, just like you try to max out a PC, I tried to max out a PDP-11. So it’s got four megabytes of memory, which would be massive in the day. And yeah, that’s it there. And it’s got lots of blinking lights, and I had to rewrite the BSD kernel to make the lights work and… Lex Fridman (01:20:05): What are we looking at here? What’s… Dave Plummer (01:20:09): So the very top is a PDP-11/70 control panel, which we can largely ignore, and then there’s two chassis below that. One has- Lex Fridman (01:20:15): What are the different knobs? Sorry to ask dumb questions here. Dave Plummer (01:20:18): The knobs, they, uh- … control what view you get of the LEDs. Lex Fridman (01:20:22): Oh. Dave Plummer (01:20:22): So normally, you see the data bus and you can see the address bus. And you can pause the machine, you can edit the add- address on the bus, and you can deposit stuff into memory with the switches. Lex Fridman (01:20:32): Man, the haptic plus the LEDs. That’s what you imagine a computer to be. Dave Plummer (01:20:39): Yeah. Lex Fridman (01:20:39): That’s so cool. That’s so cool. And then these are what? What are these? These are DU1, DU2? Dave Plummer (01:20:45): Yeah. It’s a weird floppy drive. It’s a dual floppy drive with one stepper motor. So both heads seek together like Siamese twins. Lex Fridman (01:20:52): Okay. So what, what kind of stuff are you doing with this? What are you- … are you trying to restore them? Dave Plummer (01:20:57): Yeah. So I restore them and- Lex Fridman (01:20:58): Does it actually run? Oh, all the blinking lights are real? Dave Plummer (01:21:01): Yeah, it’s all real. Lex Fridman (01:21:03): Wow. Dave Plummer (01:21:04): Then I had to rebuild the kernel and all that, so I had to learn the BSD kernel. I’m pretty familiar with it now to get… ‘Cause you can’t just add a device driver, right? You’ve got to rebuild the kernel to add support for whatever device. So you add a new disk controller. It’s time to build the kernel, so you gotta go find the source and find the code and… Lex Fridman (01:21:20): And you can run code on this? You’ve written a couple books on autism. Being autistic yourself, I was wondering if you could tell me about, like, fundamental differences about the mind of a person with autism versus a, let’s say, a neurotypical individual. Dave Plummer (01:21:34): Well, the fundamental theory of thought for autism is called monotropism. And basically what that means is that my brain does one thing and does it very intensely, and then when it’s done I can move on and do something else. But I’m not a multitasker. I’m a serial single-tasker by any stretch. Autism usually brings with it sensory sensitivities and repetitive behaviors, behavioral issues that compound it. And if they rise to the level where an individual can’t moderate or accommodate them in their life, it becomes a disorder. And that’s probably one to two percent of the population. Lex Fridman (01:22:08): What’s the biggest benefit of life with autism? Dave Plummer (01:22:11): I can bring to bear an incredible amount of focus and dedication on a particular task. It has to be something I love, it has to be something that’s rewarding, it has to be something I can make progress on, and there have to be all these things that are true about it. And it could be like a kid playing with trains. I get that same feeling. Lex Fridman (01:22:28): That said, you also said that you struggle with ADHD. Dave Plummer (01:22:33): Yeah, a fair bit. Lex Fridman (01:22:33): So that’s part of the component, like, maintaining the focus? Dave Plummer (01:22:38): Actually, acquiring the focus is the issue. So I’m very easily distracted. I fall asleep with noise-canceling headphones or I can’t fall asleep, that kind of thing. But once I get locked in, I’m very hard to distract. So it’s kind of a paradox. Lex Fridman (01:22:52): Oh, that’s fascinating. Dave Plummer (01:22:53): It’s hard to get into that state. Lex Fridman (01:22:54): Okay. What’s the biggest challenge of life with an autistic mind? Dave Plummer (01:22:58): That I don’t know what anybody else is thinking. So I know what I would think about this interaction if I was in your position and I was you. And that’s the best I can do. But I think most neurotypical people have a sense of, “Well, Lex probably feels this way or that way ’cause he’s acting this way and his reactions are this and his facial expressions say this and…” That’s all kind of lost on me. So I run a little proxy NPC game for everybody I deal with. Lex Fridman (01:23:20): So I guess that makes social interaction a little bit complicated. Dave Plummer (01:23:22): It can be, yeah. Telephone is especially hard because I rely on a lot of other cues, and when somebody is just on the phone and I just have their voice, there’s so much that’s implied between people that I miss. And so I’m much better on FaceTime, where if somebody makes a joke, they might smile after- Whereas on the phone, I don’t know if you’re being sarcastic or serious and that kind of thing, so… Lex Fridman (01:23:42): So that’s probably gotten you into trouble over the years a bit. Dave Plummer (01:23:45): Yeah. There’s lots of times with my wife, too, where… Well, there’s a certain literalism that comes with autism. And we spent years where she would say something and I’d say, “But that doesn’t make sense.” She’d say, “You know what I mean.” I’m like, “No, I know what you said and I’m not being just combative here. I literally only know what you said,” and I don’t have that. And I remember we’ve been in meetings with people, and you know, if there’s three or four people in the meeting and I’m the only autistic person, I’ll tell them that they’ve got this communication loop going on and I have to… You gotta tell me what’s going on because I really don’t know what’s being said here. So… Lex Fridman (01:24:19): You told me related to this that there was an early, somewhat awkward encounter with Bill Gates. Can you share the story of that interaction and how autism comes into play here? Dave Plummer (01:24:32): Yeah. My very first summer at Microsoft when I got the internship, Bill had all the interns over. I guess it was 20 or maybe 25 of us, that got hired that year over to his house for burgers and beers and just chat in the backyard. And of course, it’s still Bill Gates, and he’s a big enough deal even then that you’re a little nervous. And so my manager, Ben, who was sort of my mentor at the time, took me over to introduce me to Bill because he knew him. And he’s explaining, “This is Dave. He’s our intern from Canada. And in the space of four months, he’s done this feature and just copy and smart drive,” and he listed off all the stuff I was doing. Dave Plummer (01:25:05): But I stopped because I’m like, “Well, actually, it was three months.” And I had to interrupt them, and they both kind of, “What?” And they looked at each other, and I realized that was the wrong time to… …Correct a guy. But… Lex Fridman (01:25:17): Yeah. So you, like, little inaccuracies? Dave Plummer (01:25:20): Oh, drive me crazy. Lex Fridman (01:25:22): And then you, of course you don’t… The impact that might have on a casual social interaction, it’s not trivial for you to be aware of that. Dave Plummer (01:25:38): Yeah. I’m much better than I used to be. Before, I didn’t know and I didn’t know how injecting a correction meaninglessly into a conversation could impact or make the other person feel. Now I have a better sense of it, but… Lex Fridman (01:25:49): What advice would you have for folks who have an autistic mind on how to flourish in this world? Dave Plummer (01:25:56): In terms of prosperity and finances, the biggest thing I can say is sell what you can do and not yourself. Because if you go into a job interview and you try to wow them with your personality and how amazing you are, it may or may not go well. But if you go in with your portfolio of work and say, “Look, here’s my GitHub history and here are the awesome projects I contributed to, and here’s the actual algorithm I wrote, and this is what I do,” I think you get a lot further with that. So, whether you’re playing the piano or writing code. Lex Fridman (01:26:21): That said, so much of software engineering on large teams has a social component to it, right? Dave Plummer (01:26:29): It does, and that was a liability for me. Lex Fridman (01:26:31): How do you… I mean, what have you learned about how to solve that little puzzle? Dave Plummer (01:26:36): I think the biggest deficit for me was when I started to manage people, because now you’re concerned about their hopes, dreams, aspirations, what motivates them. They have entire lives that are kind of a mystery to me, because I assume they want to be motivated and led and encouraged and compensated exactly as I would. And that’s not always the case. Some people need a lot more affirmation, some people just want money, some people want to be in the important meetings and make decisions. But I was largely oblivious to that. And so eventually I had to learn that everybody that you’re managing has their own set of incentives and priorities, and they’re completely different from what I think they probably are. Lex Fridman (01:27:11): So you could, I guess, make things more explicit and just communicate better about, like, ask them about what their interests are. Dave Plummer (01:27:19): Yeah. And that’s something I started doing, is overtly asking. Because it’s hard for me to nudge somebody there. I’m not good with that kind of social dance, so… Lex Fridman (01:27:27): Yeah, part of the social dance is there’s a lot of stuff that’s unsaid. You can kind of figure out… You can read people. But if that’s… With autism, it might be a little bit difficult to do that, and so you have to make things more explicit. Plus, like, sarcasm and satire and humor might be difficult. I would love to be a fly on the wall in some of your earlier interactions with Microsoft. I mean, some of the greatest engineers have a mind like this, so… Dave Plummer (01:27:58): Yeah, I’ve had laptops thrown at me and stuff, and I’m sure it was my own fault, so… Lex Fridman (01:28:01): You write about the 10-second autism test. Could you explain how this works? Dave Plummer (01:28:05): Yeah. Now, there is, of course… Anything that has two answers has a high error rate, but… So what’s more important to society as a whole from the people, is it cooperation or creativity? And if you had to pick one, which is the most important? And most neurotypical people will generally lean towards cooperation, whereas people on the spectrum tend to lean towards creativity as individual problem-solvers. Lex Fridman (01:28:26): Of course, there’s some kind of error rate there. Dave Plummer (01:28:28): So if you want to double your precision, you can use a second test, which is you ask, “There’s a room with 10 chairs, and six people come in and sit down in those chairs. How many chairs are left?” Now, some people are going to say four, but I’m going to say 10, because that’s how many chairs are still there. Literally true. And I’m not being a dick. Lex Fridman (01:28:46): Yeah, okay. Dave Plummer (01:28:46): I’m not trying to be complicated, but that is how my mind works. And so when I see that question, it’s like it depends how you answer it. Lex Fridman (01:28:53): So you’re how literally you take things? Dave Plummer (01:28:57): Yeah. Everything is very literal for me. I remember as a kid, my grandfather was building a planter holder in the kitchen for my mom. And he was using these big angle brackets that I thought were a little overkill, and I said, “Do you think that’ll be big enough to hold the plant?” And he says, “It’ll be big enough to hold a horse.” And I was only five, but I was very confused about, A, why you would bring a horse into your kitchen, why you would put a horse up on a planter, and all of these things that didn’t make any sense to me when obviously it was a figure of speech. But for a lot of my life, I took figures of speech as literal, so… Lex Fridman (01:29:26): You’ve mentioned emotional post-processing as a strategy you use to replace social interactions so you can sort of reverse engineer to help you understand the neurotypical world. I think this is going to be useful to a lot of people. What does that entail? How does that help you? Dave Plummer (01:29:43): So if I meet somebody, particularly somebody new, and it’s my first couple interactions with them, so even meeting you today, then I will go home later and replay all of the moments where I had choices to make. And probably the most uncomfortable ones first, to find out, what did I do wrong in that moment? What did I miss? What was the other person thinking? How can I improve that kind of situation next time, and do I need to go fix it or make a phone call, that kind of thing in a bad… you know, in an extreme case. But… And that’s happened a couple times in my life. Like, I had a car restored that my dad had bought new in ’69. I still have it, so we’ve had it 50 years. Dave Plummer (01:30:18): About 20 years ago, I had it restored, and it was a three-year process of craftsmen working on this car for thousands of hours. I go out to pick it up and I’m inspecting the car and I’m very impressed with the work, and I’m saying, “Oh, this is nice and this is great,” and everything else. Then I fly home and write the check and the car gets delivered. And then I realized probably 10 years later that I had a whole bunch of craftsmen that had worked on my car for three years, and I probably should have blown some smoke up their butts about what a great job they did, but I never did that because it’s not what I wanted or needed in that moment. And I was completely oblivious to that. Dave Plummer (01:30:51): So I sent an email to the manager, or to the owner of the place, and I said, “I don’t know if you remember this, but 10 years ago, I picked up my car and I probably looked unimpressed, but I want you to know that I was very impressed with everything and the quality and everything else.” And he wrote back. He’s like, “I’ve thought of that moment often.” (laughs) So I’m like, “Now I’m glad I brought it up.” Lex Fridman (01:31:08): Yeah, there’s subtle things about human interaction that mean a lot to people, and if you ask them straight up, they might not be able to articulate that, but it means a lot. And when it’s off, when something is off, it bothers them. Dave Plummer (01:31:22): Right. Lex Fridman (01:31:22): But to reverse engineer that, to figure that out for a person who might not sense those little subtleties of human interaction is tough. Dave Plummer (01:31:32): That’s a good point to jump in there, too, on empathy because there is some perception in the community that people with autism lack empathy, and I don’t think that’s the case at all. I can only speak for myself. I feel fairly empathetic, but I think the problem is a communication one, and it works in both directions, whereas I don’t know how you’re feeling, so it’s hard for me to be empathetic with it until you communicate to me what it is you’re experiencing. And then once I know, once I have an understanding of what’s going on in your head, I can feel incredibly sorry for you. But until then, I’m going to assume you’re going to handle it just like I would in your position, in my case, with what I know now. Lex Fridman (01:32:06): What advice would you give to people on the other side? How can they help you be a better friend or partner or colleague? How should they communicate with you to help, like, give more information? Dave Plummer (01:32:18): Yeah. Be really specific. And don’t assume I’m going to pick up on clues and nuance and subtlety. So if you’re trying to nudge me into a particular behavior, you’re much better off saying, “Dave, this is what you need to do.” Lex Fridman (01:32:31): Have I failed in any way today? Dave Plummer (01:32:32): No, not yet. Lex Fridman (01:32:33): All right. What score would you give me out of one to ten? Am I a six? A seven? Dave Plummer (01:32:43): 7.5. Lex Fridman (01:32:43): Communication? 7.5? (laughs) Floating point. Nice. Masking. You got to tell me what that is. It’s a significant experience for many on the spectrum. What is masking? And tell me about any of the experiences you’ve had with masking. Dave Plummer (01:33:00): So masking is, and it’s probably not the right way to describe it, but it’s the act of acting normal. And that is, how do I conduct myself in a social situation in a way that other neurotypical people are going to receive and accept it the right way? And everything you do in a social interaction, from waving my hands to making facial expressions to tone of voice to posture, it’s a huge contrivance and it’s work. So it comes natural to most people, it’s just what they do, and cool people do it really well. But for somebody on the spectrum, you’ve got to fake it all. Lex Fridman (01:33:41): Yeah. Acting normal. Dave Plummer (01:33:44): There’s a song by Rush, you know the band? Limelight. And it’s written by Neil Peart. I only speculate about people who have passed on, so I’ve got a sense he was probably on the spectrum. But the line is something like, “All the world’s indeed a stage, and we are merely players, performers and portrayers, each another’s audience.” And he talks at length in the song about not being able to treat strangers as friends and being able to fake an affect and all that, so it seems like he’s struggling with masking a lot in the song. I have no idea, but that was what I took from it. Lex Fridman (01:34:13): You described meltdowns as an overwhelming experience. Can you describe meltdowns? What typically triggers a meltdown? Dave Plummer (01:34:22): Generally, it is… it’s when you’re emotionally overwhelmed to the point that you can’t manage your behavior anymore. So you see it in the movie Rain Man when he’s trying to get on the airplane and he’s kind of forced and he starts losing it. That’s a meltdown. Or I’ve seen it on… They did kind of a… Well, actually, probably the best portrayal I’ve seen in media is… What’s the TV show where the doctor is autistic? He’s… Anyway, there’s a TV show where a doctor’s autistic and he’s a surgeon and he is eventually banned from surgery because of his autism, and he’s always wanted to be a surgeon and he has a complete meltdown, and it’s a pretty good portrayal on television. Lex Fridman (01:34:56): What is actually happening? Like, there’s a threshold you cross that it’s just like… Dave Plummer (01:35:00): Yeah. The switch flips. Lex Fridman (01:35:01): It’s like a blue screen essentially- Dave Plummer (01:35:05): Yeah. Kind of. Lex Fridman (01:35:05): … for the brain algorithm? Dave Plummer (01:35:07): So the switch flips. You go to a primitive brain. Your frontal cortex shuts down to an extent, I think, so you don’t have the benefit of decision-making and filtering. You’re a very reptilian brain in that state. And it’s really a panic state. And so it’s a panic and a fight or flight response to not being able to tolerate the current reality. And perhaps it’s been so frustrating or you’ve been so randomized or you had a bad travel day or an argument at work or whatever, it’s added up to the point that something has now triggered you and your brain loses its ability to adequately moderate your behavior. Lex Fridman (01:35:41): What about love and relationships? What are some of the challenges of that and… You know, there’s a show, Love on the Spectrum. Dave Plummer (01:35:47): I’ve heard of it. I’ve not seen it, but I’ve heard of it. Lex Fridman (01:35:49): Because certain aspects, like literal interpretation of things, it just makes the complexity of romantic relationships even more explicit in that context. Dave Plummer (01:36:01): You know, I’ve been married 31 years and together for 37, so a long history there, and I think our first indication that we knew we were very different was we were sitting in the car one night out front of the house at dark and across the street there’s kind of a nice house, and it has these big brick pillars that are linked by, like, anchor chains and it forms a fence around the yard. And I’m looking at these things ’cause they’re about two feet square and they got capstone and I’m like, “You know, I wonder if they’re hollow or are they backfilled?” Are they filled with concrete or what?” And my now wife looks at me and she’s like, “What’s wrong with you?” “Why do you have a place in your head that cares about that?” Lex Fridman (01:36:36): Yeah. That’s great. Dave Plummer (01:36:37): And we just knew in the moment that I was passionately involved and caring, and she was passionately involved, and why would you even worry about that kind of thing? We knew we were very different. Lex Fridman (01:36:47): Yeah. Very specific, seemingly irrelevant details. Dave Plummer (01:36:51): But- …I was never good with people. I don’t get it when people like me, I guess. And so my son is the same way, because they don’t fall very far from the tree. I got them a T-shirt that says, “If you’re hitting on me, please let me know and be specific, because I’m clueless.” And it’s very similar for me. I mean, I had to be around a long time and kind of grow on people because I had no game, I had no ability to do the social dances that that whole thing requires. So my only option is to just be myself, and that works for some people. Lex Fridman (01:37:21): Were you able to say, like, “I love you,” that kind of stuff? Dave Plummer (01:37:26): Yeah. I mean, her family was way more open with that kind of thing than mine was. So it was a growing period for me. But, yeah, that’s not a problem I have. Lex Fridman (01:37:33): Okay. All right. But it seems unimportant. Like, what is that actually accomplishing? Dave Plummer (01:37:41): Well, now we do a lot of affirmation and checking. In the last couple of years, we do a thing where she’ll just be like, “You good?” I’m like, “Yeah.” And there’s two steps to that. There’s the “Are you good?” and then there’s my response, because if I’m like, “Yeah,” she knows something’s up. Lex Fridman (01:37:55): Yeah. So, Dave Plummer (01:37:55): And so there’s always this pinging back and forth because there’s not the ability to read people just from looking at them to know what’s going on, so we have this explicit check mechanism, I think, where we develop that. Lex Fridman (01:38:05): So there’s a vast chasm between yeah and neh. Again, that subtlety of human communication. You’ve written about the experience that people have of feeling, quote, “a little bit autistic.” Could you elaborate on this concept? Dave Plummer (01:38:25): Yeah, I think a lot of people, maybe 10 to 20% of the population, is somewhere on the autism spectrum, but isn’t impacted by it enough that it rises to the level of a disorder. But they still have many of the characteristics that arise from autism. And I think if they can understand and identify and manage some of those behaviors in an optimal way, they can both leverage them and take advantage of some of the skills and mediate some of the deficits and problems that come with it. And I wrote it mostly for my kids because none of them, as far as I know, have ASD, but they’ve all got certain aspects of my behavior that are particularly related to it, so I thought I’d write a little manual for them, basically. Lex Fridman (01:39:02): Hmm. Why do you think so many programmers, like excellent, great programmers and great engineers, are on the spectrum? Dave Plummer (01:39:08): I think it’s that single-minded focus and the ability to reduce a problem, and to be ultimately curious about what’s inside stuff. That’s been an obsession for me my whole life: what’s inside? I gotta take my mom’s oven apart because I gotta know how the flip clock works. And I think that’s a good habit to have if you’re gonna be a programmer. Lex Fridman (01:39:26): And being willing, being excited to get into the details. Yeah. What’s a cool thing you hope to program to build this year? What are you working on? So we got the RL learning how to play Tempest. Where are you on that, by the way? Like, what’s the ETA on success and dominance? Like victory? Dave Plummer (01:39:47): Well, it’s very close to working. I think now it’s tweaking the model size and layers and stuff like that to get it to learn past the one threshold. But, you know, it’s a couple thousand lines of Lua and it’s a couple thousand lines of Python, and they all interact and they all work, so it’s like 95% of the work is done now. It’s tuning hyperparameters and hoping for the best. Lex Fridman (01:40:04): So it’s already a success in a sense, but now you’re seeing how far can this go? Dave Plummer (01:40:08): Yeah, my goal was to be able to beat me. Lex Fridman (01:40:11): That’s tough for. Dave Plummer (01:40:13): It is, but lots of games now are, you know, they play them better than humans, but maybe not games this complex. Lex Fridman (01:40:19): What other cool things are you working on? What do you hope to build this year? Dave Plummer (01:40:22): The PDP-11 stuff, I’m trying to get what’s called an RA82 drive. It’s the big 14-inch monster that spins at 3600 rpm and sounds like a washing machine. And then I’ll find the controller card and write the code and integrate it into the driver and try to get that all working. Lex Fridman (01:40:35): What kind of code are you trying to run on it? Dave Plummer (01:40:38): I’m going to have to get the driver stack to work, so I have to incorporate the driver for it into the kernel. Lex Fridman (01:40:43): You built a machine recently with one terabyte of RAM. How did that happen and why? Dave Plummer (01:40:52): We have a project called GitHub Primes. If you just search for GitHub Primes, you’ll find it, and it is… Lex Fridman (01:40:57): GitHub Primes. Dave Plummer (01:40:57): …a single set of prime number algorithms implemented in about 100 different languages. So it’s the exact same algorithm, and we require that you follow certain rules to make it fair. Then you express that algorithm in whatever language you choose to the best of your ability, and we run a benchmark every night, and we compile the results and find out which languages are fastest. Lex Fridman (01:41:16): Is this the one? Oh, so this is it. You’re using this for? Oh, so- Dave Plummer (01:41:25): So- Lex Fridman (01:41:25): This machine runs those tests? Okay, you’ve got to tell me about this project. This is an epic project. So you’re comparing the performance of the different programming languages. Dave Plummer (01:41:34): Of all these languages. So they all get built into an individual Docker container, and then they all run. And so- Lex Fridman (01:41:38): This is an incredible project. This is really, really cool. It’s really measuring the performance of the different languages. So what have you learned about which languages? Which language usually wins? Dave Plummer (01:41:51): Zig, I think right now. Lex Fridman (01:41:52): Zig. Dave Plummer (01:41:52): It does, it varies. People will make an improvement to the C++ then it’ll pass for a while, and then the Zig guys will get angry and come back and make it faster. Lex Fridman (01:41:59): So Zig, Rust, C++, C? And what kind of code is being run? What’s the piece of code that they’re trying to run to measure the performance? Dave Plummer (01:42:10): So what they’re doing is they’re solving the primes up to 100 million as many times per second as they can in a five-second loop. Lex Fridman (01:42:17): And so it’s a loop, got it. Over and over and over and over and over again. Dave Plummer (01:42:19): Yeah, on all cores. Lex Fridman (01:42:21): So what- Dave Plummer (01:42:21): Across all CPUs. Lex Fridman (01:42:22): What about, like, how the program is written? Does that vary? Dave Plummer (01:42:25): No. So you can do anything you want, but it has to be a prime sieve. You’re allowed to use one bit per integer at most, so you can’t use a byte, which is cheaper and easier. There are a number of rules like that that you have to allocate the memory within your timed loop. And so we have a set of rules and we have some solutions that don’t follow the rules like the 6502 because you’ve only got 64K, you can’t do 100 million sieve. So there’s a lot of solutions like that that we run as exhibition projects, but among the main languages, they all follow the same rules, and so it really should just be the how the algorithm is expressed in that language. And many of them use the same backend compiler, so it really is how you’re expressing it and the limitations or the benefits of that language. Lex Fridman (01:43:04): They’re allowed to be multiple submissions per language? Dave Plummer (01:43:07): Yeah, yeah. So if you look in the C, there’s like five, I think. Lex Fridman (01:43:10): Okay. And then they, some of them might use different compilers, or no? Dave Plummer (01:43:14): Yeah, some are GCC, some are Clang, LLVM. Lex Fridman (01:43:17): I’m looking at a snapshot here from a couple years ago, Zig was at the top, then Rust, then Nim, Haskell. Oh, no, this is not, this is not ordered by slowness, or is it? It is. Dave Plummer (01:43:28): So C would be 1.5 times as long as Zig. Lex Fridman (01:43:31): Wow. Okay. Fascinating. Well, it’s a super cool project. Dave Plummer (01:43:36): And we’ve got in crazy languages like PowerShell. There’s a version in PowerShell, and stuff like that. Lex Fridman (01:43:41): So this is automated, like in terms of organization of like how the submissions are done, there’s a structure to it? That’s cool. Dave Plummer (01:43:47): Yeah, there’s two guys over in Europe Rucker and Tudor basically own this now. I started as just three languages, I did Python, C#, and C++. And I checked them in and I published the episode, and then people started throwing more solutions in there and it just got out of hand, so I had to get somebody to manage that one and they’ve been great doing that for me. Lex Fridman (01:44:05): What’s the happiest moment for you when you’re programming and building a thing? Like, what do you enjoy most? Dave Plummer (01:44:11): I think the most fun for me is when I build something complex, and I’ve thought through how it should work, and then I run it and it does work that way. That creates intense satisfaction. So seeing the results come out the way that I planned them and have it work, because it rarely does the first time, but… Lex Fridman (01:44:28): Yeah. Or especially if it does work the first time. Dave Plummer (01:44:31): I never trust that. I always feel like I’m missing something. Lex Fridman (01:44:33): That’s true. But, you know, with compiled languages like C++, that’s always a good feeling. You write a bunch of code, and you compile it all, it compiles without warnings, without errors. It’s a cool feeling. What do you think is the future of programming? So now, I don’t know how much you’ve got to really experience the impact of LLMs with code generation. Have you used Cursor much, Cursor VSCode with code generation? Dave Plummer (01:45:05): Yeah, I’ve done a ton of it for the Python side because I’m not great with Python, and I’m kind of new to it. So I found it very helpful because I’ve learned a lot from watching the code that it generates if I don’t know how to do something. Because if I were to write Python from scratch, it’s going to be about four times as long as what the AI can crank out because Python can be pretty terse if you’re good at it. Lex Fridman (01:45:23): Oh, that’s cool. So you essentially learned Python for this project? Dave Plummer (01:45:27): Yeah. Lex Fridman (01:45:29): So this is a good case study of a great programmer in C++ quickly learning a language. Dave Plummer (01:45:36): Yeah, I’m vibe coding my way through it, I guess. Lex Fridman (01:45:38): Vibe coding your way through it. I mean, that is a really powerful use case to learn a language for. If you’re already a good programmer, to learn either a new language or a new way to approach a problem by having it generate it because you already you probably understand the Python code it generates. Dave Plummer (01:45:55): Yeah. Lex Fridman (01:45:56): Like without actually looking up any of the syntax. Dave Plummer (01:45:58): Yeah, it’s all pretty self-explanatory once you see it but, you know, creating it from whole cloth is a little different, so. Lex Fridman (01:46:03): Yeah, but you still have to learn how to program in order to use it in that way. Dave Plummer (01:46:08): Oh, and to read it and to know what to tell it to do next and all that, yeah. I don’t think you can vibe code yourself if you’re just new and haven’t coded but if you’re a good programmer, AI can make you incredibly powerful. Lex Fridman (01:46:19): What do you think is the future of programming, like 5, 10, 20 years from now, this whole process? Now, vibe coding is kind of a fun meme thing because you still have to be… The people that don’t know how to program and are just vibe coding are almost entirely creating systems that are not usable in production. They’re not… It’s very difficult- Lex Fridman (01:46:38): It’s very difficult to create a product. And the people who are already great programmers kind of vibe code just for… in the way that you’re doing it. They’re basically… it’s just a fancy autocomplete, and they end up editing it, or it’s a way to learn a new API, or new language, or a new whatever, a new specific use case, or maybe a different kind of gooey component or something like that. But as they get smarter and smarter, we don’t know where the ceiling is. That might change the nature of what it means to be a programmer. So do you think about that? Dave Plummer (01:47:12): I do. I don’t want to say prompt engineer, but I think it’s going to be something like that in the sense that if you’re an architect building a bridge, at some point, guys were down there welding beams together, but now you’re dragging things around in AutoCAD and assembling from big pre-formed sections. And I assume that’s what programming will be like. You won’t be in there throwing individual lines of code around; you’ll be moving components and interfaces and describing to the AI what those interactions should be and letting it build the components. But I think we’re still quite a ways from it being able to whole cloth generate… You can’t say, “Give me a Linux kernel that’s compatible with Linux.” One day, we’ll be able to, and it’ll crank it out, but we’re not there yet. Lex Fridman (01:47:51): Does it make you sad that we’re climbing the layers of abstraction so quickly so you, somebody that used to do machine code and then assembly, then C and C++, that we’re getting to a point where we’re vibe coding with natural language? Dave Plummer (01:48:07): Yeah, I kind of came up at a really fortunate time, I think, because I had to come up with the technology over the course of 30 or 40 years, so I understand TTL logic, and I can use AI to write code, and I kind of know all the pieces in between. There certainly are holes in my knowledge, but I think the only way to have got that level of knowledge or the completeness of that picture is to have lived it for that long. And it’s going to be hard to duplicate that for people starting now. Lex Fridman (01:48:32): What do you think is the meaning of this whole thing? Of existence of life, whatever is going on here? Dave Plummer (01:48:44): Making cool stuff. I guess, fundamentally, what I care about is being able to make complex things that are useful to other people, which leverages my abilities in a way that allows me to be creative and to create things that other people can use in a way that if I was limited to painting or sculpting or whatever in the classic arts, I would be hopeless. And so for me, that’s really the meaning of life, and then maybe you raise a couple of good kids to hand the baton off to. Lex Fridman (01:49:14): Yeah, and you’ve created a lot of cool stuff over your life that impacted millions, probably billions of people, and now you’re inspiring… You’re creating cool stuff for everyone to see on your YouTube, and you’re inspiring people in that way. So for everything you’ve done in the past and everything you’re doing now, I’m a big fan. I’m really grateful for what- Dave Plummer (01:49:40): Great. Lex Fridman (01:49:40): … you’re doing and grateful that we got a chance to talk today. Thank you, brother. Dave Plummer (01:49:44): Thank you. Lex Fridman (01:49:46): Thanks for listening to this conversation with Dave Plummer. To support this podcast, please check out our sponsors in the description. And now, let me leave with some words from Bjarne Stroustrup, creator of C++ and somebody who, by the way, I interviewed a long, long time ago, Episode 48 of the podcast. He said, “There are only two kinds of languages. The ones people complain about and the ones nobody uses.” Thank you for listening, and hope to see you next time.

本集资源与出处