All Projects → AssemblyScript → website

AssemblyScript / website

Licence: other
AssemblyScript's website and documentation.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
Vue
7211 projects
stylus
462 projects

Projects that are alternatives of or similar to website

ask
Ask! is a framework to write Wasm smart contracts for Substrate Frame Pallet-Contracts in AssemblyScript
Stars: ✭ 44 (-6.38%)
Mutual labels:  assemblyscript
counter
Increment and decrement a counter with this simple smart contract via a web page.
Stars: ✭ 21 (-55.32%)
Mutual labels:  assemblyscript
assemblyscript-regex
A regex engine for AssemblyScript
Stars: ✭ 81 (+72.34%)
Mutual labels:  assemblyscript
assemblyscript-json
JSON encoder / decoder for AssemblyScript
Stars: ✭ 140 (+197.87%)
Mutual labels:  assemblyscript
redstone-smartcontracts
An implementation of the Arweave SmartWeave smart contracts protocol.
Stars: ✭ 42 (-10.64%)
Mutual labels:  assemblyscript
Lunatic
Lunatic is an Erlang-inspired runtime for WebAssembly
Stars: ✭ 2,074 (+4312.77%)
Mutual labels:  assemblyscript
as-string-sink
An efficient dynamically sized string buffer (aka String Builder) for AssemblyScript
Stars: ✭ 23 (-51.06%)
Mutual labels:  assemblyscript
wasm4
Build retro games using WebAssembly for a fantasy console.
Stars: ✭ 711 (+1412.77%)
Mutual labels:  assemblyscript
Babylon.Font
Generate text mesh for BabylonJS using WASM, written in AssemblyScript.
Stars: ✭ 22 (-53.19%)
Mutual labels:  assemblyscript
examples
A collection of AssemblyScript examples.
Stars: ✭ 233 (+395.74%)
Mutual labels:  assemblyscript
gomoku-wasm
A Gomoku game implements with WebAssembly
Stars: ✭ 30 (-36.17%)
Mutual labels:  assemblyscript
as-sha256
AssemblyScript implementation of SHA256
Stars: ✭ 15 (-68.09%)
Mutual labels:  assemblyscript
Assemblyscript
A TypeScript-like language for WebAssembly.
Stars: ✭ 13,152 (+27882.98%)
Mutual labels:  assemblyscript
rabin-wasm
Rabin fingerprinting implemented in WASM
Stars: ✭ 26 (-44.68%)
Mutual labels:  assemblyscript
easegress-assemblyscript-sdk
AssemblyScript SDK for Easegress
Stars: ✭ 15 (-68.09%)
Mutual labels:  assemblyscript
as-bignum
Fixed length big numbers for AssemblyScript 🚀
Stars: ✭ 49 (+4.26%)
Mutual labels:  assemblyscript
Lucet
Lucet, the Sandboxing WebAssembly Compiler.
Stars: ✭ 4,006 (+8423.4%)
Mutual labels:  assemblyscript
atari2600-wasm
An Atari 2600 emulator written in AssemblyScript compiled to WebAssembly
Stars: ✭ 50 (+6.38%)
Mutual labels:  assemblyscript
pallet-contracts-waterfall
Collection of simple Substrate smart contract examples written in Rust, AssemblyScript, Solang and the smart contract language ink! to test substrates pallet-contracts module
Stars: ✭ 28 (-40.43%)
Mutual labels:  assemblyscript
blurhash-as
Blurhash implementation in AssemblyScript
Stars: ✭ 26 (-44.68%)
Mutual labels:  assemblyscript

AssemblyScript's Website

Deploy

The site is built with VuePress and reuses its default theme to ease upgrading to newer versions.

The more important files are:

Editor component

Markdown files can make use of a custom editor component using the editor language tag, like so:

```editor
#!optimize=size&runtime=none&noAssert&explicitStart&enable=simd,reference-types
export function add(a: i32, b: i32): i32 {
  return a + b
}

#!html
<script type="module">
const exports = await instantiate(await compile(), { /* imports */ })
console.log(exports.add(1, 2))
</script>
```

The first line is an optional shebang indicating selected compiler options. Available options are:

  • optimize = string
    Optimization preset to use. Valid presets are speed, size and none
  • noAssert
    Replaces assertions with just their value without trapping.
  • debug
    Enables debug information in emitted binaries.
  • runtime = string
    Specifies the runtime variant to include in the program. Valid variants are full, half, stub and none.
  • noExportMemory
    Does not export the memory to the host.
  • importMemory
    Imports the memory from the host.
  • exportTable
    Exports the function table to the host.
  • importTable
    Imports the function table from the host.
  • explicitStart
    Exports an explicit start function to call.
  • memoryBase = integer
    Sets the start offset of emitted memory segments.
  • tableBase = integer
    Sets the start offset of emitted table elements.
  • use = string
    Comma separated list of global aliases, e.g. to switch the default 'Math' implementation used: Math=JSMath
  • enable = string
    Comma-separated list of future WebAssembly features to enable. Valid features are sign-extension, bulk-memory, simd, threads and reference-types.

The current source and associated compiler options can be serialized into a base64 blob this way. For example, when the 🔗 button is clicked, document.location.hash is updated with that blob and the then-sharable link is copied to clipboard.

Building

To work on the site locally, install the dependencies and start a development server serving at localhost:8080:

npm install
npm start

To build the site to dist, i.e. to verify that it works as expected:

npm run build

Distribution files can also be served instead of using the development server with:

npm run serve

The page is automatically deployed on pushes to the repository, plus at least once a day to sync contributors and sponsors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].