编程语言与软件工程2024redirect.cs.umbc.edu编辑精选
Lisp 的演化(1993)
The Evolution of Lisp (1993)
进阶 · 约 120 分钟读完前置知识:Lisp 基础、编程语言史、Common Lisp
导读
这篇 1993 年的经典论文回顾了 Lisp 语言从 1958 年诞生到 Common Lisp 标准化期间三十多年的演化历程,梳理了各 Lisp 方言的兴衰与设计取舍。HN 读者借此讨论 Lisp 的本质、入门门槛及其在当今的地位。
HN 关注点:焦点在于 Lisp 究竟是一种语言还是一套完整的计算系统,以及为什么它历经多年仍未流行。
HN 评论精选
这几条评论里:补充 1
补充Lisp 是一套完整计算系统而非语言,Clojure/Racket 只算 Lisp 语法语言,高门槛是其不流行的原因
人们应该澄清"Lisp"的含义。它不是一门语言,甚至不是一个语言家族,而是一套完整的计算系统,只是恰好带有编程语言语法。要充分发挥 Common Lisp REPL 的威力,需要使用 Emacs(它本身也是用 Lisp 写的)。有些变体放弃了这一部分,只关注语言本身,如 Clojure 和 Racket——它们缺乏 CL 的全部能力,只是 Lisp 语法的语言,而非真正的 Lisp。也许正是这种高入门门槛导致 Lisp 在 CL 标准化 30 年后仍未流行:人们不愿为了用好 Lisp 而学一个新 IDE。如果固守现有 IDE,就只能通过语法(和受限的宏系统)窥见 Lisp 的一角,此时它相比主流语言还有什么优势就值得怀疑了——与其学 Clojure,不如直接学 Elixir 或 Haskell?补充:所谓"全部能力"指的是修改运行中程序的能力(continuation/restart 系统),比如出错时 Clojure 的 REPL 会让你进入新 REPL、直接修改运行中的代码或为缺失变量赋值吗?
behnamoh查看英文原文
People should clarify what they mean by "Lisp". It's not a programming language or even a family of languages, it's a whole different computing system which just happens to have a programming language syntax on top. To get the most out of it and benefit from the powerful CL REPL, one needs to use Emacs (also written in Lisp). Some variants just drop that part and focus on the language only. Clojure and Racket are in that category. They lack the full power of CL; so they're just Lisp-syntax languages, not an actual Lisp. Maybe this high barrier to entry is why Lisp hasn't caught on even after 30 years of CL standardization. People often don't want to learn a new IDE to get the most out of Lisp. And if they stick to their current IDEs, they only get a glimpse of Lisp through its syntax (and much limited macro system). At that point, it's questionable whether whatever remains of Lisp does indeed provide any advantage over more mainstream languages (e.g., instead of learning Clojure, why not just learn a functional language like Elixir or Haskell? It's not like Clojure gives you the full Lisp power anyway.) Addendum: As one of the comments below mentioned (thank you @lispm), what I meant by "dropping the full power of Lisp" is the ability to modify a running program (continuation/restart system). Does Clojure REPL drop you in a new REPL in case of errors so you can literally change the running code or enter value for a missing variable?
询问学习编写 Lisp 编译器的资源
有什么学习编写 Lisp 编译器的好资源吗?
throw156754228查看英文原文
What's a good resource for learning to write a lisp compiler?
询问文档对初学者友好的 Lisp 变体
有没有哪个新旧 Lisp 变体拥有对初学者友好(甚至充满关爱)的优秀文档?
7373737373查看英文原文
Is there any old or new Lisp variant with excellent, beginner friendly (or even loving) documentation?
相关资源
从这篇论文所有 HN 讨论帖的全部评论里整理出来的链接。
历次讨论
- 2024Hacker News 讨论帖155 分 · 130 评
同领域还值得读
Google 的软件工程(2017)
Software Engineering at Google (2017)
介绍了 Google 的软件工程实践,包括其单一代码库(monorepo)、几乎全部开发在主干进行而非分支、代码审查、构建系统 Blaze、协议缓冲区等工具与流程,并讨论了频繁重…
编程语言与软件工程2017 · 1,127 分 · 465 评 · 引用 15入门 · 约 45 分钟编辑精选Peter Naur:编程作为理论构建 (1985)
Peter Naur – Programming as Theory Building (1985)
Peter Naur 1985 年的经典论文《Programming as Theory Building》提出:编程的本质不是写代码或文档,而是在程序员头脑中构建对程序及其运行…
编程语言与软件工程2016 · 629 分 · 74 评入门 · 约 45 分钟编辑精选SciPy 1.0:Python 科学计算的基础算法
SciPy 1.0: fundamental algorithms for scientific computing in Python
这篇发表于 Nature Methods 的论文介绍了 SciPy 1.0——Python 科学计算生态的基石库,涵盖其核心算法模块(优化、积分、插值、线性代数等)、软件架构与社…
编程语言与软件工程2020 · 387 分 · 98 评入门 · 约 45 分钟编辑精选Lisp 的历史(1979)
History of Lisp (1979)
这是 Lisp 发明者 John McCarthy 于 1979 年为 HOPL(编程语言史)会议撰写的回顾文章,讲述 Lisp 的起源、设计动机与早期演进,文中也涉及 if 表…
编程语言与软件工程2018 · 352 分 · 44 评入门 · 约 45 分钟编辑精选使用 NumPy 进行数组编程
Array Programming with NumPy
这篇 Nature 文章介绍 NumPy 的数组编程模型及其在科学计算中的核心作用:以 ndarray 为中心,通过向量化操作让 Python 高效处理多维数组。
编程语言与软件工程2020 · 318 分 · 134 评入门 · 约 40 分钟编辑精选