Proposal: deprecate JavaScriptCore as a supported Android runtime

未关闭
#2,104 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 小时
30 天内合并 PR
66

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

BabylonJS/BabylonNative 的其他 Issue

查看 BabylonJS/BabylonNative 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。