assemblyscript VS design-principles

Compare assemblyscript vs design-principles and see what are their differences.

design-principles

A small-but-growing set of design principles collected by the TAG while reviewing specifications (by w3ctag)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
assemblyscript design-principles
29 4
16,432 159
0.8% 4.4%
7.6 6.5
13 days ago 18 days ago
WebAssembly Bikeshed
Apache License 2.0 -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

assemblyscript

Posts with mentions or reviews of assemblyscript. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-26.
  • Let's Write a Malloc
    4 projects | news.ycombinator.com | 26 Nov 2023
    Incidentally, it’s also what AssemblyScript uses: https://github.com/AssemblyScript/assemblyscript/blob/main/s...
  • Gentle Introduction To Typescript Compiler API
    6 projects | dev.to | 18 Nov 2023
    Use it as a Front-End for other low-level languages.
  • TypeScript Is Surprisingly OK for Compilers
    14 projects | news.ycombinator.com | 18 Aug 2023
    > MHO typescript could just cut loose from its javascript compatibility. Why not compile it to wasm instead of transpiling it to javascript?

    Check out AssemblyScript which is exactly that:

    https://www.assemblyscript.org/

  • Do you think typescript will ever have native support on brosers? Or we will have only the JS type annotations?
    2 projects | /r/typescript | 11 Jul 2023
    If you're curious, check out AssemblyScript, that might describe better what needs to be cut from TypeScript to make it possible to be compiled to WASM.
  • Ezno's checker (a Javascript type checker and compiler written in Rust) is now open source
    2 projects | /r/rust | 8 Jun 2023
    This is kinda the idea behind AssemblyScript, but IIRC it's more of a low-level typescript-ish syntax for WebAssembly.
  • Is there a TypeScript to native compiler available?
    1 project | /r/typescript | 13 May 2023
    https://www.assemblyscript.org/ maybe, but I'm not sure exactly what you need.
  • Emerging Rust GUI libraries in a WASM world
    11 projects | news.ycombinator.com | 26 Apr 2023
    Exactly, WASM was designed to be very very lightweight... you can put a lot of logic into a very small amount of WASM, but you need a good compiler to do that, or write WASM by hand to really feel the benefit. If you just compile Go to WASM, with its GC, runtime and stdlib included in the binary, yeah it's going to be pretty heavy... Rust doesn't have a runtime but as you said, for some reason, produces relatively large binaries (not the case only in WASM by the way). Probably, the best ways to create small WASM binaries is to compile from C or from a WASM-native language like AssemblySCript (https://www.assemblyscript.org).
  • Dan Abramov responds to React critics
    5 projects | /r/reactjs | 25 Apr 2023
    Well we have all the new ECMA standards that will be introduced in 5 years now. It's looking more like Java actually. its accessor and typing patterns match it the most. TypeScript has had quite the profound influence over future ECMA design. There is a not so well known project called AssemblyScript which I think has a promising future. Since future ecma standards closely resembles it and TypeScripts popularity has exploded I have a feeling it may become a real standard as well.
  • AssemblyScript – TypeScript-like language for WebAssembly
    1 project | news.ycombinator.com | 22 Apr 2023
  • Do any engines or optimizers product TS-specific performance gains?
    3 projects | /r/typescript | 24 Mar 2023
    If you can guarantee that Typescript type hints will always be followed, you can turn it into more optimised code. Unfortunately, this means you've got to break Javascript semantics, so this means creating a new language, but people have done it. For example, AssemblyScript is a language that is designed as a strict subset of Typescript that compiles directly down to WebAssembly instead of Javascript, producing much more efficient code (most of the time). The tradeoff is that it has some slightly different semantics to Javascript, which means your existing codebase — and most of the libraries you use — will probably require some adaption before running correctly in AssemblyScript.

design-principles

Posts with mentions or reviews of design-principles. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-09-08.
  • The Risks of WebAssembly
    5 projects | news.ycombinator.com | 8 Sep 2022
    I am skeptical of WebAssembly and component-model myself, but that AssemblyScript page seems alarmist and as can be seen in several issues, dcodeIO (from the AssemblyScript community) was definitely not behaving in good faith: https://github.com/w3ctag/design-principles/issues/322

    It seems most of the complaints are that selecting UTF-8 as a primary string encoding is "against the practices of the web", which seems patently absurd. I was definitely expecting more along the lines of object models integrating into component‐model, rather than mass-tagging people because of string encodings.

  • Do not design around third-party tools unless it breaks the Web
    1 project | news.ycombinator.com | 19 Oct 2021
  • New principle: Do not design around 3rd party tools unless it breaks the Web
    1 project | news.ycombinator.com | 20 Sep 2021
  • An Urgent Notice from AssemblyScript
    4 projects | news.ycombinator.com | 24 Jul 2021
    I don't agree with your representation that sanitisation of isolated surrogates constitutes "corruption". As a high-level point, when passing a string from your component to an external one, the external component receives a sanitised copy of your string - the original string is not modified in-place. So you still have access to your original string if you're relying on the presence of isolated surrogates for some reason.

    For fairness, I will link below to your concrete example of "corruption", noting that you claim it will render Wasm "the biggest security disaster man ever created for everything". The fundamental bug is in splitting a string at a point which happens to be between two code points which make up an emoji. This kind of mistake can already cause logic and display errors in other parts of the code (e.g. for languages with non-BMP characters) independent of whether components are involved.

    https://github.com/w3ctag/design-principles/issues/322

What are some alternatives?

When comparing assemblyscript and design-principles you can also consider the following projects:

rust-ffmpeg-wasi - ffmpeg libraries precompiled for WebAsembly/WASI, as a Rust crate.

interface-types

Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.

stringref

reference-types - Proposal for adding basic reference types (anyref)

ffmpeg.wasm - FFmpeg for browser, powered by WebAssembly

rust - Empowering everyone to build reliable and efficient software.

deno - A modern runtime for JavaScript and TypeScript.

grain - The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾

goscript - An alternative implementation of Golang specs, written in Rust for embedding or wrapping.

pyodide - Pyodide is a Python distribution for the browser and Node.js based on WebAssembly