hn.today

CMake 4.5.1 rewritten in Rust. Beats CMake across all 40 benchmarks

github.com3 points0 comments
Screenshot of CMake 4.5.1 rewritten in Rust. Beats CMake across all 40 benchmarks

rcmake is an independent reimplementation of CMake 4.5.1 in Rust, intended as a drop-in build-system alternative. Its single multi-call executable provides CMake configuration and generation, ccmake, ctest, cpack, and a language server, and supports common generators including Ninja, Makefiles, Xcode, and Visual Studio. It reads existing CMake projects, presets, and caches, and integrates with tools such as vcpkg and Conan. The project says its core does not invoke CMake at runtime and that nearly all of its 41 crates forbid unsafe code. It is at version 0.2.2 and is not affiliated with Kitware.

Verification reports strong compatibility on CMake’s RunCMake tests across Linux, macOS, and Windows, plus passing parity checks for ten large C++ projects and all 1,520 vcpkg ports with an observed CMake configure. Rcmake was faster in all 40 benchmark cases; across five large projects, geometric-mean speedups were 1.25× for cold configuration, 1.72× for warm configuration with a shared probe cache, and 1.50× after a leaf edit. A synthetic cold-configure test reported 2.24× speedup, while peak memory on the large-project tests was nearly identical to CMake. Compatibility is not complete: on a sealed, previously unseen set, only 44 of 80 repositories that configured with CMake passed strict parity, leaving 36 with differences.

Read on github.com0 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Personal Computing

Personal Computing

Cory Doctorow recalls Vernor Vinge’s visionary novel *Rainbows End* and the friendship and encouragement he shared with its author. He connects its vision of personal computing to vibe coding, while asking who will build and maintain the free and open-source software it depends on. (pluralistic.net)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.