Clice v1.0 Released: Welcome to Modern C++
Clice v1.0 is a new C++23 language server built on Clang featuring a multi-process architecture, native module support, and crash recovery as an alternative to unmaintained clangd.
read it The author offers a deep architectural look at building a modern C++23 language server from scratch, detailing concurrency, module support, and project history.
summary
Clice v1.0 is a C++23 language server designed to address architectural flaws in clangd, which has lacked active maintenance since 2024. It uses a multi-process compilation pool to isolate compiler crashes, supports C++20 named modules, and relies on a Bazel-based hermetic build system. Developed over two and a half years with recent assistance from AI coding agents, the project also provides a robust CLI toolset for code analysis and migration. The post concludes with reflective thoughts on the future of language tools in the age of AI-generated code.
key points
- Employs a multi-process compilation pool instead of multithreading to isolate and recover from Clang compiler crashes during half-written code editing.
- Features full native support for C++20 named modules, C++23 import std, and automated dependency wrapping via clice modularize.
- Built using C++20 coroutines, a custom libuv-based async library, static reflection, and a Bazel-powered reproducible build.
who should read it
C++ developers, toolchain engineers, and systems programmers interested in modern C++ tooling and language servers.
discussion positive
consensus
Commenters are enthusiastic about a viable, modern alternative to clangd given its current maintenance backlog, though some question the practical indexing speed of Clang-based solutions.
pushback
Some participants criticize the extreme verbosity of the project's AI-generated commit messages and express fatigue over the increasing complexity of modern C++ standards.
The biggest issue with clangd (and a derivate like this) is that it is at least three orders of magnitude slower than non-clang based indexers like the old ones in Eclipse and Qt Creator. It used to be that I could index a huge codebase in a couple minutes; clangd takes days and therefore we have to trouble with stuff such as remote indices. Frankly, I'd trade anything in the world for a fast indexer that is NOT based on clang, even if it were not perfect (which is kind of the point).
It highlights the fundamental performance challenge of Clang-based indexers on massive codebases compared to older, non-Clang alternatives.
Generated by an LLM from the article and thread. Check the sources before relying on it.