hn.today

Clice v1.0 Released: Welcome to Modern C++

ykiko.me182 points95 comments
Screenshot of Clice v1.0 Released: Welcome to Modern C++

Clice v1.0 is the first stable release of a C/C++ language server built on LLVM/Clang and written in C++23. After four months of nightly builds and alpha testing, its developer says core features are stable and have been tested against real open-source projects. Its design isolates compilation in child processes, so a compiler crash can disable one worker without taking down the server. It also supports C++20 modules with on-demand builds and persistent caching, handles files whose meaning depends on where they are included, and offers enhanced template-aware navigation and completion. Most projects need only a compile_commands.json, with built-in detection for more than 50 toolchains. Clice also provides command-line tools for indexing, linting, formatting, querying code, refactoring, analyzing project structure, and converting code to modules.

The project is also presented as a demonstration that modern C++ features - including coroutines, named modules, reflection-based serialization, and standard-library facilities such as std::expected and ranges - can support a large, complex application, despite friction in the surrounding ecosystem. Its architecture and breadth are intended to address longstanding shortcomings in clangd and ccls. The developer says clangd has lacked sustained maintenance since around 2024, after Google reduced its investment in Clang, leaving major improvements difficult to advance. That experience helped motivate a new implementation rather than incremental changes. The release marks more than two years of development and a milestone of 1,000 commits.

Read on ykiko.me95 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

Aristotle Expands into Rust

Aristotle has expanded its formal verification platform to Rust, allowing developers to prove code meets specifications and contains no undefined behavior, including in unsafe blocks. It can also verify that Rust rewrites behave like their original C code, targeting critical software such as smart contracts and infrastructure. (harmonic.fun)

The daily digest

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