SYNOPSIS
A JavaScript Implementation of Primea HyperVisor
INSTALL
clone and run npm install
USAGE
const Hypervisor = const Message FunctionRef = const WasmContainer = // setup presistant stateconst level = const RadixTree = const db = const tree = db const hypervisor = tree containers: WasmContainer const wasm // a webassembly binary with an exported function named "main" // create an actor with a webassembly containerconst module = hypervisor // create message to send to the actor that was just createdconst message = funcRef: module funcArguments: actorId: egressid params: 'data' hypervisor // write everything to the db can create a merkle tree with a single state rootconst sr = await hypervisorconsole
API
DESIGN
Primea is an actor based system with capabilities. Its high level goals are
- Performant IPC
- Extensible, allowing for upgrades and customization
- Interoperability with existing codebases
- Deterministic execution