talira

AssemblyScript

TypeScript-like language that compiles to WebAssembly

open sourceApache-2.0free

AssemblyScript is a language that compiles a strictly typed variant of TypeScript to WebAssembly with Binaryen: it looks like TypeScript but uses WebAssembly's types, has some constraints from compiling ahead of time and additions from WebAssembly's feature set, and exposes WebAssembly and compiler foundations as built-ins, so web developers can produce lean WebAssembly modules. Its compiler, asc, is installed from npm, and its runtime provides memory management and an incremental garbage collector by default.

Libraries for JavaScript and TypeScript

View 40 more

Browse all of them: 852 libraries, 200 frameworks, 498 APIs, 37 templates.

Problems it solves

  • write WebAssembly modules in a TypeScript-like language
  • compile performance-critical web code to WebAssembly without learning Rust
  • small WebAssembly modules from typed JavaScript-style code

Features

  • TypeScript-like syntax with WebAssembly types
  • compiles ahead of time to WebAssembly via Binaryen
  • WebAssembly built-ins
  • incremental garbage collector runtime
  • compiler on npm

Alternatives

The same job

These do what AssemblyScript does.

  1. Rust A language empowering everyone to build reliable and efficient software.
  2. Dart An approachable, portable, and productive language for high-quality apps on any platform
  3. Roc A fast, friendly, functional language

Compare AssemblyScript with the top 3