r/Protos • • 9d ago

Protos replaces its Java-based CommandLine Array builder with ordinary Protos code

Another step towards a Protos-first Standard Library.

The CommandLine parser now accumulates option and positional occurrences using ordinary Protos Arrays with geometric growth and exact-sized results.

The dedicated Java Array builder and its bootstrap registration have been removed. No new runtime primitives, Java infrastructure, or changes to Core Array semantics were needed.

The public API remains unchanged, and new regression tests cover accumulation boundaries, repeated options, argument provenance, result independence, and nested command scopes.

All local tests pass.

The goal is to implement as much of the Standard Library as possible in Protos itself, while retaining native runtime mechanisms where they are genuinely necessary.

https://github.com/guillermomolina/protos

1 Upvotes

0 comments sorted by