Guillermo Rauch 分享将 Mini 浏览器移植到 Rust 与 Swift 的经验
我¹ 将我的 Mini 网络浏览器移植到了 Rust 和 Swift。它更快、更安全,而且令人震惊的是,比 Electron + Bun 更适合迭代开发。
我一直想要 Safari 那样的用户体验,但是…… Chrome 😁。多亏了 𝚌𝚎𝚏 crate,我可以打包最新的 Chromium。
𝚏𝚡 𝚊𝚌𝚙 让我能够嵌入一个智能体,而不会让应用变得臃肿。它通过 ACP 与我本地的 fx CLI 通信。然后 fx 可以通过 MCP 服务器² 来管理浏览器。
通过放弃 Electron,我得以实现了 Liquid Glass、更快的启动速度,以及更具 Mac 原生风格的感觉。像细粒度焦点和输入控制这样的小细节,在 JS 中是噩梦般的存在,但在原生环境中却能轻松实现®。
原生是未来的方向,无论是在桌面还是云端。我怀疑整个软件世界会比人们预期的更快地“原生化”,正如 DHH 在 Rails World 上所暗示的那样。很高兴 Vercel 对 Fluid 的押注将有助于支持这一趋势,无论你选择 Rust、Go、Zig、scriptc……
¹ 基于 http://fx.sh 构建,使用 Opus 5.5 和 Sol 6 ² 在这个过程中,我了解了 http://agentclientprotocol.com/rfds/mcp-over-acp,现在对此非常兴奋。这将允许一种更安全、更直接的方式来暴露 MCP 工具
对照原文
I¹ ported my Mini web browser to Rust & Swift. It's faster, more secure, and shockingly, nicer to iterate on than Electron + Bun. I always wanted Safari-like UX but… Chrome 😁. Thanks to the 𝚌𝚎𝚏 crate, I can bundle up-to-date Chromium. 𝚏𝚡 𝚊𝚌𝚙 lets me embed an agent without bloating the app. It talks to my local fx CLI over ACP. fx can then manage the browser via an MCP server². By ditching Electron, I was able to get Liquid Glass, faster boots, and a more Mac-native feeling. Little things like fine-grained focus and input control, which are nightmare fuel in JS, just work®. Native is the future, both on the desktop and in the cloud. I suspect the entire software world will "nativify" faster than people realize, as DHH hinted at Rails World. Excited that Vercel's bet on Fluid will help support this, whether you choose to go Rust, Go, Zig, scriptc… ¹ Built on https://t.co/OL0LzGsXKY with Opus 5.5 and Sol 6 ² In the process I learned about https://t.co/sJoQWFreGF, which I'm now really excited about. This will allow a more secure and direct way to expose MCP tools