Port Scalar::Util::Numeric XS module
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Perl
- スター
- 65
- フォーク
- 8
- 平均マージ
- 5時間 45分
- マージ済み PR(30日)
- 184
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fglock/PerlOnJava のほかの issue
-
area:runtime documentation enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
fglock/PerlOnJava#1579 ·
メンテナーはふだん 1 日以内に返信
-
area:backend bug
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
fglock/PerlOnJava#1981 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:runtime bug
難易度 4/5 3〜5日 初心者へのやさしさ 57/100
fglock/PerlOnJava#1980 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:parser bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
fglock/PerlOnJava#1979 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
fglock/PerlOnJava#1961 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
fglock/PerlOnJava の issue をすべて見る
似ている issue
-
ai-driven-fuzzing bug claude Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linagora/lemonldap-ng-plugins#170 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
libwww-perl/HTTP-Message#236 ·
-
1.severity: security
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
wave-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100