Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8448e70
Python: transpiler typing, runtime speedups and fixes; core JSON, has…
shai-almog Nov 27, 2026
c5d7376
Address red-team round 1: typing.cast unchecked, ABC hooks defeat isi…
shai-almog Nov 27, 2026
78ee24c
Address red-team round 2: keep import-time effects in dead-code pruni…
shai-almog Nov 27, 2026
cb1368d
Address red-team round 3: keep JavaScript SQL functions reachable and…
shai-almog Nov 27, 2026
ec46be9
Address red-team round 4: a keyword store into a name is lowered only…
shai-almog Nov 27, 2026
ffbde77
Address red-team round 5: OptionalAttribute None clears, adder keywor…
shai-almog Nov 27, 2026
7204b13
Address red-team round 6: adder keyword order covers new keywords, pr…
shai-almog Nov 27, 2026
fb59cf6
Describe measured workloads generically in comments and fixtures; dro…
shai-almog Nov 27, 2026
196e218
Fix CI: library-mode pruning, array ids for casts, SQL function callb…
shai-almog Nov 27, 2026
4b1c2ac
Remove chart2-shared-tooltip goldens: the test is disabled in Cn1ssDe…
shai-almog Nov 27, 2026
a87ab88
Retire Chart2SharedTooltipScreenshotTest from the port-status contrac…
shai-almog Nov 27, 2026
b3af4b0
Python transpiler: judge cross-module facts per connected module group
shai-almog Nov 28, 2026
97bb728
Python transpiler: thread a generator's jumps without its nested bodi…
shai-almog Nov 28, 2026
ed4c9a2
Python transpiler: keep the main block of a top-level script
shai-almog Nov 28, 2026
358242d
ParparVM: CN1_THIN_LTO switch; the Python conformance build links wit…
shai-almog Nov 29, 2026
2570564
CI: give the native Python bench job room for both stages
shai-almog Nov 29, 2026
27e2e70
Merge master into python-transpiler-fixes
shai-almog Nov 30, 2026
8d1166d
Apple suites on xcode-27: macOS goldens, watch/tv timeout, perf-gate …
shai-almog Dec 1, 2026
5a25729
Merge remote-tracking branch 'origin/master' into python-transpiler-f…
shai-almog Dec 1, 2026
111b059
Add the copyright header to ValidatorLightweightPickerScreenshotTest
shai-almog Dec 1, 2026
a077a3e
Merge remote-tracking branch 'origin/master' into python-transpiler-f…
shai-almog Dec 1, 2026
12b514a
Merge remote-tracking branch 'origin/master' into python-transpiler-f…
shai-almog Dec 1, 2026
ff72aed
Backend reactor: poll for 20 us before sleeping while busy
shai-almog Dec 1, 2026
92fd0d5
Website build: expand empty arrays safely under bash 3.2
shai-almog Dec 1, 2026
91e9f1f
Website build: compile the Skin Designer on JDK 17 locally
shai-almog Dec 1, 2026
be84c3b
Revert "Website build: compile the Skin Designer on JDK 17 locally"
shai-almog Dec 1, 2026
3ea69a0
pre-push-gates: run the site build on JDK 25 and refresh stale snapshots
shai-almog Dec 1, 2026
1ba4ac4
pre-push-gates: build the site's apps against this tree's snapshots, …
shai-almog Dec 1, 2026
39b0c2e
pre-push-gates: leave a clean tree after the site build so a pass is …
shai-almog Dec 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .github/ci/ci-members.json
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@
"CodenameOne/src/com/codename1/io/PrettyPrinter.java",
"CodenameOne/src/com/codename1/io/JSONParseCallback.java",
"CodenameOne/src/com/codename1/io/JSONSanitizer.java",
"CodenameOne/src/com/codename1/io/JSONParseException.java",
"CodenameOne/src/com/codename1/io/JSONValueFactory.java",
"CodenameOne/src/com/codename1/io/CharArrayReader.java",
"CodenameOne/src/com/codename1/util/BigInteger.java",
"CodenameOne/src/com/codename1/util/MathUtil.java",
Expand Down Expand Up @@ -534,6 +536,8 @@
"CodenameOne/src/com/codename1/io/PrettyPrinter.java",
"CodenameOne/src/com/codename1/io/JSONParseCallback.java",
"CodenameOne/src/com/codename1/io/JSONSanitizer.java",
"CodenameOne/src/com/codename1/io/JSONParseException.java",
"CodenameOne/src/com/codename1/io/JSONValueFactory.java",
"CodenameOne/src/com/codename1/io/CharArrayReader.java",
"CodenameOne/src/com/codename1/util/BigInteger.java",
"CodenameOne/src/com/codename1/util/MathUtil.java",
Expand Down
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ paths-ignore:
# CodeQL treats a `new byte[n]` filled in another method as a static IV and
# reports this sink for each of them.
- 'maven/compat-testing/src/main/java/com/codename1/compat/testing/HeadlessAes.java'
# The python-transpiler tests' JDBC stand-in for the sqlite3 bridge, a test
# double: like any database driver it runs the statement it is handed, which
# the conformance program under test wrote. Reported as SQL injection.
- 'maven/python-transpiler/src/test/java/com/codename1/python/transpiler/JvmSql.java'
2 changes: 2 additions & 0 deletions .github/workflows/errorprone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ on:
- 'maven/core/pom.xml'
- 'vm/backend/src/**/*.java'
- 'vm/backend/impl/javase/**/*.java'
- 'vm/backend/impl/javase-sqlite/**'
- 'vm/backend/impl/parparvm/**/*.java'
- 'CodenameOne/src/com/codename1/db/sql/**'
- 'maven/backend-parparvm/pom.xml'
Expand All @@ -39,6 +40,7 @@ on:
- 'maven/core/pom.xml'
- 'vm/backend/src/**/*.java'
- 'vm/backend/impl/javase/**/*.java'
- 'vm/backend/impl/javase-sqlite/**'
- 'vm/backend/impl/parparvm/**/*.java'
- 'CodenameOne/src/com/codename1/db/sql/**'
- 'maven/backend-parparvm/pom.xml'
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/python-bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ on:
# The ParparVM arm translates and compiles with these.
- 'vm/ByteCodeTranslator/**'
- 'vm/JavaAPI/**'
- 'vm/selfhost/compile-dist.sh'
# The native arm is a Linux port application (embedded, headless).
- 'Ports/LinuxPort/**'
- 'maven/linux/**'
# Transpiled Python runs on the core's classes (collections, io/gzip).
- 'CodenameOne/src/**'
- 'maven/core/**'
Expand Down Expand Up @@ -83,7 +85,7 @@ jobs:
JAVA_HOME="$JAVA_HOME_8" bash ../scripts/ci/retry.sh mvn -B -q install -DskipTests \
-Dmaven.javadoc.skip=true -Dmaven.source.skip=true \
-Dmaven.repo.local="$GITHUB_WORKSPACE/m2" \
-pl core,python-transpiler,compat-testing,backend -am
-pl core,linux,python-transpiler,compat-testing,backend -am

