2017-12-15 15:00:19 +01:00
2017-12-13 23:24:13 +01:00
2017-12-14 16:50:59 +01:00
2017-09-28 13:08:25 +02:00
2017-12-15 15:00:19 +01:00
2017-12-15 15:00:19 +01:00
2017-12-15 15:00:19 +01:00
2017-12-05 13:35:14 +01:00
2017-12-02 20:58:39 +01:00
2017-09-29 17:22:15 +02:00
2017-12-08 16:11:58 +01:00
2017-12-15 15:00:19 +01:00

AssemblyScript NEXT

Build Status

AssemblyScript is a new compiler targeting WebAssembly while utilizing TypeScript's syntax and node's vibrant ecosystem. Instead of requiring complex toolchains to set up, you can simply npm install it - or run it in a browser.

Note, though, that this version of the compiler (0.5.0, NEXT) is relatively new and does not yet support some features a TypeScript programmer might expect, e.g., strings, arrays and classes.

See the AssemblyScript wiki for additional information and documentation.

How does it work?

By compiling syntactially (not necessarily semantically) valid TypeScript to Binaryen IR, the resulting module can be validated, optimized, emitted in WebAssembly text or binary format and converted to asm.js as a polyfill.

Examples

A few early examples to get an idea:

Getting started

This version of the compiler is not on npm, yet, but if you'd like to try it today or even plan to contribute, this is how you do it:

$> git clone https://github.com/AssemblyScript/next.git
$> cd next
$> npm install

Author your module using either

and run:

$> node bin/asc yourModule.ts

Building

Building an UMD bundle to dist/assemblyscript.js (does not bundle binaryen.js):

$> npm run build

Running the tests:

$> npm test
Description
No description provided
Readme Apache-2.0 52 MiB
Languages
WebAssembly 74.3%
TypeScript 24.1%
JavaScript 1.6%