Giter Site home page Giter Site logo

miracle2k / assemblyscript Goto Github PK

View Code? Open in Web Editor NEW

This project forked from assemblyscript/assemblyscript

0.0 2.0 0.0 81.14 MB

Definitely not a TypeScript to WebAssembly compiler ๐Ÿš€

Home Page: https://assemblyscript.org

License: Apache License 2.0

JavaScript 1.48% TypeScript 19.59% WebAssembly 78.82% HTML 0.11%

assemblyscript's Introduction

AssemblyScript

Actions Status npm npm@nightly

AssemblyScript compiles a strict subset of TypeScript (basically JavaScript with types) to WebAssembly using Binaryen. It generates lean and mean WebAssembly modules while being just an npm install away.

Check out the documentation or try it out in WebAssembly Studio!


Our Sponsors


Our Backers

The core team members and most contributors do this open source work in their free time. If you use AssemblyScript for a serious task or plan to do so, and you'd like us to invest more time on it, please donate to our OpenCollective. By sponsoring this project, your logo will show up above. Thank you so much for your support!


Motivation

You are now able to write WebAssembly, without learning a new language, and harness all these benefits WebAssembly might offer you. I think that is kind of powerful. [...] It [AssemblyScript] is absolutely usable, and very enjoyable! - Surma, WebAssembly for Web Developers (Google I/O โ€™19) (May 8th, 2019)

AssemblyScript was frictionless. Not only does it allow you to use TypeScript to write WebAssembly, [...] it also produces glue-free WebAssembly modules that are very small with decent performance. โ€“ Surma, Replacing a hot path in your app's JavaScript with WebAssembly (Feb 16, 2019)

Perhaps the fundamental issue [to get a small .wasm file] is that JavaScript is the only language for which the Web runtime is a perfect fit. Close relatives that were designed to compile to it, like TypeScript, can be very efficient as well. But languages like C, C++, Rust, and so forth were not originally designed for that purpose. โ€“ Alon Zakai, Small WebAssembly Binaries with Rust + Emscripten (Apr 18, 2018)

JavaScript's heyday as the only browser language is over, but most web developers are used to writing JavaScript, and learning a new syntax just to get access to WebAssembly is not (always) ideal. If only there was something in to bridge the gapโ€ฆ โ€“ Jani Tarvainen, TypeScript is the bridge between JavaScript and WebAssembly (Feb 20, 2018)

I do think [compiling TypeScript into WASM] is tremendously useful. It allows JavaScript developers to create WASM modules without having to learn C. โ€“ Colin Eberhardt, Exploring different approaches to building WebAssembly modules (Oct 17, 2017)

Further resources

assemblyscript's People

Contributors

alangpierce avatar andy-hanson avatar bowenwang1996 avatar dcodeio avatar emlai avatar equalma avatar fcrick avatar floorlamp avatar jayphelps avatar jeffcharles avatar jhwgh1968 avatar jsdelivrbot avatar jtenner avatar kazupon avatar liaopeng avatar linusu avatar maxgraey avatar nidin avatar pinkaminadianepie avatar scorsi avatar singpolyma-shopify avatar thezillion avatar torch2424 avatar vladimir-tikhonov avatar willemneal avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.