# Without -am: core was installed above, and re-resolving it here would
# rebuild it on the wrong JDK.
Expand Down Expand Up @@ -168,19 +170,25 @@ jobs:
name: parparvm
needs: [golden-plan, framework]
runs-on: ubuntu-24.04
timeout-minutes: 60
# Two native stages in sequence: the conformance binary (~25 min) and then
# one -O3 ThinLTO build per kernel, which alone ran past 35 min once the
# kernel set grew. 60 cancelled the job mid-measurement.
timeout-minutes: 120
env:
PYBENCH_M2: ${{ github.workspace }}/m2
CN1_DISPLAY: headless
steps:
- uses: actions/checkout@v4

- name: Use Google's copy of Maven Central first
uses: ./.github/actions/maven-central-mirror

- name: Install clang
# clang, cmake and the libraries the embedded Linux port links.
- name: Install the native toolchain
run: |
bash scripts/ci/apt-get-update.sh
sudo apt-get install -y clang time
sudo apt-get install -y clang time cmake ninja-build pkg-config \
libfreetype-dev libpng-dev libjpeg-dev zlib1g-dev libssl-dev libcurl4-openssl-dev

# The translator runs on JDK 8, the generated Java compiles on JDK 17.
- name: Set up JDK 8
Expand Down Expand Up @@ -224,11 +232,7 @@ jobs:
run: scripts/python-bench/conformance_parparvm.sh

- name: Measure and gate
# Each kernel's clang pass compiled one file at a time, six minutes
# a kernel. In parallel, with -flto=thin on the compile and the link,
# the binary is the one a single clang invocation makes.
run: |
export CN1_COMPILE_JOBS="$(nproc)"
python3 scripts/python-bench/parparvm_table.py --json python-bench-parparvm.json --check \
| tee -a "$GITHUB_STEP_SUMMARY"

Expand Down
16 changes: 15 additions & 1 deletion .github/workflows/scripts-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,10 @@ jobs:
if: ${{ !cancelled() && ((needs.select.outputs.watch == 'true') || (!inputs.watch_only && needs.select.outputs.tv == 'true')) }}
id: build-watchtv
run: ./scripts/build-ios-app.sh -q -DskipTests
timeout-minutes: 30
# One step builds the watch and the tvOS targets, which were two jobs
# of 14 and 17 minutes on macos-15; on xcode-27 together they ran past
# the 30 the single target used to need.
timeout-minutes: 50

