跳到正文
𝕏 Guillermo Rauch(x.com)·· 7 天前品質評分52
重點導讀

要預覽 X 貼文發出去後的樣子,通常得開瀏覽器截圖。

  • Guillermo Rauch 推出 xeet,這個用 Rust 和 wasm 寫成的工具不必啟動瀏覽器、連網或讀取檔案,就能把貼文轉成 PNG。
  • 一般貼文約需 1 毫秒。它也會處理文字換行、從右到左的文字方向,以及不同語言和表情符號的字型。開發團隊用 Chrome 檢查大量排版規則,並讓自動流程追蹤 X 原本排版的變化,協助維持預覽結果的準確度。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

Guillermo Rauch
Guillermo Rauch@rauchg
·7 天前
𝕏

Introducing 𝚡𝚎𝚎𝚝: https://t.co/YaLEMbmKwf.

A hermetic, pixel-perfect X post renderer in safe Rust / wasm. Zero browser, network, filesystem, system fonts. Renders a post to PNG in ~1ms (and 0.4 ms for @jack's "setting up my twttr" 😁).

X is the global town square, and the medium is the message. Being able to preview what things will look like before posting is great for both humans and agents.

Rendering with xeet is is 100x-1000x faster than booting up a browser and taking a screenshot, yet it's just as accurate.

It reproduces Blink & HarfBuzz text shaping, 1/64px line breaking, RTL bidi, 28 Chirp font subsets, CJK/Math/Emoji fallbacks, "Show more" rules, etc. It's the kind of thing that would be wildly impractical, if not impossible, for a human engineer to pull off.

Except 𝚡𝚎𝚎𝚝 is structured as an "autorepo." An oracle boots up Chrome, and verifies tens of thousands of text layout rules. A CI canary then watches the evolution of the original, and files signed PRs for agents to act on. It was conceived from the ground up around 'verification engineering', and the result speaks for itself.

Enjoy!

推文來源 · X (Twitter)在 X 參與討論

讀者討論

理性交流 · 即時討論