Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Port UUID with Java UUID libraries

未關閉
#1,670 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 1 天內回覆

還沒有人認領這個 Issue。

評估

難度
5/5
預估耗時
一週以上
新手友好度
38/100
Issue 類型
功能
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
java, perl
領域
backend, testing

研究方向

Read src/main/java/org/perlonjava/runtime/perlmodule/DataUUID.java as the local reference, then compare the UUID 0.39 API and upstream contract described in the issue. Implement the Java-backed API and add project-owned tests for generation, conversions, queries, imports, and stateful options. Done means the upstream suite and UUID-dependent IPC-Manager cases pass on both JVM and interpreter backends without native compilation.

由索引模型根據 Issue 內容生成。

描述

area:cpan-port enhancement

Goal

Port CPAN UUID to PerlOnJava using Java UUID APIs and Java-side support code, so distributions that depend on UUID do not require the native XS implementation. Avoid requiring native code or an external process.

The project already targets Java 24 and has a Java-backed Data::UUID implementation at src/main/java/org/perlonjava/runtime/perlmodule/DataUUID.java that uses java.util.UUID; use it as a local implementation reference where the semantics overlap.

Compatibility scope

Implement the Perl-visible API from UUID 0.39, including the exported functions and import options documented upstream. This includes binary and textual conversion, parsing, formatting, comparison, null/type/version/variant/time queries, and UUID generation (versions 1, 3, 4, 5, 6, and 7, plus the documented aliases). Preserve Perl's 16-byte UUID representation and upstream behavior for namespace names, invalid inputs, and byte ordering. Handle the stateful :mac, :persist, and :defer options according to the upstream contract, or document any intentional compatibility limit with evidence.

Use java.util.UUID and standard Java time, digest, and randomness APIs where they match the required behavior; implement remaining UUID layouts and state in Java. Java's built-in UUID directly covers common parsing/string conversion, v3 name-based generation, v4 random generation, and UUID field access, but the port must also cover the additional upstream versions and stateful behavior.

Evidence

  • CPAN distribution: UUID 0.39; discovered as a prerequisite of IPC-Manager 0.000037 in PerlOnJava CPAN tester run 20261006-085241-91243.
  • System Perl 5.42.2: upstream suite passed, 174 files and 1,649 tests.
  • PerlOnJava: the tester could not compile UUID's XS/C sources; make failed while generating a native header. This prevented the dependency from being installed, and the downstream IPC-Manager run later timed out with UUID load failures. The timeout is not evidence of a separate PerlOnJava hang.
  • The default jperl path was exercised by the tester; interpreter behavior was not independently verified.
  • Reverse dependency evidence: 14 unique runtime dependants, 8 recent. Examples include IPC-Manager, DBIx-QuickORM, Net-NATS-Streaming-Client, and Travel-Status-DE-DBRIS.

Acceptance criteria

  • Provide a PerlOnJava implementation of the supported UUID 0.39 API without XS/native compilation.
  • Add project-owned tests for generation versions, deterministic namespace UUIDs, parse/unparse and binary round trips, comparison and field queries, imports/aliases, and relevant stateful options.
  • Validate new tests with system Perl, then pass them on both the JVM and interpreter backends.
  • Run the UUID 0.39 upstream test suite through PerlOnJava with the expected native-free implementation selected.
  • Run the dependent IPC-Manager tests far enough to confirm UUID loads and its UUID-dependent cases pass; report any unrelated environmental skips separately.
主要語言
Perl
星號
64
分支
7
平均合併
5 小時 25 分鐘
30 天內合併 PR
178

環境準備

  • 提供 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

fglock/PerlOnJava 的其他 Issue

查看 fglock/PerlOnJava 的全部 Issue

相似的 Issue

更多 Perl Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。