HackerURLs

一次又一次被重新发现的经典。

同一个链接,相隔一年以上,一次又一次被人重新发现、再次冲上 Hacker News 首页。能经受住这种时间检验的,大多是值得一读再读的文章。每篇附中文标题,讨论最热的那些再加上中文导读和高赞评论翻译。

从名人堂开始
  • 4,700+篇经过时间检验的经典

Hall of fame

名人堂

在经典库里看全部精选

上首页次数最多、而且有中文导读的 30 篇。时间轴上每个黑点是一次上首页,空心点是一次没冲上去的投稿。

  1. 正在载入经典…

Archive

经典库

按第一次上首页的年份分布,点柱子筛选。

排序

    About

    这些经典是怎么挑出来的

    1. 01

      合并同一个链接

      读取 Hacker News 自 2006 年以来的全部链接投稿,把 http/https、www、跟踪参数等写法不同的同一篇文章合并成一条。

    2. 02

      只留经得起时间的

      同一链接至少两次拿到 50 分以上(约等于上首页),而且两次相隔一年以上;再由 AI 剔除状态页、产品首页和新闻事件。

    3. 03

      写导读、译评论

      上首页次数最多的 2,000 篇配上中文导读、"为什么经久不衰",并精选翻译 HN 高赞评论。导读由 AI 生成,可能有误。

    算法与计算机科学bob.cs.sonoma.edu编辑精选

    计算机组成导论:树莓派上的 ARM 汇编语言(免费教材)

    Introduction to Computer Organization: ARM Assembly Language on the Raspberry Pi

    2次上首页
    2年跨度
    516累计得分
    42条评论

    2017 — 2019,它一次次回到首页

    黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。

    导读

    这是一本免费的在线教材《计算机组成导论:树莓派上的 ARM 汇编语言》,由 Sonoma 州立大学编写,用于本科教学。它以树莓派为平台,从零讲解计算机组成原理和 ARM 汇编语言,内容清晰易读。

    为什么经久不衰:它把抽象的计算机体系结构落到人人买得起的树莓派实物上,是少有的免费、经过课堂检验的入门教材,多年后仍是学习底层原理的经典路径。

    关键词 ARM汇编树莓派计算机组成免费教材

    HN 评论精选

    ARM 汇编是极佳的零基础入门教学工具,但调试工具链是门槛

    太棒了!我认为 ARM 汇编在从零基础教人编程和硬件开发方面潜力巨大:程序被拆成一个个小的逻辑步骤,学生不用面对大段'魔法代码',hello world 可以直接点亮真实的 LED 或驱动电机。Cortex-M0+ 核心指令集只有约 60 条指令,并不复杂。缺点是寄存器控制外设的概念有点怪,还得让人适应命令行调试工具——概念简单但 GDB 不简单。ARM 官方的参考手册也很易读。

    leggomylibro查看英文原文

    Awesome! Personally, I think that ARM assembly has a TON of potential for teaching people how to code and/or work with electronics hardware from a state of almost no background knowledge. - They teach the concept of a computer program as a bunch of single small logical 'steps'. - They make it easier to keep new students interested without plying them with pages and pages of 'magic code' - not only can you make a zero-dependencies program (in the case of simple mobile chips), your 'hello world' is actually in the physical world. An LED, a motor, what-have-you. - The core instruction set for a Cortex-M0+ processor has what, 60 instructions? It's not very complicated. On the con side of things, the whole idea of registers controlling hardware peripherals can be a little weird, and you have to get people comfortable with command-line debugging utilities. The concepts are simple, but GDB isn't. And many of the available IDEs aren't very cross-platform. And I guess application processors also probably introduce their own extra complexities, compared to a Cortex-M line which is more comparable to an Arduino than a RasPi or Chromebook. But hey, there's also less hardware available with the sort of support that a Raspberry Pi has; the closest you'd probably get is a cheap generic $3-5 STM32F103C8 dev board. If anyone else is interested in this sort of thing, the reference manuals provided by ARM are also very readable, for example: http://infocenter.arm.com/help/topic/com.arm.doc.ddi0484c/DDI0484C_cortex_m0p_r0p1_trm.pdf

    教材质量高,并推荐 MIT 计算结构课程作为进阶

    写得非常清晰,推荐给任何想深入学习体系结构的人。想学更多的可以看 MIT 在 EDX 上的《计算结构》课程。

    indescions_2017查看英文原文

    Very clearly written. Thanks for posting. Would recommend to anyone wishing to dive deep into architectures. And I love that you are teaching undergrads with the RP3 ;) Anyone wanting more, the MIT Computational Structures courses are always available via EDX: https://www.edx.org/course/computation-structures-3-computer-mitx-6-004-3x-0

    教材中的 printf 用法和练习答案会向学生灌输安全坏习惯

    作为安全从业者提个请求:2.9 节第一个 C 语句 printf("Enter an unsigned decimal integer: ") 请改成 printf("%s", ...)。虽然这里是编译期常量不会出事,但你在教学生 printf(string) 这种老误区,将来他们会对用户输入的字符串这么用。在我看来单参数的 printf 永远是代码坏味道。另外 2.16 节练习 1、2 的答案存在缓冲区溢出漏洞。

    red_admiral查看英文原文

    I've had a quick look through and I really like this. Bookmarked for future reading. As a security person, I have just one request - in 2.9 you explain/recall how functions look in C, then you explain printf, then the first C statement you execute is printf("Enter an unsigned decimal integer: "); Please, please can this kind of thing be printf("%s", "Enter an unsigned decimal integer: "); I know this string is a compile-time constant, so it's not going to hurt anyone, but you're teaching people the old myth that printf(string) is the way to print a string and at some point they'll try this with a user-supplied string. In my opinion, a printf with only one argument is always a code smell. EDIT: also, the solutions to exercises 1 and 2 in 2.16 are vulnerable to buffer overflows.

    本书对二进制的讲解角度(开关状态而非抽象命名)与众不同

    这本书对二进制数的处理方式很有意思。常见的讲法是'数字是抽象对象,不同进制只是不同命名方式,二进制方便计算机使用';而这本书讲的是'二进制是开关状态的表示,顺便给出位串与你熟悉的十进制数之间的等价关系'。我太久没教过这个了,说不清这种讲法是否更好。

    repiret查看英文原文

    I find the treatment of binary numbers interesting. I normally see it approached as "numbers are these abstract objects that can have different names, and different number bases are just different ways of naming the numbers; base two is handy for computers". This approaches it as "binary is a representation of the state of switches. Oh by the way here's an equivalence relation between bit strings and the decimal numbers you know and love" It's been so long since I've taught this to anybody I have no intuition about whether or not this approach is any better.

    历次讨论

    同类还值得读

    1. 位运算技巧集

      Bit Twiddling Hacks

      斯坦福页面上的经典位运算技巧合集,收录了 popcount、前导/尾随零、位反转、交换、舍入等大量技巧,并附有解释和性能讨论。

      算法与计算机科学上首页 8 次 · 2011–2024graphics.stanford.edu编辑精选
    2. 如何不按平均评分排序

      How Not To Sort By Average Rating

      经典文章解释了为什么按平均评分排序不可靠:只有少量评价的条目(比如仅一条五星)会轻易排到最前,而评价数量的差异被忽略。

      算法与计算机科学上首页 7 次 · 2009–2024evanmiller.org编辑精选
    3. 数据结构可视化

      Data Structure Visualizations

      旧金山大学 David Galles 教授制作的数据结构与算法交互式可视化网站,涵盖 B 树、红黑树、排序、图算法等,可逐步操作观察其运行过程。

      算法与计算机科学上首页 6 次 · 2011–2021cs.usfca.edu编辑精选
    4. 1996 年以来的计算机科学最佳论文奖

      Best Paper Awards in Computer Science since 1996

      Jeff Huang 维护的一个汇总页面,收录了自 1996 年以来计算机科学各主要会议的“最佳论文奖”获奖名单,并按年份和会议整理,方便读者一站式浏览历届获奖论文。

      算法与计算机科学上首页 6 次 · 2010–2018jeffhuang.com编辑精选
    5. 算法(Jeff Erickson)

      Algorithms, by Jeff Erickson

      伊利诺伊大学 Jeff Erickson 教授的算法课教材,免费在线开放。

      算法与计算机科学上首页 5 次 · 2018–2022jeffe.cs.illinois.edu编辑精选

    打赏支持

    打赏二维码

    觉得有用,请作者喝杯咖啡。

    WeChat

    关注向阳乔木

    微信公众号「向阳乔木推荐看」

    微信公众号「向阳乔木推荐看」二维码

    微信扫一扫;在微信里打开本页时,长按二维码识别。