编程与软件工程wingolog.org
Scheme 实现的有态度指南(2013)
An opinionated guide to Scheme implementations (2013)
2013 — 2022,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
这是 wingolog 博客上一篇针对 Scheme 实现的选型指南,作者按不同使用场景(如嵌入 C/C++ 项目、学习、日常编程等)点评了各种 Scheme 实现,帮助读者在众多选项中找到合适的起点。文章写于 2013 年,多次登上 Hacker News 首页。
为什么经久不衰:Scheme 实现众多且互不兼容,这篇带个人立场的选型指南多年来一直是初学者入门的经典参考。
HN 评论精选
这篇指南适合选择困难的新手,评论者顺便推荐了作者维护的 Guile。
对于想尝试 Scheme 却被众多选项搞得无从下手的人来说,这是一篇非常好的小指南,能帮他们找到起点。我强烈推荐 GNU Guile,也就是作者参与维护的那个实现。
davexunit查看英文原文
This is a really great little guide for people that want to try out a Scheme but are paralyzed by the options. This will help those in need find a starting point. I highly recommend GNU Guile, the implementation that the author co-maintains.
与其选现成实现,不如按需自己写一个嵌入式解释器。
如果想为 C/C++ 项目嵌入解释器(博客讨论的第一个场景),为什么不自己实现一个 Scheme 或 Lisp 呢?我最近就为自己的项目写了一个 Prolog 解释器。自己实现的好处:1. 不需要 GC,引用计数就够了;2. 与想用的 C/C++ 库集成容易得多,因为实现本来就是为嵌入和粘合库而设计的。
fspeech查看英文原文
What about implementing your own Scheme or Lisp if you want to embed an interpreter for your C/C++ project (the first scenario discussed in the blog)? I recently decided to roll my own Prolog interpreter for my project. With C++11 and shared pointers it is really a breeze (of course I've thought about doing this for a long time so the actual implementation part was smooth sailing but not the only story). The advantage of rolling my own: 1. No GC. Ref counting is sufficient for my own use. 2. Integrating with the C/C++ libraries I want to use is a lot easier. I designed my implementation for the purpose of embedding in my project and gluing libraries.
实现碎片化是 Scheme 的痛点,Common Lisp 在这方面做得更好。
这也是我不喜欢 Scheme 的原因之一:太多互不兼容的实现。我是坚定的 Common Lisp 拥趸,CL 有很多实现,但我写的软件几乎可以在所有实现上原样运行。而 Scheme 太小了,任何有趣的软件几乎都得针对特定实现来写。希望新标准能解决这个问题,把语言分成大小两个系统似乎是在极简主义传统和实用性之间的好折中。
pavelludiq查看英文原文
This is part of the reason I dislike scheme. Too many incompatible implementations. I'm a die hard common lisp fan, and I love the fact that cl has many implementations and that any software I write will run on most or all of them unchanged. With scheme, any interesting software pretty much has to be written for a particular implementation, because scheme is simply too small. I sincerely hope that the new standard would help here. Splitting the language into a big and small system seems like a good compromise between the traditional scheme goal of minimalism and pragmatism. I'd like to hear schemers opinions on this, does the new "big scheme" really address the issue of fragmentation?
补充推荐符合最新 R7RS-Small 规范的 Chibi Scheme。
我想补充一点:Chibi Scheme 正在努力兼容 R7RS-Small 规范,适合想站在最前沿的人。
inetsee查看英文原文
One thing that I would add is that Chibi Scheme is trying to be compatible with the R7RS-Small specification (for those of you interested in working on the bleeding edge).
历次讨论
同类还值得读
开源应用架构
The Architecture of Open Source Applications
《开源软件架构》(AOSA)是一本在线免费书,邀请知名开源项目的作者亲自剖析其内部设计,涵盖 SQLAlchemy、LLVM、Audacity、Apache、Bash 等系统。
编程与软件工程上首页 9 次 · 2011–2024aosabook.org编辑精选编程语言简史:简短、不完整且多半错误
A Brief, Incomplete, and Mostly Wrong History of Programming Languages
一篇以戏谑、故意不准确的方式回顾编程语言史的博客文章,用夸张轶事和讽刺定义串起 Lisp、C、C++、Java、JavaScript、PHP 等语言。
编程与软件工程上首页 8 次 · 2009–2021james-iry.blogspot.comSQLite 是如何测试的
How SQLite is tested
SQLite 官方文档页,系统介绍 SQLite 的测试体系:多种测试方法(TCL 测试、模糊测试、回归测试、静态分析等)和海量测试用例,展示了这个小型开源项目如何靠极致测试获得…
编程与软件工程上首页 8 次 · 2009–2025sqlite.org编辑精选高级编程语言(2009)
Advanced programming languages (2009)
Matt Might 的经典文章,按用途推荐“高级编程语言”:如果追求就业就选主流语言,如果追求表达力、学术研究或创业,则推荐 Haskell、OCaml、Scala 等函数式语…
编程与软件工程上首页 8 次 · 2009–2022matt.might.net我的 Forth 与栈机器经历
Yosefk - My history with Forth & stack machines
作者以亲身经历回顾了使用 Forth 语言和栈式机器的历程:既赞叹其简洁优雅、代码量小、可自举的优点,也坦率指出栈操作在实际编程中的痛苦,以及 Forth 社区文化中的问题。
编程与软件工程上首页 8 次 · 2010–2024yosefk.com编辑精选