Skip to content
A Matrix effect in your terminal using AssemblyScript πŸš€ and WASI 🧩 . Deployed to WAPM πŸ“¦ .
Branch: master
Clone or download
Latest commit ec10aa2 May 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assembly Cleaned up the code to appropriately use wasa May 15, 2019
build Updated project stuff, added our wasm files May 16, 2019
docs_assets Updated the meme May 16, 2019
.gitignore Removed our wapm bin May 16, 2019
LICENSE Initial commit May 11, 2019
README.md Bolded the usage instructions May 16, 2019
package-lock.json 0.0.2 May 16, 2019
package.json 0.0.2 May 16, 2019
wapm.lock Fixed up some more stuff May 13, 2019
wapm.toml Bumped wapm to version 0.0.2 May 16, 2019

README.md

wasm-matrix

A Matrix Effect in your terminal using AssemblyScript πŸš€ and WASI 🧩 . Deployed to WAPM πŸ“¦ .

Uses the AssemblyScript WASI bindings, with some help from Wasa.

What if I told you Wasm is not web or assembly? wasm matrix demo gif

Table of Contents

Usage

Install using WAPM:

wapm install -g torch2424/wasm-matrix

And then run wasm-matrix:

wapm run wasm-matrix -l $LINES -c $COLUMNS

Caveats

Currently, in version 0.0.1 this isn't using the clock subscription, and using an old school while(true) loop to run the matrix. Thus, this will peg a core of CPU, wouldn't suggest running this on a cheap single core droplet (server). πŸ™‚

Contributing

Feel free to fork and submit PRs! Opening an issue is reccomended before starting any development, as a discussion would be nice on the idea / feature before writing code. Any help is much appreciated, and would be a ton of fun! πŸŽ‰

Setup

This project's setup is meant to follow a standard Node app. Install Node with nvm, git clone the project, and npm install, and you should be good to go!

Build your changes with: npm run build.

Run the project with the standard usage: wapm run wasm-matrix -l $LINES -c $COLUMNS.

Resources

  • AssemblyScript - Typescript(-ish) to WebAssembly Compiler.

  • Wasa - An AssemblyScript API layer for WASI system calls [WIP].

  • Wasi - System interface for WebAssembly

  • WAPM - A WebAssembly package manager built on top of Wasmer.

Special Thanks

You can’t perform that action at this time.