Skip to content

v0.7.0: Phase 6.5 -- Rust Compiler Port + Bash-in-Rust Shell

Choose a tag to compare

@doublegate doublegate released this 28 Feb 04:58
· 754 commits to main since this release

Phase 6.5: Rust Compiler Port + Bash-in-Rust Shell

Major milestone release completing Phase 6.5 -- 42 sprints across 6 waves delivering a cross-compiled Rust toolchain and a full Bash-compatible userland shell written entirely in Rust.

Highlights

  • Rust std platform (std::sys::veridian): 15 source files (~7,800 lines) implementing fs, io, process, thread, net, time, alloc, and locks for the x86_64-unknown-veridian target
  • LLVM + rustc cross-build pipeline: 7 build scripts for LLVM 19 cross-compilation, rustc Stage 0/1/2, cargo with vendored deps, and self-hosting verification
  • Bash-in-Rust shell (vsh): 40 source files (~10,000 lines) with full Bash 5.3 feature parity -- lexer, recursive descent parser, 8-stage word expansion, fork+exec pipelines, 49 builtins, job control, readline (Emacs/vi modes), tab completion, and startup files
  • Kernel/libc prerequisites: Memory scaling to 8GB per-process, epoll I/O multiplexing, full pthreads, POSIX signals (SIGTSTP/SIGCONT/SIGCHLD), PTY infrastructure, filesystem completions
  • Test suite: 700+ bash test cases across 11 scripts + 12 Rust compiler integration tests
  • Documentation: RUST-COMPILER-PORTING.md (764 lines), VSH-SHELL-GUIDE.md (805 lines), PHASE6.5-COMPLETION-SUMMARY.md (360 lines)

Stats

  • 115 files changed, ~30,400 insertions, ~600 deletions
  • Zero clippy warnings across all 3 architectures (x86_64, AArch64, RISC-V)
  • All 3 architectures boot to Stage 6 BOOTOK with 29/29 tests passing

Wave Structure

Wave Sprints Focus Lines
0 P-1..P-12 Kernel/libc prerequisites ~15,000
1 R-1..R-6 Rust std platform ~6,700
2 C-1..C-6 LLVM + rustc cross-build ~3,000
3 V-1..V-8 vsh core engine ~14,800
4 V-9..V-14 vsh builtins + job control ~10,100
5 T-1..T-4 Tests, docs, CI, release ~7,900

What's Next

Phase 7: Production Readiness -- GPU drivers (virtio-gpu DRM), advanced Wayland (xdg-decoration, clipboard, DnD), multimedia framework (audio mixer, codec pipeline), virtualization support, cloud-native features.