Kakehashi Project Enables macOS ARM64 Binaries to Run on Linux
An experimental translation layer allows macOS CLI tools to run on Linux aarch64 systems without the overhead of a full virtual machine.
A developer has introduced Kakehashi, an experimental userspace translation layer designed to run macOS ARM64 binaries on Linux aarch64 systems. The project seeks to bridge the gap between the two operating systems by leveraging their shared ARM64 instruction set, providing a lightweight alternative to traditional virtualization.
Kakehashi functions by loading Darwin Mach-O binaries and mapping them to a freestanding libSystem, which translates BSD syscalls for the Linux environment. The system is designed to work across bare metal, virtual machines, and containerized environments such as Docker or Colima. The current implementation focuses on a CLI-first approach and avoids the use of a JIT compiler. Early testing has verified the successful execution of several tools, including 7-Zip (7zz), curl, and basic Git commands from Xcode Tools.
The ARM64 Convergence
Running macOS binaries on Linux has been a long-standing objective for the open-source community, with the Darling project serving as the most prominent historical effort. While previous attempts often targeted a broader scope of compatibility, Kakehashi specifically targets the intersection of ARM64 architecture. Because both Apple Silicon and a vast array of modern Linux servers and devices utilize the aarch64 instruction set, the translation layer can focus on system call mapping rather than complex instruction emulation.
Implications for Development
If the project matures, Kakehashi could allow developers to execute specialized macOS CLI utilities on Linux ARM environments without the significant resource overhead associated with full virtualization. This provides a streamlined path for cross-platform development and improves tool portability. It is particularly relevant for developers using Apple Silicon hardware to run Linux containers who need to maintain a workflow that spans both operating systems without switching environments or launching heavy VMs.
Future Outlook
As an experimental project, Kakehashi remains in the early stages of development. Future milestones will likely focus on expanding the library of supported syscalls to allow more complex binaries to run. Developers and contributors are currently monitoring the project's GitHub repository to see if the translation layer can move beyond basic utilities to support more sophisticated macOS software, potentially altering how developers manage toolchains across heterogeneous ARM environments.