Jonquil 发布多方言 Lisp 编辑器 Alpha 版

原标题:A DrRacket style editor for Clojure with some Lisp Machine inspired features
58AI 研判分

Jonquil 是一款 DrRacket 风格的 Lisp 编辑器,以 Alpha 版形式开源发布(EPL-2.0),支持 Jolt、Clojure、ClojureScript、jank、Basilisp、babashka 与 ClojureDart 七种方言。其核心差异在于 Jolt 运行时与编辑器同进程,使调试器与检查器可直接读取程序真实值,并借鉴 Lisp Machine 的交互式开发体验。

报道正文

本文目录28 个章节

Alpha · macOS (Apple Silicon) · Linux from source · open source, EPL-2.0

One editor for the Lisps you use

Jonquil is a DrRacket-style editor for Jolt, Clojure, ClojureScript, jank, Basilisp and babashka. Edit code at the top, press Run, see the results in a REPL underneath, and Stop really stops a runaway program. On Jolt it goes further: your program runs on the editor's own runtime, so the inspector and the debugger see its real values.

Get Jonquil Read the guide Stop really stopseven a loop that never yields 7 Lisps, one windowJolt, Clojure, jank, Basilisp…

Runs

  • Jolt
  • Clojure
  • ClojureScript
  • jank
  • Basilisp
  • babashka
  • ClojureDart

Why Jonquil

A pragmatic editor, with a live Lisp underneath

The DrRacket loop for every Lisp you use, and on Jolt, the tools of a Lisp Machine.

01

Many Lisps, one window

Six dialect profiles pick the runtime for whatever file is open. Jolt runs in or out of process, jank and ClojureScript are launched for you, and the rest attach over nREPL.

02

A Lisp Machine, on Jolt

Describe Key, the locations list, presentations in the console, Save World, the Processes panel: ideas from the MIT CADR and Symbolics Genera, working on your program's live values.

03

Yours to extend

A plugin is one Clojure file of commands, keys, hooks and agent tools. An agent can drive the window over MCP, and a dialect profile is the plug point for the next Lisp.

Run and Stop

Run the top, read the bottom

Run evaluates everything in the editor, the REPL prompt evaluates one line, and Stop ends a program even when it's spinning in a loop. It's the DrRacket loop, for every dialect.

  • Reset on Run clears only what the running tab created
  • read-line reads from the console, so stdin just works
  • An unclosed bracket gets a plain message pointing at it

Read more in the guide

Lisp Machine ideas, on Jolt

Your code runs in the editor's runtime

Emacs is extended in a different Lisp from the one you write. Jonquil is written in Clojure on Jolt, and your Jolt code runs on that same runtime, so the tools look at real values, not the editor's.

  • Console results are live: click to inspect, right-click for verbs
  • Change sets bundle the forms you changed, to apply or revert
  • Save World keeps a project's data vars; the Processes panel shows its fibers

Read more in the guide

Debugging

Pause where it breaks

On Jolt: breakpoints, Step Into, Over and Out, Break on error, and the last error's frames with every local. Retry, Edit and retry, and Define and retry pick a failed evaluation back up in every dialect.

  • F9 toggles a breakpoint in the gutter, live at once
  • Evaluate any form in a paused frame
  • Break on error pauses before anything unwinds

Read more in the guide

Help

Ask the running program

Completion with a doc preview, quick doc, jump to definition and rename all ask the live runtime, whichever Lisp it is. The menus and the command palette list every command with its key.

  • Ctrl+Space completes in the editor and at the prompt
  • F12 jumps into your project, or into library code
  • Find Usages tells same-named symbols apart by their ns

Read more in the guide

Structural editing and keys

Move code by whole forms

Jonquil has 42 structural editing commands, and they follow Calva's paredit. Slurp, barf, drag, splice and wrap all leave the brackets balanced. You'll find them under Edit > Structure and in the command palette, or you can turn on the Calva paredit key set to get Calva's keys.

  • The guide shows every command before and after, and a test runs each row against the real command
  • Preferences lists every command with its key, and you change one by pressing the new key
  • Your keys are saved in keys.edn, and a key you set shows in the menus at once

Read more in the guide

Terminal, for macOS first

A terminal below the editor

