Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (20 sloc) 1.82 KB
A collection of examples that we and others have created over time.


The repository contains a set of examples, mostly making use of AssemblyScript's low-level capabilities.

Plain examples

Conway's Game Of Life (demo)

An implementation of the game of life with slight modifications. Updates an image buffer in memory, that is then presented on a canvas.

Mandelbrot Set (demo)

Computes 2048 offsets of a color gradient in memory, line by line, and presents the set using the gradient's actual colors, as computed on the JavaScript side, on a canvas.

Useful libraries


Exposes WebAssembly's native i64 operations to JavaScript by means of splitting values into its low and high 32 bits and performing the respective operations on the full 64 bits.


AssemblyScript's native math routines as a library. Both double (f64) and single precision (f32) variants that work very much like JavaScript's Math.


A WebAssembly binary parser in WebAssembly itself, evaluating a WebAssembly binary in memory. Useful to quickly evaluate the sections contained in a .wasm file.

Additional resources

For a list of more sophisticated open source projects using AssemblyScript, see:

{% page-ref page="community/" %}

You can’t perform that action at this time.