The Wayback Machine - https://web.archive.org/web/20201024024103/https://github.com/Kryndex/next
Skip to content
master
Go to file
Code
This branch is 1055 commits behind AssemblyScript:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

AssemblyScript NEXT

This repository contains compiler component prototypes for the next iteration of the AssemblyScript compiler written in AssemblyScript itself.

Note that the code uses some features and standard library components that are not yet supported by any version of asc. To account for this, the code has been written in "portable AssemblyScript", a TypeScript-compatible subset of a subset of a superset of JavaScript, that also compiles to JavaScript using TSC.

Why is this necessary?

Well, it isn't, but: In order to be able to compile the AssemblyScript compiler itself to WebAssembly eventually, we cannot depend on TypeScript because it is written in vanilla TypeScript and makes use of quite a few non-AOT-compatible dynamic features of JavaScript.

Cons:

  • A lot of work
  • Dealing with TypeScript compatibility issues

Pros:

  • One day compiling to WebAssembly for performance
  • Necessary features only, reducing binary size
  • Linking against Binaryen compiled to WebAssembly, reducing overhead

Side effects:

  • Good fire test for the compiler
  • Good benchmark when comparing both versions
  • Benefits standard library design ideas

About

WIP: The next iteration of the AssemblyScript compiler.

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.