Proposal: deprecate JavaScriptCore as a supported Android runtime

Aperta
#2,104 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, cpp, javascript
Ambito
ci-cd, mobile-dev

Direzione di ricerca

Start by locating where the bundled Android JavaScriptCore package and its build switches are defined, plus the Android entries in the CI matrix; issue #2101 is the concrete case that motivated this. The proposal asks for a benchmark comparison of packaged V8 (JIT and JITless) on a low-memory arm64 device, so read the existing Android build and test setup before proposing numbers. "Done" here means a decision plus a documented migration path and notice period, not a code change.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Could we deprecate the bundled Android JavaScriptCore runtime, with a migration window before removing the Android build and CI jobs? Apple system JavaScriptCore is outside the scope of this proposal.

The original mobile trade-off has changed: V8 supports JITless execution and has memory and GC optimizations for low-memory devices. That gives Android embedders alternatives worth testing; it doesn't establish that one runtime wins on every app.

One concrete maintenance cost came up testing transferable ArrayBuffers in dedicated workers (#2101). On a physical first-generation Oculus Quest, the Android JSC package lacks the detach operation we need for sender-side ownership transfer. Copying the bytes without detaching would change observable JS behavior. On the same headset the packaged JIT-enabled V8 ran the worker suite. Android JSC is a bundled dependency here, unlike Apple's OS-provided framework.

Suggested decision process:

  1. Ask Android JSC users what constrains migration (ABI, policy, package size, memory budget, or features). Keep CI running during deprecation.
  2. Compare packaged V8 in normal and JITless configurations on a low-memory arm64 device: cold start, APK size, steady and peak PSS, GC pauses, Worker startup and ArrayBuffer transfer. Check required WebAssembly and Intl features separately; JITless is not a drop-in promise for either.
  3. Document a supported migration path and notice period. Remove only the Android JSC package, build switches and CI matrix entries after that period; retain Apple JSC and independent support for other Android engines.

Would maintainers and current Android JSC users support this direction? Are there workloads that should be in the comparison before deciding?

Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.