AMAZINGINDEX.COM 日报快照
53.1
VOL. 2026.08
2026.08.03
← 返回 2026.08.03 日报
日报快照 · Daily Snapshot
NO. 014

Linux 直接运行 macOS 二进制文件

#ARTICLE HackerNews 2026.08.03
推荐指数 54.0 NO. 014 · 2026.08.03
发布2026/08/02Score77Comments26

Kakehashi 是一个用户态翻译层,无需 JIT 即可在 Linux ARM64 上加载并执行 Darwin Mach-O 二进制,已验证支持 clang、7-Zip、curl 等真实工具。对需要在 Linux 云服务器或 CI 环境跑 macOS 原生工具链的开发者,这是替代购买 Mac 硬件或复杂交叉编译的轻量方案。

之前要在 Linux 跑 macOS 二进制,主流方案是买 Mac mini 做 CI 节点,或者用 Tart/Orchard 这类虚拟化方案启动完整 macOS VM,硬件和授权成本都很高。Kakehashi 走用户态翻译路线,不依赖 JIT 意味着在云容器环境(如 AWS Graviton、Docker/Colima)部署更简单,也避开了 Apple 的虚拟化授权限制。

跟 Darling(另一个 macOS 兼容层)比,Kakehashi 明确 CLI-first、不追求 GUI,代码量更轻,目前看更适合开发者工具链场景而非桌面应用。如果你在用 GitHub Actions self-hosted runner 跑 macOS 构建,或者需要在 Linux ARM 服务器上复用 macOS 编译好的内部工具,这个项目值得跟踪——但注意它还在实验阶段,libSystem 的 syscall 覆盖度有限,复杂应用大概率会踩坑。

意见分歧 18 条评论

核心争论:LLM辅助开发是否算clean room实现,与Darling项目的关系及法律风险

vlad_kalinkin

Hi HN, I started developing an experimental project with the goal of running macOS CLI binaries natively on Linux ARM machines. As of now, we have working prototypes for: - 7-Zip: Passes multi-threaded compression tests on an 8k-file tree. Currently ~5.2x slower than native Linux execution, but I al

StilesCrisis

I assume you eventually plan to target binaries that don't already exist on Linux? Where do you think you'll start?

vlad_kalinkin

Well, of course, most of all I would like to achieve full-fledged support for Xcode Tools (including building iOS applications) and the macOS version of Homebrew. But, of course, there is still a lot of work ahead to get to this point. Thank you!

替代方案: Darlingyabridge
查看原文 →