# ---- watchOS ----
- name: Ensure watchOS simulator runtime
Expand Down Expand Up @@ -722,6 +725,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
set -u
# The iOS, watchOS and tvOS suites above leave their simulators booted;
# on this 3-core runner they took CPU from the timed rounds (one
# benchmark read 0.90x to 1.34x across five rounds). The fidelity
# step boots its own device again.
xcrun simctl shutdown all >/dev/null 2>&1 || true
ENV_FILE="${TMPDIR%/}/codenameone-tools/tools/env.sh"
if [ -f "$ENV_FILE" ]; then . "$ENV_FILE"; fi
export JDK_8_HOME="$JAVA_HOME"
Expand Down Expand Up @@ -846,6 +854,9 @@ jobs:
- name: Build fidelity app (iOS, Metal)
if: ${{ !cancelled() && (!inputs.watch_only && inputs.cn1ss_capture == '' && needs.select.outputs.fidelity == 'true') }}
env:
# The ios-27-metal fidelity goldens were measured under 27.1, as
# the Metal suite above is; unpinned, this step took 27.2.
CN1_XCODE_VERSION_PIN: '27.1'
CN1SS_FAIL_ON_MISMATCH: '1'
CN1SS_FIDELITY_EPSILON: '2.0'
CN1SS_FIDELITY_GOLDEN_SET: 'ios-27-metal'
Expand All @@ -859,6 +870,7 @@ jobs:
- name: Build simulator app
if: ${{ !cancelled() && (!inputs.watch_only && inputs.cn1ss_capture == '' && needs.select.outputs.fidelity == 'true') && steps.fid-build.outcome == 'success' }}
env:
CN1_XCODE_VERSION_PIN: '27.1'
CN1SS_FAIL_ON_MISMATCH: '1'
CN1SS_FIDELITY_EPSILON: '2.0'
CN1SS_FIDELITY_GOLDEN_SET: 'ios-27-metal'
Expand Down Expand Up @@ -890,6 +902,7 @@ jobs:
- name: Boot simulator (runtime matching the golden set)
if: ${{ !cancelled() && (!inputs.watch_only && inputs.cn1ss_capture == '' && needs.select.outputs.fidelity == 'true') && steps.fid-build.outcome == 'success' }}
env:
CN1_XCODE_VERSION_PIN: '27.1'
CN1SS_FAIL_ON_MISMATCH: '1'
CN1SS_FIDELITY_EPSILON: '2.0'
CN1SS_FIDELITY_GOLDEN_SET: 'ios-27-metal'
Expand All @@ -911,6 +924,7 @@ jobs:
- name: Run fidelity suite (simulator, Metal)
if: ${{ !cancelled() && (!inputs.watch_only && inputs.cn1ss_capture == '' && needs.select.outputs.fidelity == 'true') && steps.fid-build.outcome == 'success' }}
env:
CN1_XCODE_VERSION_PIN: '27.1'
CN1SS_FAIL_ON_MISMATCH: '1'
CN1SS_FIDELITY_EPSILON: '2.0'
CN1SS_FIDELITY_GOLDEN_SET: 'ios-27-metal'
Expand Down
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ dependency-reduced-pom.xml
# docs/developer-guide on every run, so a committed copy is both duplicated
# source and guaranteed stale. 485 files of it were committed by accident once.
/docs/website/static/developer-guide/
# The site's JavaScript apps, unzipped by scripts/website/build.sh from each
# app's own build on every run.
/docs/website/static/initializr-app/
/docs/website/static/playground-app/
/docs/website/static/skindesigner-app/
# The API reference is generated into the content tree by the Hugo doclet on
# every run of scripts/website/build.sh, one file per documented type. Roughly
# 1850 generated pages have no business in the history: the sources they are
Expand Down
24 changes: 24 additions & 0 deletions CodenameOne/src/com/codename1/annotations/Fused.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*
* Copyright (c) 2026, Codename One and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Codename One designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Codename One through http://www.codenameone.com/ if you
* need additional information or have any questions.
*/

package com.codename1.annotations;

import java.lang.annotation.ElementType;
Expand Down Expand Up @@ -32,5 +55,6 @@
/// their pixel `int[]`/`byte[]` data.
@Retention(RetentionPolicy.CLASS)
@Target(ElementType.TYPE)
@com.codename1.impl.SharedWithBackend
public @interface Fused {
}
Loading
Loading