# Experimental Project Runs macOS Binaries on Linux ARM

Kakehashi translation layer enables Darwin Mach-O execution on Linux aarch64 systems.

- **Source:** [Hacker News](https://news.ycombinator.com)
- **Published:** 2026-08-02
- **Original article:** <https://github.com/wie-project/kakehashi>
- **On Brifing:** https://brifing.si/s/a578b1e6-cba5-401c-9554-a16080a87af7

## What is Kakehashi?

Kakehashi is an experimental userspace layer that enables running macOS ARM64 binaries on Linux. It loads Darwin Mach-O files, translates BSD system calls, and allows real applications to run. The project offers a CLI-first approach without using JIT compilation, focusing on compatibility rather than emulation.

## Core Capabilities

The tool supports running utilities like 7-Zip (7zz), curl, and multi-threaded applications seamlessly. Verified on Docker/Colima and UTM (Linux aarch64) environments. Installation is simple with 'cargo install kakehashi'. The bottle feature bridges to the host root through /Volumes/linux/... paths, enabling file system interoperability.

## Installation Process

Kakehashi requires Rust 1.88+ and Linux aarch64. Basic setup involves 'cargo install kakehashi'. Users can install tools via 'kh install 7zip' or 'kh install curl'. The default bottle location is ~/.local/share/kakehashi/bottle/, configurable through environment variables like KAKEHASHI_DATA_DIR.

## Docker Integration

Optimized for Docker containers, Kakehashi provides helper scripts like './scripts/docker-7zz.sh'. The KAKEHASHI_HYPERCALL=1 flag enables better multi-threaded compression performance. The project specifically targets CI/CD pipelines where running macOS tools on Linux ARM runners could significantly reduce infrastructure costs.

## Performance Characteristics

Kakehashi executes guest code natively on the CPU. Performance overhead comes mainly from syscall boundary handling (TLS switches, alt stack management, NEON register saves). Benchmark tests with 7-Zip on Ubuntu aarch64 show ~1.5-2.0x slower performance for multi-file archiving compared to native execution.

## Cost Efficiency

A primary goal is replacing expensive macOS runners with cost-effective Linux ARM infrastructure. GitHub Actions pricing shows macOS standard runners cost ~10-12x more per minute than Linux arm64. Kakehashi could dramatically reduce CI expenses for projects needing occasional macOS toolchain access.

## Roadmap Features

The team plans to add full curl feature support (POST bodies, proxies), proper Apple Security.framework integration, and GUI compatibility. The next milestone involves git/CLT support via 'kh install xcode-tools'. While not making product claims yet, the project welcomes open-source contributions to expand its capabilities.

## Industry Significance

Kakehashi represents an important step in cross-platform compatibility, especially valuable as ARM architecture gains prominence. By enabling macOS tools on Linux environments, it offers developers new workflow flexibility. The project contributes to open-source innovation while potentially lowering cloud computing costs for many organizations.

## Sources covering this story

- https://github.com/wie-project/kakehashi — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
