-
Notifications
You must be signed in to change notification settings - Fork 0
asm.js & wasm
wangb edited this page Apr 25, 2018
·
1 revision
- subset of JavaScript, run in any js environment.
- emscripten generate plain js txt.
- only
int
andfloat
type, operation onTypedArray
for stucture data - no gc
- need js engine optimize
- aot
binary data in js:
ArrayBuffer
object is used to represent a generic, fixed-length raw binary data buffer. You cannot directly manipulate the contents of anArrayBuffer
; instead, you create one of theTypedArray
objects or aDataView
object which represents the buffer in a specific format, and use that to read and write the contents of the buffer. SoArrayBuffer
is the underlying data ofTypedArray
. This is true forBuffer
in nodejs.
- standardization of asm.js
- emscripten generate bytecode (binary format).