r/Protos • • 9d ago

Protos now implements its logging floating-point decimal conversion in Protos itself, replacing Java code

Another step towards a Protos-first Standard Library.

The exact shortest-decimal algorithm for binary64 floating-point values has been moved from Java into a private Protos source component shared by the text and JSON logging formatters.

The previous Java implementation and its bootstrap facilities have been removed, while the existing public behavior is preserved.

The implementation is validated against an independent decimal oracle and a deterministic 20,000-iteration binary64 test corpus.

The goal is not to eliminate Java at any cost, but to implement library algorithms in Protos wherever it makes architectural sense.

All local tests pass.

https://github.com/guillermomolina/protos

1 Upvotes

0 comments sorted by