Ctrl+` or Terminal in the View menu shows a terminal under the editor, on a tab beside Interactions. A login shell starts in your project's folder and keeps running until you close the window.

  • The downloaded app carries VTE, so it works with nothing to install
  • If something is still running in it, closing the window asks first
  • Built and tried on macOS, and not run on Linux yet

Read more in the guide

Agents

Let an agent drive it

jonquil --mcp serves six tools over MCP with no window. Add --window and an agent opens, edits, saves and runs tabs while you watch, through twenty tools.

  • An agent can propose a plugin, and it waits for your Accept
  • --mcp-attach bridges to a window you already have open
  • Plugins can add MCP tools of their own

Read more in the guide terminal

文本
$ claude mcp add jonquil -- jonquil --mcp /path/to/project

Dialects and runtimes

Bring your Lisp

Jonquil picks a dialect profile for whatever file is open, and its status bar says which one and whether the runtime is up.

Jolt, in or out of process

Jonquil's own Lisp, and the one breakpoints, stepping and Break on error need. A program in a deps.edn project runs out of process over nREPL, so one that crashes or calls System/exit takes down a child, not Jonquil. A loose file runs in Jonquil's own process.

  • RuntimeIn process, or a Jolt child
  • StartsBy itself
  • StatusSupported

The Jolt page

Attach to your JVM

Start a server with clojure -M, or anything that writes .nrepl-port, and Jonquil connects on the first Run. ClojureDocs examples in the full doc are runnable.

  • RuntimeYour project's nREPL
  • Config**{ }**
  • StatusSupported

The Clojure page

shadow-cljs, node or a browser tab

In a shadow-cljs project Jonquil attaches to your watch. Anywhere else it starts ClojureScript itself, on node or in a browser tab.

  • Runtimeshadow-cljs, node, browser
  • StartsAttach or launch
  • StatusExperimental

The ClojureScript page

jank, launched for you

Open a .jank file and Jonquil starts its own jank repl for the window on the first Run.

  • Runtimejank repl
  • Installbrew install jank-lang/jank/jank
  • StatusExperimental

The jank page

Clojure on Python

Basilisp's server writes .nrepl-port in the folder you start it in, so { } alone is enough. Run, the REPL, quick docs and completion work; errors arrive as a Python traceback.

  • Runtimebasilisp nrepl-server
  • Config**{ }**
  • TestedBasilisp 0.5.1

The Basilisp page

文本
;; in the project folder
;; $ basilisp nrepl-server

;; .jonquil.edn
{:dialect :nrepl}

babashka, or any nREPL

Point a project at any nREPL server you started, here or on another host. Features follow what the server offers, and the console says what it can't do.

  • Runtimebb nrepl-server 1667
  • Config**{ { 1667}}**
  • StatusSupported

The babashka page

Attach to a running app

Like CIDER on a live process: Jonquil attaches to a ClojureDart app you already have running and never starts, stops or signals it. The app writes its port to NREPL.lock, which Jonquil reads.

  • RuntimeYour running Flutter app
  • NeedsA ClojureDart fork with nREPL
  • StatusExperimental

The ClojureDart page

文本
;; run the app on the fork that adds nREPL
;; $ clj -M:cljd flutter

;; then open a .cljd file and Run.
;; Jonquil reads NREPL.lock, never writes it.

Tour

Everything within reach

Every screenshot here is captured from the real app by Jonquil's own docs harness. Click one for a closer look.

Themes

16 themes to pick from

Light is the default. Cmd/Ctrl+Shift+M cycles through them all, or type "theme" in the command palette to pick one by name. Auto follows your Mac's Light or Dark mode, and a theme recolours the whole window. More in the guide.

Extend

Make it your own

Read the plugin guide

Plugins in one file

A plugin adds commands and keys, hooks on saves, Runs and errors, and tools an agent can call. Each version that goes live is kept, so you can see its history and revert.

Read more ~/.config/jonquil/plugins/wrap-when.clj

文本
(p/defplugin
  {:id      :wrap-when
   :doc     "Wrap the form at the caret in (when ...)."
   :effects #{}
   :commands
   [{:id :wrap-when/wrap :scope :editor
     :edit (fn [snapshot]
             (p/wrap-form snapshot "(when " ")"))}]})

Room for the next Lisp

A dialect is a profile: what its files look like, how they're painted, which evaluator runs them. A profile's port file is most of what an attach runtime needs.

Read more

Parinfer, when you want it

Off by default. Turn on Smart and each open bracket closes itself as you type, dedenting a body line pulls the closer up, and indenting pulls it back in. Cmd/Ctrl+Shift+M cycles through the themes.

Read more

Provenance

Built on good ideas

Jonquil ports the idea of DrClojure and lifts its pure text-analysis code: the tokenizer, brackets, smart indent, the formatter. The front end is GTK4 on direct FFI, rebuilt in Jolt, and the Jolt fixes the project needed went upstream.

  • 2297tests pass (2026-11-14)
  • 7Lisps it runs
  • 27guide pages

Porting and attribution

New in 0.4.3 CHANGELOG

  1. Cmd+click on a symbol (Ctrl+click on Linux) jumps to its definition, as F12 does.
  2. More than one terminal. The + at the end of the bottom tab strip, or New Terminal in the View menu and the palette, opens another terminal in its own tab, named Terminal 2, Terminal…

Get started

Download Jonquil 0.4.3

Signed and notarized, for Apple Silicon Macs on macOS 26 or newer. GTK comes inside the app, so it opens and runs a file straight away. To run a project (a folder with a deps.edn), also install Jolt and git. Intel Macs and Linux build from source.

With Homebrew, which also puts a jonquil command on your PATH:

文本
brew install b12n-oss/tap/jonquil

Or download it:

Download for macOS Release notes on GitHub Getting started Source on GitHub

Alpha software. Some dialects are experimental, and Known limits lists the rough edges for each runtime.