Port Scalar::Util::Numeric XS module
Maintainer thường phản hồi trong vòng 1 ngày
Một pull request liên quan đã được merge.
- #1983 của @fglock — đã merge
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start by reading the PerlOnJava XS loading path and the upstream Scalar::Util::Numeric 0.40 wrapper and XS implementation; the issue does not name project files or tests. Compare each exported predicate's behavior with system Perl, then add project-owned API regression coverage and run the Data-TableData-Object 0.116 suite on both backends. Done means the module loads without native XS and matches the stated classification and return conventions.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add PerlOnJava support for Scalar::Util::Numeric 0.40. This CPAN module currently fails to load because it is implemented in XS and PerlOnJava has no Java XS implementation for it.
Evidence
In CPAN random tester run 20261103-123832-91742, distribution Data-TableData-Object 0.116 passed its complete upstream suite under system Perl 5.42.2 (8 files, 102 tests). Under PerlOnJava, 5 of 8 test programs failed: the compile checks and the aoaos, aohos, aos, and hash tests. All failures stem from loading Scalar::Util::Numeric: Can't load loadable object ... no Java XS implementation available.
The MetaCPAN reverse dependency page reports 56 released dependent distributions, including 17 released on or after 2023-11-04 (the three-year recency window used by the project’s CPAN port-priority report). Recent examples include App-CSVUtils, Tk-AppWindow, App-pause, Bio-Gonzales, and Data-TableData-Object.
References:
Porting scope
The 0.40 Perl wrapper loads XS directly. The XS implementation calls Perl's grok_number and exposes numeric classification through isnum, isint, isuv, isbig, isfloat, isneg, isinf, and isnan. The module also contains Windows-specific recognition for 1.#INF, -1.#INF, and 1.#IND spellings. Provide compatible behavior on PerlOnJava, either through a pure-Perl-compatible provider or a Java implementation, without requiring native XS loading.
Acceptance criteria
use Scalar::Util::Numericand all exported functions work on the JVM and interpreter backends without an XS load failure.- Classification results match the upstream module/system Perl for ordinary numbers, integer and UV boundaries, large values, decimal/exponent forms, signs, infinities, NaN, undefined values, and stringified or overloaded values where supported by the module.
- Preserve the documented return conventions, including
isintreturning-1,1, or0and the boolean return values of the other predicates. - Add project-owned regression coverage for the public API and validate expected behavior against system Perl.
- Re-run the
Data-TableData-Object0.116 upstream suite on both PerlOnJava backends.
- Ngôn ngữ chính
- Perl
- Star
- 65
- Fork
- 8
- Merge trung bình
- 5 giờ 54 phút
- Pull request đã merge (30 ngày)
- 184
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fglock/PerlOnJava
-
area:runtime documentation enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
fglock/PerlOnJava#1579 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:backend bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fglock/PerlOnJava#1981 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:runtime bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 57/100
fglock/PerlOnJava#1980 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:parser bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
fglock/PerlOnJava#1979 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
perf: continue eval STRING optimization work (follow-up to #1940)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
fglock/PerlOnJava#1961 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fglock/PerlOnJava
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
libwww-perl/HTTP-Message#236 ·
-
1.severity: security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
wave-followup
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
benchmarks/README: 'perl BNG2.pl model.bngl' runs the whole protocol, not just generate_networkĐang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày