Skip to content

Add generated ORM repositories and CASE query expressions - #6007

Merged
shai-almog merged 8 commits into
masterfrom
orm-generated-repositories-5987
Oct 12, 2026
Merged

shai-almog merged 8 commits into
masterfrom
orm-generated-repositories-5987

Conversation

@shai-almog

@shai-almog shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Applications currently need handwritten repository implementations over managed sessions, and JPQL lacks CASE expressions for conditional aggregates. This adds build-time generated repositories with explicit entity/key types, CRUD, compound derived find/count/exists/delete methods, ordered paging, locked lookups, declared JPQL, and named-parameter native SQL. The shared query parser supports searched and simple CASE expressions, including SUM(CASE ...).

Callers use Repositories.create(Interface.class, session), so they compile before implementations are generated. The DAO bootstrap installs direct factories; client repositories require only the core runtime. Repositories reuse Session transaction ownership and error handling. Bulk modifications always flush first and clear the persistence context after execution. The developer guide documents supported signatures, query syntax, typing/null rules, and transaction/locking behavior. No runtime scanning or Hibernate dependency is introduced.

The generated repository example is exercised by the existing BackendOrmTest integration suite. Its CI database services cover PostgreSQL 16, MySQL 8.0, and MariaDB 10.11, alongside SQLite. The workflow path filters now include the repository API package.

Validation:

  • 237 focused Java 8 tests passed across client sessions, backend sessions, PostgreSQL integration, and annotation processing, including a forked client build without the backend artifact.
  • Local ParparVM application: 152 SQLite checks and 151 PostgreSQL checks passed, including generated repository factories.
  • JDK 17 Error Prone passed for core and both backend implementations; backend PMD/Checkstyle/SpotBugs and developer-guide LanguageTool/Vale/structure checks are clean. QueryRows retains standard List equality, with a narrowly documented SpotBugs exception and a symmetry regression test.
  • MySQL/MariaDB were unavailable locally; their results are pending CI. The Windows performance gate is also being checked again on the new head; this PR does not change the failing translator/recursion benchmark sources or their thresholds.

Fixes #5987.

@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T05:45:48.426801Z 194e0b8 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d761abc87b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/orm/NativeQueryImpl.java Outdated
Comment thread CodenameOne/src/com/codename1/impl/orm/NativeQueryImpl.java Outdated
@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 170 screenshots: 170 matched.

Native Android coverage

  • 📊 Line coverage: 16.01% (26002/162390 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 14.37% (122147/850229), branch 9.91% (8466/85441), complexity 7.81% (6525/83503), method 11.59% (4648/40094), class 19.78% (960/4853)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6367 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.ClassReader – 0.00% (0/1524 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.MethodWriter – 0.00% (0/922 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/736 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • okio.okio.Buffer – 0.00% (0/687 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/625 lines covered)
      • com.codename1.androidcompat.rt.com.codename1.androidcompat.rt.TextXmlPullParser – 0.00% (0/623 lines covered)
      • com.codename1.androidcompat.androidx.constraintlayout.core.widgets.com.codename1.androidcompat.androidx.constraintlayout.core.widgets.Flow – 0.00% (0/576 lines covered)

✅ Native Android screenshot tests passed.

Native Android coverage

  • 📊 Line coverage: 16.01% (26002/162390 lines covered) [HTML preview] (artifact android-coverage-report, jacocoAndroidReport/html/index.html)
    • Other counters: instruction 14.37% (122147/850229), branch 9.91% (8466/85441), complexity 7.81% (6525/83503), method 11.59% (4648/40094), class 19.78% (960/4853)
    • Lowest covered classes
      • kotlin.collections.kotlin.collections.ArraysKt___ArraysKt – 0.00% (0/6367 lines covered)
      • kotlin.collections.unsigned.kotlin.collections.unsigned.UArraysKt___UArraysKt – 0.00% (0/2384 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.ClassReader – 0.00% (0/1524 lines covered)
      • org.jacoco.agent.rt.internal_0e20598.asm.org.jacoco.agent.rt.internal_0e20598.asm.MethodWriter – 0.00% (0/922 lines covered)
      • kotlin.sequences.kotlin.sequences.SequencesKt___SequencesKt – 0.00% (0/736 lines covered)
      • com.google.common.cache.com.google.common.cache.LocalCache$Segment – 0.00% (0/726 lines covered)
      • okio.okio.Buffer – 0.00% (0/687 lines covered)
      • kotlin.text.kotlin.text.StringsKt___StringsKt – 0.00% (0/625 lines covered)
      • com.codename1.androidcompat.rt.com.codename1.androidcompat.rt.TextXmlPullParser – 0.00% (0/623 lines covered)
      • com.codename1.androidcompat.androidx.constraintlayout.core.widgets.com.codename1.androidcompat.androidx.constraintlayout.core.widgets.Flow – 0.00% (0/576 lines covered)

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend scalar fallback (no native SIMD)
SIMD int-add (64K x300) java 246ms / native 256ms = 0.9x speedup
SIMD float-mul (64K x300) java 126ms / native 141ms = 0.8x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 79.000 ms
Base64 CN1 decode 87.000 ms
Base64 native encode 454.000 ms
Base64 encode ratio (CN1/native) 0.174x (82.6% faster)
Base64 native decode 273.000 ms
Base64 decode ratio (CN1/native) 0.319x (68.1% faster)
Image encode benchmark status skipped (SIMD unsupported)

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Continuous Quality Report

Test & Coverage

Static Analysis

  • SpotBugs [Report archive]
    • ✅ ByteCodeTranslator: 0 findings (no issues)
    • ✅ android: 0 findings (no issues)
    • ✅ android-compat: 0 findings (no issues)
    • ✅ android-res-compiler: 0 findings (no issues)
    • ✅ backend: 0 findings (no issues)
    • ✅ backend-test: 0 findings (no issues)
    • ✅ build-engine: 0 findings (no issues)
    • ✅ build-hint-catalog: 0 findings (no issues)
    • ✅ build-hint-tools: 0 findings (no issues)
    • ✅ codenameone-gradle-plugin: 0 findings (no issues)
    • ✅ codenameone-maven-plugin: 0 findings (no issues)
    • ✅ core-unittests: 0 findings (no issues)
    • ✅ ios: 0 findings (no issues)
    • ✅ javac: 0 findings (no issues)
    • ✅ project-model: 0 findings (no issues)
  • ✅ PMD: 0 findings (no issues) [Report archive]
  • ✅ Checkstyle: 0 findings (no issues) [Report archive]

Generated automatically by the PR CI workflow.

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 185 screenshots: 185 matched.
Native Windows port, REAL shipping pipeline: the hellocodenameone screenshot suite rendered by a binary CROSS-COMPILED on Linux (clang-cl + xwin, WebView2 linked) and RUN on a Windows x64 runner. Compared against the in-repo baseline in scripts/windows/screenshots.

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 44ms / native 3ms = 14.6x speedup
SIMD float-mul (64K x300) java 45ms / native 3ms = 15.0x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 64.000 ms
Base64 CN1 decode 77.000 ms
Base64 SIMD encode 95.000 ms
Base64 encode ratio (SIMD/CN1) 1.484x (48.4% slower)
Base64 SIMD decode 77.000 ms
Base64 decode ratio (SIMD/CN1) 1.000x (0.0% slower)
Image encode benchmark iterations 100
Image createMask (SIMD off) 9.000 ms
Image createMask (SIMD on) 5.000 ms
Image createMask ratio (SIMD on/off) 0.556x (44.4% faster)
Image applyMask (SIMD off) 24.000 ms
Image applyMask (SIMD on) 24.000 ms
Image applyMask ratio (SIMD on/off) 1.000x (0.0% slower)
Image modifyAlpha (SIMD off) 29.000 ms
Image modifyAlpha (SIMD on) 21.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.724x (27.6% faster)
Image modifyAlpha removeColor (SIMD off) 31.000 ms
Image modifyAlpha removeColor (SIMD on) 17.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.548x (45.2% faster)

@github-actions

Copy link
Copy Markdown
Contributor

Cloudflare Preview

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 185 screenshots: 185 matched.
Native Windows port (x64 / Intel-AMD): full hellocodenameone screenshot suite rendered offscreen with Direct2D/DirectWrite, plus the real benchmarks (base64 native/CN1/SIMD, image createMask/applyMask/modifyAlpha/PNG/JPEG, SSE2 SIMD kernels). Compared against the in-repo baseline in scripts/windows/screenshots.

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 63ms / native 4ms = 15.7x speedup
SIMD float-mul (64K x300) java 57ms / native 4ms = 14.2x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 86.000 ms
Base64 CN1 decode 90.000 ms
Base64 SIMD encode 113.000 ms
Base64 encode ratio (SIMD/CN1) 1.314x (31.4% slower)
Base64 SIMD decode 104.000 ms
Base64 decode ratio (SIMD/CN1) 1.156x (15.6% slower)
Image encode benchmark iterations 100
Image createMask (SIMD off) 7.000 ms
Image createMask (SIMD on) 2.000 ms
Image createMask ratio (SIMD on/off) 0.286x (71.4% faster)
Image applyMask (SIMD off) 18.000 ms
Image applyMask (SIMD on) 18.000 ms
Image applyMask ratio (SIMD on/off) 1.000x (0.0% slower)
Image modifyAlpha (SIMD off) 37.000 ms
Image modifyAlpha (SIMD on) 25.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.676x (32.4% faster)
Image modifyAlpha removeColor (SIMD off) 36.000 ms
Image modifyAlpha removeColor (SIMD on) 44.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 1.222x (22.2% slower)

ParparVM vs HotSpot (JDK 25): Windows x64

Runner CPU: AMD64 Family 25 Model 1 Stepping 1, AuthenticAMD (baseline windows-x64@amd64-family-25-model-1-authenticamd)

Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 15% (time) / 15% (RAM) away from its baseline in vm/selfhost/perf-baseline/ fails: above it is a regression, below it an improvement that has to be rebaselined (a row whose calibration runs were noisier carries a wider tolerance), and for RAM the change must also exceed 0.05x in absolute terms. Both run unpinned on all of the runner's CPUs, with their own default thread counts.

Benchmark Cores Time RAM Status
hello (WinHelloMain) 4 1.19x (base 1.22x, -2.2%) 0.85x (base 0.94x, -9.8%) ok
translator (self) 4 0.55x (base 0.60x, -9.6%) 0.55x (base 0.54x, +1.2%) ok
intArithmetic 4 1.10x (base 1.10x, -0.3%) 0.06x (base 0.06x, +0.1%) ok
longArithmetic 4 1.08x (base 1.08x, -0.1%) 0.05x (base 0.05x, +1.2%) ok
mathTranscendental 4 0.78x (base 0.79x, -0.9%) 0.06x (base 0.06x, +0.3%) ok
arraySequential 4 1.33x (base 1.36x, -2.2%) 0.39x (base 0.39x, +0.1%) ok
arrayRandom 4 0.98x (base 1.06x, -7.3%) 0.23x (base 0.23x, +0.0%) ok
objectAllocation 4 1.49x (base 1.56x, -4.7%) 0.30x (base 0.39x, -21.8%) ok
valueEscape 4 0.10x (base 0.10x, +0.4%) 0.05x (base 0.04x, +2.3%) ok
hashMapChurn 4 1.88x (base 1.80x, +4.6%) 0.09x (base 0.09x, -3.3%) ok
stringBuilding 4 1.34x (base 1.22x, +9.8%) 0.27x (base 0.32x, -17.3%) ok
recursion 4 1.45x (base 1.49x, -2.8%) 0.06x (base 0.06x, -0.8%) ok
quicksort 4 1.10x (base 1.13x, -3.3%) 0.12x (base 0.12x, -0.4%) ok

Result: no regression

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 185 screenshots: 185 matched.
Native Linux port (x64), GTK3/Cairo/Pango, ParparVM bytecode-to-C (no JVM): the hellocodenameone screenshot suite rendered by a native ELF built + run on the GitHub x64 runner. Baseline: scripts/linux/screenshots.

ParparVM vs HotSpot (JDK 25): Linux x64

Runner CPU: AMD EPYC 7763 64-Core Processor (baseline linux-x64@amd-epyc-7763-64-core-processor)

Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 15% (time) / 15% (RAM) away from its baseline in vm/selfhost/perf-baseline/ fails: above it is a regression, below it an improvement that has to be rebaselined (a row whose calibration runs were noisier carries a wider tolerance), and for RAM the change must also exceed 0.05x in absolute terms. Both run unpinned on all of the runner's CPUs, with their own default thread counts.

Benchmark Cores Time RAM Status
hello (LinuxHelloMain) 4 0.90x (base 0.85x, +6.5%) 0.88x (base 1.02x, -13.4%) ok
translator (self) 4 0.51x (base 0.52x, -1.8%) 0.47x (base 0.52x, -8.7%) ok
intArithmetic 4 1.10x (base 1.12x, -1.2%) 0.06x (base 0.06x, -0.0%) ok
longArithmetic 4 1.14x (base 1.08x, +5.2%) 0.07x (base 0.05x, +36.6%) ok
mathTranscendental 4 1.08x (base 1.08x, +0.1%) 0.06x (base 0.07x, -23.9%) ok
arraySequential 4 2.34x (base 2.00x, +16.6%) 0.36x (base 0.36x, -0.3%) ok
arrayRandom 4 1.15x (base 0.91x, +26.5%) 0.23x (base 0.21x, +9.5%) ok
objectAllocation 4 1.66x (base 1.65x, +0.7%) 0.31x (base 0.37x, -16.0%) ok
valueEscape 4 0.10x (base 0.10x, -0.3%) 0.04x (base 0.04x, -1.7%) ok
hashMapChurn 4 1.44x (base 1.48x, -2.9%) 0.09x (base 0.09x, -0.6%) ok
stringBuilding 4 1.44x (base 1.39x, +3.4%) 0.26x (base 0.26x, -0.3%) ok
recursion 4 1.39x (base 1.25x, +10.4%) 0.06x (base 0.08x, -25.8%) ok
quicksort 4 1.09x (base 1.07x, +1.8%) 0.11x (base 0.11x, -1.9%) ok

Result: no regression

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 185 screenshots: 185 matched.
Native Linux port (arm64), GTK3/Cairo/Pango, ParparVM bytecode-to-C (no JVM): the hellocodenameone screenshot suite rendered by a native ELF built + run on the GitHub arm64 runner. Baseline: scripts/linux/screenshots-arm.

ParparVM vs HotSpot (JDK 25): Linux arm64

Runner CPU: Neoverse-N2 (baseline linux-arm64@neoverse-n2)

Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 15% (time) / 15% (RAM) away from its baseline in vm/selfhost/perf-baseline/ fails: above it is a regression, below it an improvement that has to be rebaselined (a row whose calibration runs were noisier carries a wider tolerance), and for RAM the change must also exceed 0.05x in absolute terms. Both run unpinned on all of the runner's CPUs, with their own default thread counts.

Benchmark Cores Time RAM Status
hello (LinuxHelloMain) 4 0.99x (base 0.93x, +5.8%) 0.94x (base 0.87x, +8.0%) ok
translator (self) 4 0.74x (base 0.70x, +5.3%) 0.46x (base 0.45x, +1.8%) ok
intArithmetic 4 1.04x (base 1.04x, -0.1%) 0.03x (base 0.03x, +0.2%) ok
longArithmetic 4 0.79x (base 0.79x, -0.1%) 0.03x (base 0.03x, -0.8%) ok
mathTranscendental 4 1.10x (base 1.10x, -0.0%) 0.03x (base 0.03x, -2.1%) ok
arraySequential 4 0.35x (base 0.36x, -3.0%) 0.37x (base 0.37x, +0.1%) ok
arrayRandom 4 0.93x (base 0.94x, -0.4%) 0.20x (base 0.20x, -0.3%) ok
objectAllocation 4 1.93x (base 1.77x, +9.3%) 0.37x (base 0.38x, -3.4%) ok
valueEscape 4 0.51x (base 0.51x, -0.1%) 0.03x (base 0.03x, +0.4%) ok
hashMapChurn 4 0.84x (base 0.84x, +0.2%) 0.12x (base 0.12x, -1.1%) ok
stringBuilding 4 1.36x (base 1.36x, +0.3%) 0.27x (base 0.26x, +1.8%) ok
recursion 4 1.42x (base 1.43x, -1.2%) 0.03x (base 0.04x, -0.7%) ok
quicksort 4 1.00x (base 0.99x, +0.8%) 0.09x (base 0.09x, +1.4%) ok

Result: no regression

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 185 screenshots: 185 matched.
Native Windows port (arm64 / Apple Silicon - Arm): full hellocodenameone screenshot suite rendered offscreen with Direct2D/DirectWrite, plus the real benchmarks (base64 native/CN1/SIMD, image createMask/applyMask/modifyAlpha/PNG/JPEG, NEON SIMD kernels). Compared against the in-repo baseline in scripts/windows/screenshots.

Benchmark Results

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 53ms / native 3ms = 17.6x speedup
SIMD float-mul (64K x300) java 54ms / native 2ms = 27.0x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path gated to scalar (CPU autovectorizes scalar; explicit SIMD not beneficial here)
Base64 CN1 encode 60.000 ms
Base64 CN1 decode 70.000 ms
Base64 SIMD encode 78.000 ms
Base64 encode ratio (SIMD/CN1) 1.300x (30.0% slower)
Base64 SIMD decode 72.000 ms
Base64 decode ratio (SIMD/CN1) 1.029x (2.9% slower)
Image encode benchmark iterations 100
Image createMask (SIMD off) 6.000 ms
Image createMask (SIMD on) 2.000 ms
Image createMask ratio (SIMD on/off) 0.333x (66.7% faster)
Image applyMask (SIMD off) 20.000 ms
Image applyMask (SIMD on) 18.000 ms
Image applyMask ratio (SIMD on/off) 0.900x (10.0% faster)
Image modifyAlpha (SIMD off) 18.000 ms
Image modifyAlpha (SIMD on) 8.000 ms
Image modifyAlpha ratio (SIMD on/off) 0.444x (55.6% faster)
Image modifyAlpha removeColor (SIMD off) 16.000 ms
Image modifyAlpha removeColor (SIMD on) 12.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.750x (25.0% faster)

ParparVM vs HotSpot (JDK 25): Windows arm64

Runner CPU: ARMv8 (64-bit) Family 8 Model D49 Revision 0, MICROSOFT CORPORATION (baseline windows-arm64@armv8-64-bit-family-8-model-d49-microsoft-corporation)

Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 15% (time) / 15% (RAM) away from its baseline in vm/selfhost/perf-baseline/ fails: above it is a regression, below it an improvement that has to be rebaselined (a row whose calibration runs were noisier carries a wider tolerance), and for RAM the change must also exceed 0.05x in absolute terms. Both run unpinned on all of the runner's CPUs, with their own default thread counts.

Benchmark Cores Time RAM Status
hello (WinHelloMain) 4 1.11x (base 1.11x, +0.2%) 0.86x (base 0.97x, -11.4%) ok
translator (self) 4 0.82x (base 0.84x, -2.0%) 0.43x (base 0.45x, -5.2%) ok
intArithmetic 4 1.04x (base 1.04x, +0.0%) 0.06x (base 0.06x, +1.1%) ok
longArithmetic 4 0.79x (base 0.80x, -0.4%) 0.06x (base 0.06x, +1.5%) ok
mathTranscendental 4 0.72x (base 0.72x, -0.3%) 0.06x (base 0.06x, +0.1%) ok
arraySequential 4 0.35x (base 0.46x, -22.3%) 0.39x (base 0.39x, -0.0%) ok
arrayRandom 4 0.94x (base 0.94x, +0.2%) 0.23x (base 0.23x, +0.0%) ok
objectAllocation 4 1.89x (base 2.81x, -32.6%) 0.33x (base 0.43x, -23.0%) ok
valueEscape 4 0.76x (base 0.76x, +0.1%) 0.05x (base 0.05x, +1.7%) ok
hashMapChurn 4 0.99x (base 0.98x, +0.1%) 0.11x (base 0.12x, -7.6%) ok
stringBuilding 4 1.54x (base 1.43x, +7.9%) 0.27x (base 0.27x, -0.5%) ok
recursion 4 1.49x (base 1.46x, +1.5%) 0.06x (base 0.07x, -0.7%) ok
quicksort 4 1.00x (base 1.00x, +0.3%) 0.12x (base 0.12x, -0.1%) ok

Result: no regression

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ ByteCodeTranslator Quality Report

Test & Coverage

  • ✅ Tests: 823 total, 0 failed, 57 skipped

Benchmark Results

  • Execution Time: 8169 ms

  • Hotspots (Top 20 sampled methods):

    • 10.03% com.codename1.tools.translator.BytecodeMethod.equals (125 samples)
    • 6.34% java.lang.Object.hashCode (79 samples)
    • 6.34% java.lang.System.identityHashCode (79 samples)
    • 4.90% com.codename1.tools.translator.IteratorEscape.ctorOnlyStoresParamsIntoThis (61 samples)
    • 3.29% com.codename1.tools.translator.IteratorEscape.mangle (41 samples)
    • 3.05% com.codename1.tools.translator.JavascriptReachability.enqueueResolved (38 samples)
    • 2.81% java.lang.StringBuilder.append (35 samples)
    • 2.73% java.util.AbstractCollection.containsAll (34 samples)
    • 2.65% java.util.ArrayList.indexOf (33 samples)
    • 1.93% java.lang.String.equals (24 samples)
    • 1.85% com.codename1.tools.translator.BytecodeMethod.optimize (23 samples)
    • 1.77% com.codename1.tools.translator.classfile.analysis.Frame.execute (22 samples)
    • 1.69% com.codename1.tools.translator.ByteCodeClass.fillVirtualMethodTable (21 samples)
    • 1.61% java.util.HashMap.putVal (20 samples)
    • 1.52% com.codename1.tools.translator.ByteCodeClass.hasDeclaredMethod (19 samples)
    • 1.44% com.codename1.tools.translator.bytecodes.Invoke.resolveDirectTarget (18 samples)
    • 1.44% com.codename1.tools.translator.Parser.cullMethods (18 samples)
    • 1.44% com.codename1.tools.translator.BytecodeMethod.updateInlinableFieldDependencies (18 samples)
    • 1.04% java.io.FileOutputStream.open0 (13 samples)
    • 1.04% java.util.HashMap.hash (13 samples)
  • ⚠️ Coverage report not generated.

Static Analysis

  • ✅ SpotBugs: no findings (report was not generated by the build).
  • ⚠️ PMD report not generated.
  • ⚠️ Checkstyle report not generated.

Generated automatically by the PR CI workflow.

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 168 screenshots: 168 matched.
✅ Native iOS Metal screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 1916 seconds

Build and Run Timing

Metric Duration
Simulator Boot 2000 ms
Simulator Boot (Run) 1000 ms
App Install 16000 ms
App Launch 4000 ms
Test Execution 445000 ms

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 498ms / native 8ms = 62.2x speedup
SIMD float-mul (64K x300) java 379ms / native 11ms = 34.4x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 143.000 ms
Base64 CN1 decode 173.000 ms
Base64 native encode 1493.000 ms
Base64 encode ratio (CN1/native) 0.096x (90.4% faster)
Base64 native decode 1222.000 ms
Base64 decode ratio (CN1/native) 0.142x (85.8% faster)
Base64 SIMD encode 158.000 ms
Base64 encode ratio (SIMD/CN1) 1.105x (10.5% slower)
Base64 SIMD decode 116.000 ms
Base64 decode ratio (SIMD/CN1) 0.671x (32.9% faster)
Base64 encode ratio (SIMD/native) 0.106x (89.4% faster)
Base64 decode ratio (SIMD/native) 0.095x (90.5% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 12.000 ms
Image createMask (SIMD on) 6.000 ms
Image createMask ratio (SIMD on/off) 0.500x (50.0% faster)
Image applyMask (SIMD off) 141.000 ms
Image applyMask (SIMD on) 544.000 ms
Image applyMask ratio (SIMD on/off) 3.858x (285.8% slower)
Image modifyAlpha (SIMD off) 100.000 ms
Image modifyAlpha (SIMD on) 127.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.270x (27.0% slower)
Image modifyAlpha removeColor (SIMD off) 223.000 ms
Image modifyAlpha removeColor (SIMD on) 90.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.404x (59.6% faster)

@shai-almog

shai-almog commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

Apple Watch (watchOS / Core Graphics)

Compared 236 screenshots: 235 matched, 1 updated.

  • AndroidCompatWidgets — updated screenshot. Screenshot differs (416x496 px, bit depth 8).

    AndroidCompatWidgets
    Preview info: JPEG preview quality 70; JPEG preview quality 70.
    Full-resolution PNG saved as AndroidCompatWidgets.png in workflow artifacts.

@shai-almog

shai-almog commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 167 screenshots: 167 matched.
✅ Native Mac screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 676 seconds

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 56ms / native 6ms = 9.3x speedup
SIMD float-mul (64K x300) java 65ms / native 3ms = 21.6x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 81.000 ms
Base64 CN1 decode 99.000 ms
Base64 native encode 888.000 ms
Base64 encode ratio (CN1/native) 0.091x (90.9% faster)
Base64 native decode 566.000 ms
Base64 decode ratio (CN1/native) 0.175x (82.5% faster)
Base64 SIMD encode 78.000 ms
Base64 encode ratio (SIMD/CN1) 0.963x (3.7% faster)
Base64 SIMD decode 72.000 ms
Base64 decode ratio (SIMD/CN1) 0.727x (27.3% faster)
Base64 encode ratio (SIMD/native) 0.088x (91.2% faster)
Base64 decode ratio (SIMD/native) 0.127x (87.3% faster)
Image encode benchmark iterations 100
Image createMask (SIMD off) 12.000 ms
Image createMask (SIMD on) 4.000 ms
Image createMask ratio (SIMD on/off) 0.333x (66.7% faster)
Image applyMask (SIMD off) 81.000 ms
Image applyMask (SIMD on) 54.000 ms
Image applyMask ratio (SIMD on/off) 0.667x (33.3% faster)
Image modifyAlpha (SIMD off) 52.000 ms
Image modifyAlpha (SIMD on) 66.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.269x (26.9% slower)
Image modifyAlpha removeColor (SIMD off) 86.000 ms
Image modifyAlpha removeColor (SIMD on) 79.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.919x (8.1% faster)

Clear all core PMD and Checkstyle findings and include compiled repository examples from docs/demos. Wait for the worker to finish opening a native string picker before asserting first-click success. Refresh the watch widget baseline from the CI artifact: only the left background gutter changes, with all widget pixels preserved.
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c82e5ca28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/orm/NativeQueryImpl.java Outdated
@shai-almog

shai-almog commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 206 screenshots: 206 matched.
✅ JavaScript-port screenshot tests passed.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1c82e5ca28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/orm/JpqlQueryImpl.java
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Developer Guide build artifacts are available for download from this workflow run:

Developer Guide quality checks:

  • AsciiDoc linter: No issues found (report)
  • Vale: No alerts found (report)
  • Paragraph capitalization: No paragraph capitalization issues (report)
  • LanguageTool: No grammar matches (report)
  • Image references: No unused images detected (report)

@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@shai-almog

shai-almog commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Compared 179 screenshots: 179 matched.
✅ Native Mac screenshot tests passed.

Benchmark Results

  • VM Translation Time: 0 seconds
  • Compilation Time: 380 seconds

Detailed Performance Metrics

Metric Duration
SIMD kernel backend SSE2 (x64) / NEON (arm64) native kernels
SIMD int-add (64K x300) java 58ms / native 3ms = 19.3x speedup
SIMD float-mul (64K x300) java 68ms / native 2ms = 34.0x speedup
SIMD kernel correctness PASS (native result == scalar reference)
Base64 native bridge unavailable (CN1 + SIMD + image benchmarks only)
Base64 payload size 8192 bytes
Base64 benchmark iterations 6000
Base64 SIMD byte path active (NEON-accelerated)
Base64 CN1 encode 79.000 ms
Base64 CN1 decode 64.000 ms
Image encode benchmark iterations 100
Image createMask (SIMD off) 10.000 ms
Image createMask (SIMD on) 6.000 ms
Image createMask ratio (SIMD on/off) 0.600x (40.0% faster)
Image applyMask (SIMD off) 64.000 ms
Image applyMask (SIMD on) 70.000 ms
Image applyMask ratio (SIMD on/off) 1.094x (9.4% slower)
Image modifyAlpha (SIMD off) 70.000 ms
Image modifyAlpha (SIMD on) 92.000 ms
Image modifyAlpha ratio (SIMD on/off) 1.314x (31.4% slower)
Image modifyAlpha removeColor (SIMD off) 72.000 ms
Image modifyAlpha removeColor (SIMD on) 65.000 ms
Image modifyAlpha removeColor ratio (SIMD on/off) 0.903x (9.7% faster)

ParparVM vs HotSpot (JDK 25): macOS arm64

Runner CPU: Apple M1 (Virtual) (baseline macos-arm64)

Ratios are ParparVM / JDK 25: below 1.00x ParparVM is faster (time) or smaller (RAM). Median of 5 interleaved, paired rounds; every run's output was verified. A ratio more than 15% (time) / 15% (RAM) away from its baseline in vm/selfhost/perf-baseline/ fails: above it is a regression, below it an improvement that has to be rebaselined (a row whose calibration runs were noisier carries a wider tolerance), and for RAM the change must also exceed 0.05x in absolute terms. Both run unpinned on all of the runner's CPUs, with their own default thread counts.

Benchmark Cores Time RAM Status
hello (HelloCodenameOne) 3 0.82x (base 0.96x, -14.0%) 1.29x (base 1.34x, -3.6%) ok
translator (self) 3 0.65x (base 0.62x, +4.5%) 0.60x (base 0.57x, +5.3%) ok
intArithmetic 3 0.99x (base 1.03x, -3.9%) 0.12x (base 0.12x, +0.8%) ok
longArithmetic 3 0.97x (base 1.03x, -5.5%) 0.12x (base 0.07x, +65.5%) ok
mathTranscendental 3 0.94x (base 1.01x, -6.3%) 0.12x (base 0.12x, +0.0%) ok
arraySequential 3 0.46x (base 0.42x, +8.5%) 0.53x (base 0.53x, +0.2%) ok
arrayRandom 3 0.99x (base 0.99x, +0.3%) 0.32x (base 0.32x, -0.0%) ok
objectAllocation 3 1.00x (base 1.11x, -9.9%) 0.70x (base 0.81x, -14.4%) ok
valueEscape 3 0.50x (base 0.51x, -1.0%) 0.09x (base 0.09x, +3.2%) ok
hashMapChurn 3 1.01x (base 1.18x, -14.5%) 0.08x (base 0.07x, +15.3%) ok
stringBuilding 3 0.89x (base 0.84x, +6.1%) 0.51x (base 0.46x, +9.8%) ok
recursion 3 1.25x (base 1.24x, +1.1%) 0.12x (base 0.12x, +0.5%) ok
quicksort 3 1.02x (base 1.01x, +0.6%) 0.11x (base 0.11x, -0.1%) ok

Result: no regression

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 18bb531d09

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread CodenameOne/src/com/codename1/impl/orm/NativeQueryImpl.java Outdated
Comment thread CodenameOne/src/com/codename1/impl/orm/NativeQueryImpl.java
@shai-almog

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 194e0b88c3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@shai-almog
shai-almog merged commit 310ded9 into master Oct 12, 2026
63 of 66 checks passed
@shai-almog
shai-almog deleted the orm-generated-repositories-5987 branch October 12, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RFE: Backend generated repository interfaces and expanded query support

1 participant