Common Lisp 入门
Getting Started in Common Lisp

原始链接: https://lisp-stat.dev/blog/2026/03/09/getting-started/

## Lisp-Stat 开发变得轻松 开始使用 Common Lisp 可能会让人望而却步,因为其设置要求复杂。为了解决这个问题,作者创建了 `ls-dev-image`,这是一个预配置的 OCI 镜像(与 Docker 兼容),专为无缝的 Lisp-Stat – 以及通用的 Common Lisp – 开发而设计。 这个“开箱即用”的镜像消除了手动安装 Emacs、Quicklisp、SLIME 和 Lisp-Stat 的需要。用户只需通过 Docker 运行镜像,并直接从 shell 启动带有 SLIME 的 Emacs。 除了一个准备就绪的编码环境,`ls-dev-image` 还包含示例数据集、一个可通过网络浏览器访问的预配置 `ls-server`(https://localhost:20202),以及一个脚本,可以轻松更新到最新的 Lisp-Stat 更改。该镜像也可在 GitHub Codespaces 中使用。 欢迎贡献和反馈。

最近 Hacker News 上的一场讨论质疑在人工智能辅助开发时代如何开始学习 Common Lisp。 结论出乎意料地令人沮丧:对于严肃的项目,学习像 Lisp 这样不太流行的语言越来越难证明其合理性。 原因在于大型语言模型(LLM)。由于可用的训练数据量庞大,LLM 对 TypeScript、Go 和 Rust 等广泛使用的语言效果更好。 这意味着在这些语言中的生产力提升甚至高于像 Lisp 这样表达力强的语言。 此外,流行的语言拥有完整的现代 IDE,而 Lisp 通常需要大量的设置和自定义(例如从 Emacs 构建 IDE)才能开始开发。 基本上,LLM 鼓励在实际开发中选择主流语言。
相关文章

原文

An easy way to start with Lisp-Stat

It’s never been easy for a developer to get started in Common Lisp. Emacs, though a powerful editor, isn’t considered an IDE by modern standards. Setting up a compiler, quicklisp, slime, swank, and then learning an entirely new programming paradigm has scared off many would-be entrants to the Common Lisp community.

Given the size of the Common Lisp community this is understandable. Making the new user experience smooth and frictionless as possible is hard work. It’s the kind of work that no one volunteers for; it’s the kind of work you have to be paid for.

Still, it’s a pre-requisite for new users, so I’ve created ls-dev-image, a ‘batteries included’ OCI image for Lisp-Stat or just plain Common Lisp development. Assuming you have an OCI (e.g Docker) runtime installed, you can get started with:

docker run --rm -it --user vscode -w /home/vscode ghcr.io/lisp-stat/ls-dev:latest bash

and from the shell you can type ’emacs’ followed by ‘M-x slime’ and start hacking Common Lisp.

image

This OCI image is configured with emacs, slime, quicklisp, lisp-stat and a few sample data sets and plots. A ls-server is also configured to start automatically on port 20202. If you open your browser and point it to https://localhost:20202 (or other port, depending on your OCI container configuration) you’ll see the web interface for displaying plots and viewing/editing data-frames. It also has a ‘refresh’ script so that you can stay synced with the upstream lisp-stat, which is being updated frequently.

image

You can also run a this image in GitHub codespaces.

I’d like to point out that you can use this for any Common Lisp development, not just Lisp-Stat. Contributions and bug reports are welcome and encouraged.

联系我们 contact @ memedata.com