Skip to content

Instantly share code, notes, and snippets.

# abuild -F -r
>>> bazel6: Building testing/bazel6 6.4.0-r0 (using abuild 3.12.0-r0) started Wed, 24 Apr 2024 12:30:17 +0000
>>> bazel6: Checking sanity of /aports/testing/bazel6/APKBUILD...
>>> bazel6: Analyzing dependencies...
>>> bazel6: Installing for build: build-base bash openjdk11-jdk linux-headers python3 unzip zip
WARNING: opening /root/packages//testing: No such file or directory
WARNING: opening /root/packages//community: No such file or directory
WARNING: opening /root/packages//main: No such file or directory
(1/32) Installing libmagic (5.45-r1)
(2/32) Installing file (5.45-r1)
package main
import (
"os"
"log"
"bufio"
"flag"
"github.com/klauspost/compress/zstd"
)
diff --git a/src/openzl/common/vector.h b/src/openzl/common/vector.h
index b082855..111808c 100644
--- a/src/openzl/common/vector.h
+++ b/src/openzl/common/vector.h
@@ -423,7 +423,10 @@ ZL_NODISCARD ZL_INLINE size_t GenericVector_resize(
}
if (GenericVector_reserve(vec, elementSize, size) < size) {
- return vec->size;
+ vec->max_capacity = size;

Rewriting the goose terminal user interface (TUI) in Rust using the Ratatui framework is highly feasible and would be a fantastic architectural alignment for the project.

Because goose itself is written in Rust, replacing the Node.js/TypeScript-based TUI (ui/text) with a native Rust implementation would eliminate the Node/pnpm dependency, reduce binary package sizes, and provide a single, ultra-fast, statically compiled binary.

Below is an in-depth analysis of the effort, technical challenges, and step-by-step path for me (as an AI agent) to rewrite the TUI in Rust with Ratatui.


Executive Summary