HackerPapers

HN 二十年,最值得读的论文。

从 Hacker News 2006 年以来的全部投稿里,挑出链接本身就是论文的帖子:arXiv、期刊、会议论文、技术报告。每篇附中文标题,讨论最热的那些再加上中文导读和高赞评论翻译。

从必读开始
  • 8,000+篇被 HN 讨论过的论文

Essential

必读 30 篇

在论文库里看全部精选

编辑精选里 HN 讨论最热的 30 篇,每篇都有中文导读。不知道从哪读起,就从这里开始。

  1. 正在载入论文…

Archive

论文库

点柱子按年份筛选。注:源数据里 2023 年的帖子分数记录不全,2026 年尚未过完,这两年收录偏少。

难度
排序

    About

    这些论文是怎么挑出来的

    1. 01

      全量扫一遍

      读取 Hacker News 自 2006 年以来的全部 446 万条链接投稿,找出指向 arXiv、期刊、会议、技术报告和学术 PDF 的帖子。

    2. 02

      只留论文本身

      由 AI 逐条判断,剔除介绍论文的新闻、博客和幻灯片,同一篇论文的多次投稿合并计算,并统计它在评论区被引用的次数。

    3. 03

      写导读、译评论

      讨论最热的 1,500 篇配上中文导读,并精选、翻译 HN 高赞评论。导读由 AI 生成,可能有误,请以原文为准。

    编程语言与软件工程2021arxiv.org编辑精选

    Copy-and-Patch:面向高级语言和字节码的快速编译

    Copy-and-Patch: Fast compilation for high-level languages and bytecode (2020)

    进阶 · 约 90 分钟读完前置知识:编译器后端基础、JIT 编译概念、LLVM 基础

    读论文 HN 讨论
    212HN 得分
    57条评论
    10次被评论区引用
    2次投稿

    导读

    这篇论文提出 Copy-and-Patch 编译技术,用于加速高级语言和字节码的编译。其核心做法是预先编译好代码模板,运行时通过复制模板并用编译器后端快速“打补丁”生成机器码,从而在保持高层语言语义的同时实现极快的编译速度。

    HN 关注点:是因为这种技术可能大幅提升 JIT 编译速度,并讨论它能否应用于 LLVM、WASM 运行时、模拟器等实际场景。

    关键词 JIT编译编译器Copy-and-Patch字节码

    HN 评论精选

    这几条评论里:补充 3

    补充询问该技术能否用于 GraphQL-to-SQL 转译等非传统 JIT 场景,并期待 LLVM/WASM 运行时采纳

    作者在吗?这个技术很有意思。我想知道它是否适用于业务逻辑层面做 JIT 编译的应用。现实用例:Hasura 本质上是一个 Haskell 写的 GraphQL 到 SQL 的 JIT 编译器/转译器,它先解析、降低到内部 IR,再翻译成特定 SQL 方言。不知道这套方法能否用在这种场景?另外很期待看到 LLVM 或主流 WASM 运行时是否采用这项技术,虽然我没完全读懂论文,但纸面上看加速幅度似乎很大。

    gavinray查看英文原文

    Are the authors of this paper present/the ones who posted? This is really interesting. One thing I'm curious about -- is this technique applicable to applications which do JIT "compilation" in the business-logic/abstract sense of the term? Realworld usecase: Hasura is fundamentally a Haskell GraphQL-to-SQL JIT compiler/transpiler. It parses, lowers to an internal IR format, and then translates to a specific SQL dialect. I'm wondering if any of this would carry over to a usecase like that? https://github.com/hasura/graphql-engine/blob/master/server/src-lib/Hasura/RQL/IR/Select.hs https://github.com/hasura/graphql-engine/blob/master/server/src-lib/Hasura/Backends/Postgres/Translate/Select.hs Nonetheless, will be interesting to see whether this technique will get adopted by LLVM or some of the major WASM runtimes. I won't pretend to understand the majority of what the writeup stated, but on paper it seems a huge speedup?

    补充提议将该技术用于模拟器的动态重编译核心,看重其跨平台透明性

    我想听听大家对我用 PochiVM 为模拟器添加动态重编译核心的看法:模拟器识别热点代码块,生成类 C 结构(或理想情况下是 AST),然后用 Copy-and-Patch 算法生成并执行对应的机器码。能够回调宿主方法、处理异常语义,同时对目标平台架构完全透明,这对跨平台模拟器来说似乎很理想。

    kev_emu查看英文原文

    I would be interested in your thoughts on using PochiVM as a means to add a dynamic re-compiling core for emulators. The emulator would identify hot code blocks, generate C like constructs (or ideally the AST) and use the 'Copy-and-Patch Compilation' algorithm to generate and execute the relevant machine code. The ability to call back to host methods, handle exception semantics and all the while being totally oblivious to the platform architecture that the machine code is produced for seems ideal for an emulator designed to run on multiple platforms.

    补充指出 Copy-and-Patch 呼应了 compile 一词“汇编、拼合”的本义

    这不就是 compile 这个动词最初的含义、回归了原始的做法吗?(及物动词)把东西拼在一起;汇集;从各种来源收集材料制成。塞缪尔·约翰逊编纂了最具影响力的英语词典之一。

    erwan577查看英文原文

    Isn't it the first sense of the verb to compile and a return to the original way of doing things ? (transitive) To put together; to assemble; to make by gathering things from various sources. Samuel Johnson compiled one of the most influential dictionaries of the English language.

    相关资源

    从这篇论文所有 HN 讨论帖的全部评论里整理出来的链接。

    自称作者的回复
    代码

    历次讨论

    同领域还值得读

    1. Google 的软件工程(2017)

      Software Engineering at Google (2017)

      介绍了 Google 的软件工程实践,包括其单一代码库(monorepo)、几乎全部开发在主干进行而非分支、代码审查、构建系统 Blaze、协议缓冲区等工具与流程,并讨论了频繁重…

      编程语言与软件工程2017 · 1,127 分 · 465 评 · 引用 15入门 · 约 45 分钟编辑精选
    2. Peter Naur:编程作为理论构建 (1985)

      Peter Naur – Programming as Theory Building (1985)

      Peter Naur 1985 年的经典论文《Programming as Theory Building》提出:编程的本质不是写代码或文档,而是在程序员头脑中构建对程序及其运行…

      编程语言与软件工程2016 · 629 分 · 74 评入门 · 约 45 分钟编辑精选
    3. SciPy 1.0:Python 科学计算的基础算法

      SciPy 1.0: fundamental algorithms for scientific computing in Python

      这篇发表于 Nature Methods 的论文介绍了 SciPy 1.0——Python 科学计算生态的基石库,涵盖其核心算法模块(优化、积分、插值、线性代数等)、软件架构与社…

      编程语言与软件工程2020 · 387 分 · 98 评入门 · 约 45 分钟编辑精选
    4. Lisp 的历史(1979)

      History of Lisp (1979)

      这是 Lisp 发明者 John McCarthy 于 1979 年为 HOPL(编程语言史)会议撰写的回顾文章,讲述 Lisp 的起源、设计动机与早期演进,文中也涉及 if 表…

      编程语言与软件工程2018 · 352 分 · 44 评入门 · 约 45 分钟编辑精选
    5. 使用 NumPy 进行数组编程

      Array Programming with NumPy

      这篇 Nature 文章介绍 NumPy 的数组编程模型及其在科学计算中的核心作用:以 ndarray 为中心,通过向量化操作让 Python 高效处理多维数组。

      编程语言与软件工程2020 · 318 分 · 134 评入门 · 约 40 分钟编辑精选

    打赏支持

    打赏二维码

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

    WeChat

    关注向阳乔木

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

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

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