Skip to content
Permalink
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
description
A collection of examples that we and others have created over time.

Examples

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

i64

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.

libm

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

parse

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/built-with-assemblyscript.md" %}

You can’t perform that action at this time.