WIP: implement PerlIO via runtime layers#826
Merged
Merged
Conversation
Snapshot the current PerlIO::via::Timeout CPAN workaround and the canonical :via(...) runtime design before starting the implementation. Generated with Codex (https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Add a Java ViaLayer bridge for :via(...) PerlIO layers, including PUSHED, READ, FILL, WRITE, lifecycle, and metadata callbacks over a borrowed glob-backed below handle. Make binmode layer pushes return status and preserve the original handle on failed pushes. Add focused unit coverage and fix MIME::QuotedPrint final soft-break parity exposed by PerlIO::via::QuotedPrint. Updates dev/design/perlio-via.md progress tracking. Generated with Codex (https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
Keep failed :via(...) PUSHED fatal for open(), but do not fail open() for other unsupported layer specs that PerlOnJava historically warned about or ignored. This restores perl5_t io/perlio_leaks.t and io/open.t pass counts while preserving the via failure contract. Generated with Codex (https://openai.com/codex) Co-Authored-By: Codex <codex@openai.com>
a17f7d8 to
7fc77f1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jcpan -t PerlIO::via::Timeoutpasses while runtime:via(...)remains unimplementeddev/design/perlio-via.mdas the canonical plan for functional runtime:via(...)layersVerification
maketimeout 600 ./jcpan -t PerlIO::via::Timeoutgit diff --checkbash -n dev/tools/test-cpan-distroprefs.shWIP
Runtime
:via(...)implementation is next.