Skip to content

Latest commit

 

History

History
 
 

game-of-life

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example: Conway's Game of Life

Uses: @esmbly/transformer-jsdoc, @esmbly-transformer-wasm, memory

Summary

This example shows how the Conway's Game of Life (ported from the AssemblyScript project to JSDoc) can be transformed to WebAssembly by chaining @esmbly/transformer-jsdoc and @esmbly/transformer-wasm.

# Input (JavaScript with JSDoc comments)
src/index.js
src/config.js

# Output (TypeScript, AssemblyScript, WebAssembly)
dist/index.ts
dist/index.as.ts
dist/config.ts
dist/config.as.ts
dist/out.wasm

Transforming the example

yarn run esmbly run