HN
Today

Cocoa-Way – Native macOS Wayland compositor for running Linux apps seamlessly

Cocoa-Way is a new native macOS Wayland compositor, built with Rust and Smithay, designed to seamlessly stream Linux applications. It promises zero VM overhead and native macOS integration, offering a compelling alternative to traditional solutions like XQuartz or full VMs. This technical project appeals to HN's interest in performant, elegant cross-platform development solutions.

45
Score
2
Comments
#1
Highest Rank
10h
on Front Page
First Seen
Mar 28, 11:00 AM
Last Seen
Mar 28, 8:00 PM
Rank Over Time
11445756109

The Lowdown

Cocoa-Way is an innovative project that brings Wayland-based Linux applications to macOS with native-level integration and performance. Developed in Rust using Smithay, it acts as a Wayland compositor directly on macOS, allowing users to run Linux apps without the overhead of a full virtual machine or the limitations of XQuartz.

  • Native Integration: It leverages macOS's Metal/OpenGL for rendering and offers seamless desktop integration, including server-side decorations and HiDPI support for Retina displays.
  • Zero VM Overhead: Unlike traditional virtualization, Cocoa-Way streams the Wayland protocol directly via Unix sockets, enabling high performance and minimal resource usage.
  • Hardware Accelerated: The rendering pipeline is efficiently hardware-accelerated using OpenGL.
  • Easy Setup: Installation is straightforward via Homebrew, direct binary download, or building from source, though it requires waypipe-darwin to connect to Linux applications.
  • Comparison Advantage: The project highlights its superior latency, HiDPI support, and native integration compared to XQuartz, VNC, or full VM GUIs.

This project represents a significant step towards truly seamless cross-platform application interoperability, focusing on efficiency and a native user experience. It's part of a broader research initiative into "Turbo-Charged Protocol Virtualization," aiming for zero-cost cross-platform Wayland.