docs(roadmap): research what to add next against CMake and Meson
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 7s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 6s
VoidBuildSystem CI / fuzz-clang (push) Failing after 3s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 12s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 1m0s

This commit is contained in:
faumaray committed 2026-12-05 13:42:50 +03:00
1 parent f032c9f7fe
commit f8e0036b37
1 file changed
+65
+65
View File
@@ -101,6 +101,71 @@ no-op. This is the clear performance target: cache the compiled descriptor and t
across invocations, and keep snapshot work proportional to changed files. Larger fixtures are across invocations, and keep snapshot work proportional to changed files. Larger fixtures are
needed before drawing scaling conclusions. needed before drawing scaling conclusions.
## 8. Research findings: what to add next (2026-12-05)
Checked against current CMake and Meson documentation via Context7 (build2 has no
Context7 docs; its items stay general knowledge). Ordered by what actually blocks adoption
first, then what makes VBS *better* rather than merely equal.
### 8.1 Adoption blockers
1. **pkg-config discovery.** CMake (`FindPkgConfig`/`find_package`) and Meson
(`dependency()`, auto method order `pkg-config` → `cmake` → framework) both find
system-installed libraries. VBS has registry/git/path/CMake/Meson/Conan providers but no
pkg-config lookup, so most existing Linux projects cannot be built as-is. Add
`.pkgconfig("libfoo >= 1.2")` plus a `.pc` search path in profiles, resolved into an
imported target.
2. **Language breadth.** CMake supports C, C++, CUDA, Fortran, ObjC, ASM, HIP; Meson C, C++,
Rust, D, Fortran, Java. VBS is C/C++ only. Assembly is the cheapest high-value addition
(`.s`, `.S` with the C preprocessor), then CUDA.
3. **Platform breadth.** Native MSVC and Apple Clang/macOS remain deferred by decision; MinGW
cross + Wine is the current Windows story. This stays the biggest "can I use it at work?"
blocker outside Linux.
4. **Credibility evidence.** CI workflows have never run on a real runner, and there is no
10k-target scaling benchmark yet (CMake/Meson handle very large projects daily).
5. **Package-generator parity.** CPack also ships NuGet, PKG/productbuild, APK and IFW
installers; VBS has tar, `sh`, ZIP, DEB, RPM, WiX and UDIF. NuGet and PKG are the next
useful ones.
### 8.2 Developer experience and IDE integration
6. **Coverage reporting.** `vbs test --coverage` producing lcov XML (gcov for GCC,
llvm-cov for Clang) alongside JUnit. CMake has `CTestCoverageCollectGCOV`; Meson has the
`b_coverage` option.
7. **Test repetition controls.** CTest offers `--repeat until-fail|after-timeout|until-pass`,
`--shuffle`, `--stop-on-failure` and per-test retries; VBS has labels, resources, fixtures,
timeouts, JUnit and CDash but none of these. Flaky-test retries are valuable for CI.
8. **IDE debug integration.** `vbs ide generate` writes editor configs, but not debug
configurations: add `.vscode/launch.json`/`tasks.json` (gdb/lldb) and JetBrains run
configurations per target. Also export `CMakePresets.json` so CMake-only tools can read a
VBS project.
9. **Shell completions and man pages** for `vbs` (bash/zsh/fish), generated from the argparse
tree.
10. **Migration breadth.** `vbs migrate` handles a bounded CMake subset; add `--from meson`
and cover more CMake commands. `vbs init` could grow templates (header-only, shared
library, GUI).
### 8.3 Differentiators worth building (incumbents lack these)
11. **`vbs explain`.** Why did an action re-run? VBS already stores cached action digests and
inputs; the explain report (changed input, command, environment, cache miss) is a cheap,
high-value debugging feature that Ninja/CMake/Meson do not offer.
12. **Enforced hermetic sandboxing.** Snapshots already define exact inputs; enforcing that
actions see *only* them (mount/user namespaces) would make incrementality and
reproducibility a guarantee rather than a convention (Bazel-style).
13. **Build Event Protocol / Chrome trace output** for CI dashboards and IDE timelines.
14. **Multi-machine orchestration.** The registry, queue, leases, remote execution and
parallel workers exist; coordinating several machines (capacity, retries, affinity) is the
remaining step.
15. **Registry ecosystem.** Federation/mirrors, trusted-key distribution, and vcpkg
interop (Conan is already supported).
### 8.4 Performance note
The 92 ms warm no-op was measured with a **Debug** `vbs` binary. Before optimizing further,
re-run `benchmarks/compare.sh` against a Release build, then attack the cold-start cost
(descriptor compilation dominates: 2.6 s cold vs CMake's 97 ms on 20 sources).
## 7. Acceptance gates ## 7. Acceptance gates
- Every platform claim has an observed run on that platform (or under Wine, clearly labelled). - Every platform claim has an observed run on that platform (or under Wine, clearly labelled).