docs(roadmap): add superiority plan; revise platforms to Wine-first Windows
This commit is contained in:
1 parent
d23a878eec
commit
70483492aa
6 files changed
+101
-5
No files matched your search
@@ -286,4 +286,6 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
- **Post-v1 Expansion Roadmap ([21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md) & [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md))**: Track C (macOS/Windows ports + dual-profile cross-compilation) and dedicated external editor plugins remain planned; Track D3 signing (SBOM, Ed25519 primitives, trusted-key enforcement/distribution, binary-variant signing/distribution) and Track E3 daemon capabilities are implemented, and Track E4 now uses `Void::Net` for the registry client/server and remote cache plus `Void::Sqlite` for the StateStore when available.
|
||||
@@ -98,4 +98,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 92 (CLI/log colors) | Colored `ConsoleLogger` levels and colorized help on TTYs; `NO_COLOR` + `--no-color` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; PTY checks show ANSI codes for help and logs) | `src/Main.cpp`, docs |
|
||||
| Wave 93 (Self-contained installers) | `bundle_runtime_dependencies` + deterministic installer archive; `vbs install --bundle-dependencies --archive` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install CLI test passes with archive extraction and byte-identical reruns, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 94 (Installer script + IDE install tasks) | `--archive-format sh` self-extracting installer executed in tests; VS Code/Zed install tasks | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; install and IDE tests pass, full CTest 8/8) | `include/Void/Build/Install/Installer.hpp`, `src/Install/Installer.cpp`, `src/Main.cpp`, `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 95 (Superiority plan) | Wrote `22-superiority-and-gaps.md`: gap inventory, revised platforms (macOS deferred; Windows via MinGW-w64 + Wine; native MSVC deferred), CMake/Meson/build2 parity table, differentiators, priority order, acceptance gates; refreshed stale roadmap statuses | PLAN WRITTEN (implementation pending) | `docs/roadmap/22-superiority-and-gaps.md`, `docs/roadmap/{README,20,21}.md`, `STATE.md` |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1,6 +1,6 @@
|
||||
# 20 — Later native foreign execution and platform ports
|
||||
|
||||
Implementation status: **Slices 1, 2A, 2B, & 2C implemented & verified** (bounded single-config C & C++ / multi-compile-group CMake File API `codemodel-v2` and Meson `intro-targets.json` + `build.ninja` audits, bounded hermetic `build.ninja` `CUSTOM_COMMAND` / `UTILITY` / `custom_target` lowering with strict rejection of `console` pools / `.util`-only side-effects / out-of-tree writes, foreign CMake C++20 `CXX_MODULES` `fileSets` lowering onto P1689 + cross-target `module_bmis`, native `Graph::BuildGraph` execution, unified `resolve_foreign_with_translation`, CLI `vbs build|test --native-foreign`, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **Slice 3 (Windows/MSVC & macOS/Apple Clang ports, remote execution workers, plus live `conan` CLI verification) remains planned scope** — see [21-expansion-roadmap.md](21-expansion-roadmap.md), [STATE](../agent-workflow/STATE.md), and [VERIFICATION](../agent-workflow/VERIFICATION.md).
|
||||
Implementation status: **Slices 1, 2A, 2B, & 2C implemented & verified** (bounded single-config C & C++ / multi-compile-group CMake File API `codemodel-v2` and Meson `intro-targets.json` + `build.ninja` audits, bounded hermetic `build.ninja` `CUSTOM_COMMAND` / `UTILITY` / `custom_target` lowering with strict rejection of `console` pools / `.util`-only side-effects / out-of-tree writes, foreign CMake C++20 `CXX_MODULES` `fileSets` lowering onto P1689 + cross-target `module_bmis`, native `Graph::BuildGraph` execution, unified `resolve_foreign_with_translation`, CLI `vbs build|test --native-foreign`, equivalence & restored-mtime mutation tests, and explicit `RequireNative` / `FallbackToForeignBuild` policy in [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp) and [Translator.cpp](../../src/Provider/Translator.cpp)); **Slice 3 remains planned scope under the revised platform strategy ([22](22-superiority-and-gaps.md)): macOS is deferred, Windows is pursued via MinGW-w64 cross-compilation plus Wine execution first (native MSVC deferred), remote execution workers stay deferred, and live `conan` CLI verification is now implemented and verified** — see [21-expansion-roadmap.md](21-expansion-roadmap.md), [STATE](../agent-workflow/STATE.md), and [VERIFICATION](../agent-workflow/VERIFICATION.md).
|
||||
|
||||
## Requirements and ownership
|
||||
|
||||
|
||||
@@ -47,9 +47,9 @@ flowchart LR
|
||||
| Phase | Concrete Scope | Acceptance Gate |
|
||||
| --- | --- | --- |
|
||||
| **C1 — Platform Backend Split** *(Linux backend split implemented; macOS/Windows pending)* | Split `src/Platform/` into `Linux/`, `MacOS/`, and `Windows/` behind clean interfaces (`FileOps`, `ProcessSupervisor`, `DirectoryWatcher`), delegating to `Void::System` as upstream adds OS backends. Linux implementations now live under `src/Platform/Linux/` and `src/Watch/Linux/` (inotify watcher) with an explicit `HostOs`/`host_supported()` boundary in `include/Void/Build/Platform/Host.hpp`; macOS/Windows backends await real hosts (the daemon socket and registry POSIX server carry explicit Windows compile-time boundaries, `vbs doctor` and the daemon `info` request report the detected host and enabled backends, `Platform::current_executable_path()` isolates the executable-path lookup across sources and tests, the daemon `describe` request can be scoped to one workspace member, `vbs daemon target flags` serves per-unit compile arguments, `vbs releases show` prints one release's detail, source archives never embed themselves, registry downloads answer HEAD with full headers, support single-range requests, both metadata reads and downloads are ETag-validated with RFC 7232 If-None-Match matching, and `vbs verify` can require a trusted signer key). | Zero Linux regressions; clean platform abstraction boundary. |
|
||||
| **C2 — macOS / Apple Clang & `ld64`** | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | Real macOS CI runner passing all SDK, core, module, and install tests. |
|
||||
| **C3 — Windows / MSVC & `clang-cl`** | MSVC (`cl.exe`, `lib.exe`, `link.exe`, `/showIncludes`, `.pdb`, `/FS`, `.dll`/`.lib` import libraries), Job Object process-tree kill, `ReadDirectoryChangesW` watcher, case-insensitive path conflict detection. | Real Windows CI runner passing process-tree kill, header-shadowing, and install relocation tests. |
|
||||
| **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. | `linux-x86_64` host cross-compiling `linux-aarch64` fixture while executing host-compiled generator natively. |
|
||||
| **C2 — macOS / Apple Clang & `ld64`** *(deferred, dropped for now)* | Apple Clang toolchain probes, `.dylib` + `@rpath`/`@loader_path` install-name lowering, `FSEvents` watcher, Mach-O deterministic timestamps. | **Deferred (2026-12-05)**: needs a real macOS host; not scheduled. |
|
||||
| **C3 — Windows via Wine (native MSVC deferred)** | Wine-first: cross-compile to `x86_64-w64-mingw32` with MinGW-w64 GCC (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`) and execute PE binaries under Wine 11 (`dev cpp-gcc -p wine64`); PE artifact naming, Windows target profile, Wine test runner. Native MSVC/`clang-cl` host support is Track C3-native (deferred). | A Wine-hosted Windows fixture builds and its tests run, with platform claims labelled as Wine-verified. |
|
||||
| **C4 — True Host-vs-Target Cross-Compilation** | Dual-context evaluation (`host` profile for code generators and `build_dependency` tools vs `target` profile for cross-compiled products), sysroot & `--target=` triple propagation. Required by the Wine strategy. | `linux-x86_64` host cross-compiling a Windows/mingw fixture while executing host-compiled generators natively. |
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# 22 — Superiority roadmap: gaps toward replacing CMake, Meson and build2
|
||||
|
||||
Status: **analysis plan (2026-12-05)**. This plan records what is still missing after Plans 01–21 and the post-v1 expansion, and the path to a *superior* replacement of CMake, Meson and build2.
|
||||
Sources: [REQUIREMENTS](REQUIREMENTS.md), [ARCHITECTURE](ARCHITECTURE.md), [01–21 plans](README.md), [STATE](../agent-workflow/STATE.md), [VERIFICATION](../agent-workflow/VERIFICATION.md), live CMake/Meson documentation via Context7, and this session's observed results.
|
||||
build2 documentation was **not** available through Context7; build2 statements below are general knowledge and are marked *(unverified)*.
|
||||
|
||||
## 1. Current gap inventory
|
||||
|
||||
| Area | Status | Evidence / note |
|
||||
| --- | --- | --- |
|
||||
| Track C2 macOS / Apple Clang / `ld64` | **Deferred (dropped for now)** | no macOS host; decided 2026-12-05 |
|
||||
| Track C3 Windows / MSVC | **Redesigned: Wine-first** | see §2; native MSVC host is Track C3-native, deferred |
|
||||
| Track C4 host-vs-target cross-compilation | **Required by the Wine strategy** | host profile for generators, target profile for products |
|
||||
| Dedicated editor plugins (VS Code, Zed, CLion…) | Open | daemon editor protocol is implemented; plugins live in external repos |
|
||||
| Remote / distributed execution workers | Deferred | `20`, R-015 |
|
||||
| VoidLibrary's own `build.cpp` | Open | `recipes/VoidLibrary/` builds it inside VBS, but VoidLibrary is not yet migrated |
|
||||
| Installer generators | Partial | deterministic tar + self-extracting `sh` + SBOM + Ed25519; DEB/RPM/MSI/DMG-style generators missing |
|
||||
| Test-runner parity | Partial | `VOID_TEST` runner; fixtures/labels/locks/timeouts/JUnit incomplete |
|
||||
| IDE ecosystem | Partial | `vbs ide` + CompDB + daemon protocol; no File API shim, presets import, or plugins |
|
||||
| CI on real runners, sanitizers, fuzzing | Unverified | the GitHub Actions workflow is a template that has never run |
|
||||
|
||||
## 2. Platform strategy (revised 2026-12-05)
|
||||
|
||||
- **macOS: dropped for now.** No macOS host is available; Track C2 stays documented but unscheduled.
|
||||
- **Windows: Wine-first.**
|
||||
- Cross-compile to `x86_64-w64-mingw32` with MinGW-w64 GCC 16.2 from
|
||||
`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`.
|
||||
- Run produced PE binaries and Windows-only tools under Wine 11 from
|
||||
`dev cpp-gcc -p wine64`.
|
||||
- This exercises the host/target split (Track C4): a Linux **host** profile builds code
|
||||
generators, a Windows **target** profile builds products, and tests execute under Wine.
|
||||
- **Native MSVC / clang-cl host support is deferred** (Track C3-native) until a real Windows
|
||||
host exists.
|
||||
|
||||
Concrete work this implies:
|
||||
1. Toolchain driver discovers `x86_64-w64-mingw32-{gcc,g++,ar,windres}` and records
|
||||
`target_triple`, PE artifact naming (`.exe`, `.dll`, `.a`/`.lib`, import libraries).
|
||||
2. Profile/target context carries the Windows target (`os=Windows`, `architecture=x86_64`) while
|
||||
the host stays Linux.
|
||||
3. Test execution uses a configurable runner prefix (`wine`, or `wine64`) when the target is
|
||||
Windows and the host is not.
|
||||
4. Path and case-sensitivity tests run against Wine to validate Windows semantics without a
|
||||
Windows host.
|
||||
|
||||
## 3. Parity roadmap against the incumbents
|
||||
|
||||
| Capability | CMake | Meson | build2 *(unverified)* | VBS now | Planned work |
|
||||
| --- | --- | --- | --- | --- | --- |
|
||||
| Platforms | Windows, macOS, Linux, BSD, cross | same | same | Linux | Wine-first Windows (§2); macOS deferred |
|
||||
| Languages | C, C++, CUDA, Fortran, ObjC, ASM, HIP… | C, C++, Rust, D, Fortran, Java… | C/C++ focused | C, C++ | ASM/CUDA/ObjC or a documented extension API |
|
||||
| Toolchains | MSVC, clang-cl, GCC, Clang, Apple, many | GCC, Clang, MSVC, many | GCC, Clang, MSVC | GCC, Clang (Linux) | MinGW target; MSVC deferred |
|
||||
| Package/registry | External (vcpkg, Conan, FetchContent) | wrapdb, subprojects | cppget.org / brep | **Built-in registry + solver + lock + binary variants + signatures + SBOM** | federation, mirrors, key distribution |
|
||||
| Install/package | `install()`, `install(EXPORT)`, CPack (TGZ/ZIP/DEB/RPM/WIX/DMG/NuGet/APK…) | `install_data`, `install_headers`, dist scripts | install module | prefix staging, components, relocatable CMake + native exports, tar, self-extracting `sh`, SBOM, signing | ZIP, DEB, RPM, MSI/DMG-style, package metadata + signing |
|
||||
| IDE integration | File API, presets, every IDE | `meson-info` introspection | limited | `vbs ide generate/query`, CompDB, daemon protocol | File API shim, `CMakePresets.json` import, plugins |
|
||||
| Test runner | CTest: fixtures, labels, resource locks, timeouts, JUnit/CDash | `meson test`: suites, timeouts, JUnit | test module | `VOID_TEST` runner | fixtures, labels, locks, timeouts, JUnit |
|
||||
| Incremental / cache | compiler depfiles, ccache external | depfiles, ccache | internal caching model | **content-addressed state, immutable snapshots, remote action cache** | scale benchmarks |
|
||||
| Modules / PCH / unity / LTO / sanitizers | yes (with generator quirks) | yes | yes | **native with capability probing** | more compilers |
|
||||
| Reproducibility | opt-in | opt-in | partial | **default deterministic** (epoch, prefix maps, canonical mtimes) | cross-platform determinism |
|
||||
| Generators/backends | Ninja, Makefiles, VS, Xcode… | Ninja (+ others historically) | own scheduler | **direct executor (no generator)** | n/a |
|
||||
| Remote execution | rare (via add-ons) | rare | rare | planned | workers after local engine |
|
||||
|
||||
## 4. Differentiators to preserve
|
||||
|
||||
1. Ordinary compiled C++ descriptions instead of a DSL (CMake language, Meson DSL, build2 `bsl`).
|
||||
2. Hermetic immutable snapshots and content-addressed inputs.
|
||||
3. Built-in CAS with remote action cache and profile isolation.
|
||||
4. Deterministic-by-default outputs (proven bit-identical Stage 2 == Stage 3).
|
||||
5. Native foreign-graph translation (CMake/Meson → native actions), not just delegation.
|
||||
6. Integrated package manager, registry (RBAC, signatures, SBOM, binary variants).
|
||||
7. First-class modules/header units/PCH/unity/LTO/sanitizers with real capability probes.
|
||||
8. Daemon + editor protocol built in.
|
||||
9. One tool covers build, deps, registry, install, packaging, provenance.
|
||||
|
||||
## 5. Prioritized execution order
|
||||
|
||||
1. Documentation drift: status tables must match verified reality (this plan updates them).
|
||||
2. Wine-first Windows target support (§2).
|
||||
3. Packaging parity: ZIP (stored), DEB, RPM, metadata, signing (`--archive-format` extensions).
|
||||
4. IDE ecosystem: File API shim, presets import, external plugins.
|
||||
5. Migration tooling (`vbs migrate`) and migrating VoidLibrary onto VBS.
|
||||
6. Test-runner parity.
|
||||
7. Benchmarks against CMake/Meson/build2 on documented fixtures (including 10k-target scaling).
|
||||
8. CI on real runners, sanitizer jobs, parser fuzzing.
|
||||
9. Remote execution workers.
|
||||
|
||||
## 6. Acceptance gates
|
||||
|
||||
- Every platform claim has an observed run on that platform (or under Wine, clearly labelled).
|
||||
- A package generator is accepted only when its output installs and runs from a clean machine image.
|
||||
- Parity rows move to "done" only with tests in the repo suite, not from planning alone.
|
||||
- Superiority claims require measured comparisons against the incumbent on the same fixture and
|
||||
toolchain; until then they stay listed as design advantages.
|
||||
@@ -32,7 +32,8 @@ Authority: [requirements](REQUIREMENTS.md), [architecture](ARCHITECTURE.md),
|
||||
| [18 — Native self-hosting and VoidLibrary migration](18-self-host-voidlibrary.md) | Implemented & Verified | [VoidLibraryRecipe.cpp](../../recipes/VoidLibrary/VoidLibraryRecipe.cpp), [TestRegistryGen.cpp](../../src/SelfHost/TestRegistryGen.cpp) |
|
||||
| [19 — Quality, performance and CI](19-quality-performance-ci.md) | Implemented & Verified | [tests/](../../tests/CMakeLists.txt), [EngineBenchmarks.cpp](../../benchmarks/EngineBenchmarks.cpp), [.github/workflows/ci.yml](../../.github/workflows/ci.yml) |
|
||||
| [20 — Later native foreign execution and platform ports](20-future-translation-platforms.md) | Slices 1, 2A, 2B, & 2C Implemented & Verified; Slice 3 OS/remote ports planned | [Translator.hpp](../../include/Void/Build/Provider/Translator.hpp), [Translator.cpp](../../src/Provider/Translator.cpp) (C/C++ CMake & Meson translation, Ninja `CUSTOM_COMMAND`, foreign C++20 `CXX_MODULES`, unified fallback & `--native-foreign`); Windows/macOS/remote execution planned |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Track A, Track B (B1–B3, except live `conan` CLI), Track E1 & Track E3 IDE configs/query Implemented; Tracks C, D, E2, E3 daemon & E4 Planned | Five-track expansion roadmap (**Track A** zero-CMake self-host, **Track B** C driver / Ninja custom commands / CMake `CXX_MODULES`, **Track E1**, & **Track E3** `build.cpp` CompDB + `vbs ide` verified; Tracks C, D, E2, `vbs daemon`, & E4 planned) |
|
||||
| [21 — Post-v1 expansion roadmap](21-expansion-roadmap.md) | Tracks A, B (incl. live `conan`), D1–D3, E1–E4 implemented & verified; Track C1 done (Linux), C2 deferred, C3 redesigned as Wine-first | Five-track expansion roadmap (see [STATE](../agent-workflow/STATE.md) for the verified wave history) |
|
||||
| [22 — Superiority roadmap and gaps](22-superiority-and-gaps.md) | Analysis plan (2026-12-05) | Gap inventory, revised platform strategy (macOS dropped for now, Windows via MinGW-w64 + Wine, native MSVC deferred), parity roadmap vs CMake/Meson/build2, differentiators, prioritized order and acceptance gates |
|
||||
|
||||
## Dependency graph
|
||||
|
||||
|
||||
Reference in new issue
Block a user