Crosswalk 11 Beta: SIMD updates, Chromium 40, Service Worker
Crosswalk 11 for Android has entered the Beta channel. This release sees an update to Chromium 40 and introduces some new functionality in the SIMD.js API. As usual, we welcome feedback on the crosswalk-help mailing list or JIRA.
Chromium 40 and Service Worker
Crosswalk 11 is rebased to Chromium 40, which introduces the Service Worker API. Service Worker is a powerful API that can be used to improve the offline experience of applications that access data across a network.
Two APIs for use within the service worker are included. The Fetch API which allows to make cross-origin network requests and return the responses as well as the Cache API which makes it possible to save fetched responses and return the from the cache next time the resource is requested, while bypassing the network and thus making the app work offline.
Only a subset of the Cache API is supported for now but full compatibility with the spec can be reached by using a polyfill.
Below are some useful resources about Service Worker, we are eager to hear how you will use the API for your applications!
- http://blog.chromium.org/2014/12/chrome-40-beta-powerful-offline-and.html
- https://github.com/w3c-webmob/ServiceWorkersDemos
- http://www.chromium.org/blink/serviceworker
For a list of new features in Chromium 40, check the Chromium Dashboard
SIMD updates
The SIMD.js API now implements load and store of data types. These APIs allow developers to load or store all or partial elements of SIMD data from or to variable typed arrays and are important for several use cases:
- load/store SIMD data from/to non 16 bytes aligned memory.
- load/store 1, 2 or 3 float32/int32 packed data structure from/to memory to/from SIMD types.
- enable Emscripten (https://github.com/kripken/emscripten) generated SIMD.js code.
APIs include:
SIMD.float32x4.load
SIMD.float32x4.loadX
SIMD.float32x4.loadXY
SIMD.float32x4.loadXYZ
SIMD.float32x4.store
SIMD.float32x4.storeX
SIMD.float32x4.storeXY
SIMD.float32x4.storeXYZ
SIMD.float64x2.load
SIMD.float64x2.loadX
SIMD.float64x2.store
SIMD.float64x2.storeX
SIMD.int32x4.load
SIMD.int32x4.loadX
SIMD.int32x4.loadXY
SIMD.int32x4.loadXYZ
SIMD.int32x4.store
SIMD.int32x4.storeX
SIMD.int32x4.storeXY
SIMD.int32x4.storeXYZ
Download Crosswalk 11 from the Beta Channel
Get more hybrid app secrets
Build powerful hybrid apps for Android or Cordova / PhoneGap more reliably with tips from the Intel Crosswalk team.
English
