Runtime Environment
Ink Mini Programs currently only run on smart glasses with displays, such as Rokid Glasses.
The script execution environment and the environment used for component rendering differ across platforms, resulting in performance differences.
Platform Differences
| Runtime Environment | Logic Layer (JavaScript) | View Layer (View) |
|---|---|---|
| Android | QuickJS | InkView (Self-developed) |
| macOS | QuickJS | InkView (Self-developed) |
Avoiding Differences
Although the runtime environments are very similar, there are still some differences:
- Inconsistent JavaScript Syntax and API Support: Developers can avoid syntax issues by enabling ES6 to ES5 transformation. Additionally, the Mini Program base library includes necessary Polyfills to compensate for API differences.
- Inconsistent WXSS Rendering: Although most issues can be avoided by enabling style auto-completion, it is still recommended that developers check the actual performance of the Mini Program on each platform.
DevTools is for debugging purposes only; the final performance should be based on the client.