Skip to content

det/cobolrt: factor out per-service duplicated runtime shims (40.9% of CardDemo methods) #8486

Closed

Description

@squid-protocol

Summary

Scanning 30 deterministic (det) CardDemo *Service.java ports (tests/equivalence/carddemo-*/port/service/) with galaxyscope + structural-fingerprint-scanner (composition mode, min_loc=3) shows 380 of 929 Java methods (40.9%, 2,150 LOC) are exact cross-file structural duplicates appearing in >= 3 services.

Evidence

  • Repeated boilerplate helpers emitted inside each *Service.java include copyOf, edited, chunks, digitsKey, fill, loadCommarea, handleLink, alnumToUnsigned, fit, nz, etc.
  • Removing cross-file structural duplicates cuts intra-service Java call edges in CardDemo by more than half (1,773 → 752 edges), leaving 502 unique-structure methods (13,270 LOC).
  • Explains the cics-fidelity observation that det Java ports cluster tightly with each other (0.60–0.62 Java–Java distance) and obscure per-program structure.

Proposed Change

Hoist cross-service invariant cobolrt helper methods into shared cobolrt utility/base classes instead of emitting duplicate copies inside every generated *Service.java.

Activity

  1. added
    enhancement
    on Nov 14, 2026
  2. added a commit that references this issue on Nov 16, 2026
  3. squid-protocol commented on Nov 21, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host melek, lease renewed 2026-11-21T19:51Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:melek label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claim:melekenhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions