Skip to content

WASM Bindgen

Vihan edited this page Jan 31, 2019 · 2 revisions

The VSL WASM bindgen enables VSL code to interact with JavaScript given TypeScript or WebIDL definition files. The code generates uses the VSL WASM dispatch API (source).

Dispatch API

The dispatch API bridges JS functionality to VSL through a series of functions which support cross-language memory management and passing values without creating 'glue' code. The JS implementation is available as vsl/wasm and is automatically linked with all VSL WASM code when using the native VSL WASM JS APIs.

WebIDL Support

WebIDL files can be provided however syntax extensions aren't supported. For partial interfaces, for example, they must be compiled with the source interface in order to compile properly.

TypeScript Support

TypeScript support is still in development.