Proposal: deprecate JavaScriptCore as a supported Android runtime

オープン
#2,104 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, cpp, javascript
領域
ci-cd, mobile-dev

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
C++
スター
931
フォーク
169
平均マージ
2日 17時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BabylonJS/BabylonNative のほかの issue

BabylonJS/BabylonNative の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。