返回 2026-07-06
⚙️ 工程

仅用 500 字节构建世界地图Building a World Map with only 500 bytes

simonwillison.net·2026-07-04 节选正文

开发者 Iwo Kadziela 在 AI 辅助工具 Codex 的帮助下,成功仅用 445 字节的数据生成了一张逼真的 ASCII 字符世界地图。实现这一极限压缩的核心技巧在于巧妙运用 deflate 压缩算法处理底层数据。该方案打破了常规的地图渲染思路,展示了极致的代码与数据体积优化能力。这种极简主义编程实践为在资源极度受限的环境下呈现复杂视觉信息提供了全新思路。

Simon Willison

4th July 2026 - Link Blog

Building a World Map with only 500 bytes (via) Iwo Kadziela (assisted by Codex) figured out a way to generate a credible ASCII world map using 445 bytes of data:

The key trick is to use deflate compression, which is then wired together using this neat snippet of JavaScript. I didn't know you could use fetch() with data: URIs like this:

fetch('data:;base64,1ZpLsgIxCEXnrM...==').then(
  r => r.body.pipeThrough(new DecompressionStream('deflate-raw'))
).then(
  s => new Response(s).text()
).then(
  t => b.innerHTML = '<pre style=font-size:.65vw>' + t
)

需要完整排版与评论请前往来源站点阅读。