news.volyx.in

Cosmopolitan Third Edition (justine.lol)

1205 points by jart · 1026 days ago · 240 comments on HN

Article summary

The Cosmopolitan project allows Linux-built programs to run on other platforms like Windows and MacOS without modification, providing portability and potentially improved performance. This is achieved through a custom libc implementation that can be used across different operating systems. The project's goal is to enable compile-once, run-everywhere functionality for Linux-built software. The Cosmopolitan library provides a POSIX-compatible interface, allowing programs to run seamlessly on multiple platforms.

Main themes

  • portability
  • performance
  • POSIX compatibility
  • binary portability
  • cross-platform development
  • libc implementation

What commenters say

  • The Cosmopolitan project's ability to provide binary portability across different operating systems is a significant achievement, but it may not be the most important feature for all users.
  • The performance improvements seen with Cosmopolitan are likely due to the quality of the libc implementation rather than any inherent advantage of the translation layer.
  • POSIX was never intended to provide binary portability, but rather a common set of system-level APIs that can be implemented by different operating systems.
  • The idea of compile-once, run-everywhere is not new, but the Cosmopolitan project's approach is unique in its use of a custom libc implementation to achieve this goal.
  • Some commenters argue that the focus on binary portability is misguided, and that the real benefit of Cosmopolitan lies in its ability to provide a consistent cross-platform development experience.
  • Others see the project as a way to finally achieve the original vision of POSIX, which was to provide a common set of APIs that can be implemented by any operating system.
  • The project's use of a ZIP store to package dependencies is seen as a key innovation, allowing for the creation of self-contained, portable executables.