Class: WasmBackend

WasmBackend(wasmLayer, reportProgressCallback)

WASM backend for executing QubecTalk simulations. This backend executes QubecTalk code in a WASM web worker for high-performance execution and returns the results as parsed EngineResult objects.

Constructor

new WasmBackend(wasmLayer, reportProgressCallback)

Create a new WasmBackend instance.
Parameters:
Name Type Description
wasmLayer WasmLayer The layer for worker communication.
reportProgressCallback function Callback for progress updates.
Source:

Methods

(async) execute(simCode) → {Promise.<BackendResult>}

Execute QubecTalk simulation code.
Parameters:
Name Type Description
simCode string The QubecTalk code to execute.
Source:
Returns:
Promise resolving to backend result with CSV and parsed data.
Type
Promise.<BackendResult>