Skip to content

Fix Scalar::Watcher and Protocol::BitTorrent tooling - #932

Merged
fglock merged 1 commit into
masterfrom
fix/cpan-compiler-tooling-modules
Aug 12, 2026
Merged

Fix Scalar::Watcher and Protocol::BitTorrent tooling#932
fglock merged 1 commit into
masterfrom
fix/cpan-compiler-tooling-modules

Conversation

@fglock

@fglock fglock commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

  • implement Scalar::Watcher through shared runtime scalar mutation and destruction hooks
  • preserve watched scalar slot identity in the interpreter backend
  • implement a Java Convert::Bencode_XS backend used by Protocol::BitTorrent
  • expose Java XS initialization failures under JPERL_REQUIRE_DEBUG
  • avoid distribution preferences in favor of compiler/runtime and Java XS support

Validation

  • make
  • ./jcpan -t Scalar::Watcher — 28 tests passed
  • ./jcpan -t Protocol::BitTorrent — 198 tests passed
  • ./jcpan -t Transmission::AttributeRole — 173 applicable tests passed
  • focused regression tests with system Perl, JVM backend, and interpreter backend

Module::Reader was not changed because its upstream suite also fails under system Perl 5.42. The standalone Convert::Bencode_XS suite has one platform-sensitive ordering failure under system Perl, while the complete Protocol::BitTorrent suite passes with the Java backend.

Generated with Codex

Implement Scalar::Watcher scalar magic in the shared runtime, including
assignment, increment, cancellation, aggregate-slot destruction, and
interpreter slot-identity parity. Add a Java Convert::Bencode_XS backend
so Protocol::BitTorrent can load without native XS.

Also expose Java XS initialization failures when require debugging is
enabled, while retaining the normal compatibility error otherwise.

Generated with [Codex](https://openai.com/codex)

Co-Authored-By: Codex <223018245+openai-codex[bot]@users.noreply.github.com>
@fglock
fglock merged commit 8931a8d into master Aug 12, 2026
2 checks passed
@fglock
fglock deleted the fix/cpan-compiler-tooling-modules branch August 12, 2026 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant