Skip to content

Review usages of Integer#size in the gem #1057

Open

Description

@eregon

From @XrXr in https://bugs.ruby-lang.org/issues/20614#note-8, we should review usages of Integer#size as it is not equal to pointer size on Windows.

Activity

  1. oaksprout commented on Jul 28, 2026

    @oaksprout

    Would you want this one done? — Doing the Integer#size / Windows pointer-size portability review at the three flagged locations. If yes, we'll do it and open a PR; if not, say so (or just ignore this) and we won't touch it.

    How it works: an AI agent does the work against your write-up; it's independently checked in a clean container (your test suite, network off) before anything reaches you; a human reviews it, submits it, and answers the review. You keep full control — nothing lands unless you merge it.

    Recent examples of the same flow on other projects: strawberry-graphql/strawberry#4555, nextcloud/tasks#3220, gramps-project/gramps-web#1320.

    We're testing whether work offered this way is useful to maintainers — a blunt "no" is as helpful as a yes.

  2. bensheldon commented on Jul 28, 2026

    @bensheldon
    Contributor

    @oaksprout no.

    If you're confident that your process creates value, simply propose the change via a PR and we will review it. As a maintainer, I'm happy to interact with a contributor that is present and committed to stewarding their change. I have no way to evaluate that from a comment such as yours.

  3. oaksprout commented on Jul 29, 2026

    @oaksprout

    @bensheldon on your terms — the change, proposed via a PR: #1110. All four 0.size width-inference sites fixed with the idiom the issue's cited note recommends; behaviour identical everywhere the old code was right. Checked in a clean container before it went up; full record in the PR. The human sender answers the review and stays with the change.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions