Simon Willison 用 Claude Fable 5 将 Go 版 mermaid-ascii 编译为 WebAssembly,支持彩色输出
Simon Willison 博客Aioga 编辑团队2026-07-16T14:57:39.000Z热度 63
Simon Willison 在基于 Grok Build 的 Rust 代码构建 Mermaid 转 ASCII 工具后,又发现了一个更成熟、功能更丰富的 Go 库 Alex...
产品更新Simon Willison 博客
今日 AI 情报摘要
Simon Willison 在基于 Grok Build 的 Rust 代码构建 Mermaid 转 ASCII 工具后,又发现了一个更成熟、功能更丰富的 Go 库
AlexanderGrooff/mermaid-ascii。 他让 Claude Fable 5 将该 Go 库也编译为 WebAssembly,以便对比两者效果。 新版本额外支持彩色输出。
中文正文 · AI 翻译
在基于 Grok Build 的 Rust 代码(https://simonwillison.net/2026/Jul/16/grok-mermaid/)构建了 Mermaid 转 ASCII 的工具之后,我了解到有一个更早、更功能齐全的 Go 库,叫做 AlexanderGrooff/mermaid-ascii(https://github.com/AlexanderGrooff/mermaid-ascii),它实现了类似的模式,于是我让 Claude Fable 5 也将这个库编译成 WebAssembly,以便我可以对比两者。
这个库支持颜色!
Test:::good / Test --> Deploy:::warn / Deploy --> Rollback:::bad / classDef good color:#3fb950 / classDef warn color:#e3b341 / classDef bad color:#ff7b72。一个控制行显示未选中的“仅 ASCII”复选框,“X 填充: 5”,“Y 填充: 5”,“框填充: 1”,以及按钮“复制为文本”和“复制此图的链接”。在底部黑色背景上显示了从左到右渲染的流程图,包含四个连接的方框:“Build”(绿色文字)、“Test”(绿色文字)、“Deploy”(黄色文字)、“Rollback”(红色文字),每个方框之间用箭头相连。
这是 Simon Willison 在 2026 年 7 月 16 日发布的一条动态:/2026/Jul/16/。
每月赞助我 10 美元,即可获得精选邮件摘要,内容涵盖当月最重要的 LLM 发展。
After building the Mermaid to ASCII tool based on Grok Build's Rust code:https://simonwillison.net/2026/Jul/16/grok-mermaid/ I learned that there's an older, more fully-featured Go library called AlexanderGrooff/mermaid-ascii:https://github.com/AlexanderGrooff/mermaid-ascii that implements a similar pattern, so I had Claude Fable 5 compile that one to WebAssembly as well so I could compare the two.
This one includes support for colors!
Test:::good / Test --> Deploy:::warn / Deploy --> Rollback:::bad / classDef good color:#3fb950 / classDef warn color:#e3b341 / classDef bad color:#ff7b72". A control row shows an unchecked "ASCII only" checkbox, "Padding X: 5", "Padding Y: 5", "Box padding: 1", and buttons "Copy as text" and "Copy link to this diagram". At the bottom on a black background is the rendered left-to-right flowchart with four connected boxes: "Build" (green text), "Test" (green text), "Deploy" (yellow text), "Rollback" (red text), each linked by arrows." src="https://static.simonwillison.net/static/2026/mermaid-ascii.webp" />
This is a beat by Simon Willison, posted on 16th July 2026:/2026/Jul/16/.
Sponsor me for $10/month and get a curated email digest of the month's most important LLM developments.