assemblyscript
assemblyscript copied to clipboard
A TypeScript-like language for WebAssembly.
```typescript // assembly/index.ts import {a} from "../other/test" export function add(a: i32, b: i32): i32 { return a + b; } // other/test.ts export const a:i32 = 2 ``` `npx asc...
A lot of existing typescript code relies on async/await. And while WASM doesn't have a concept of the JS event loop or generators, it seems like this could be supported...
code to reproduce: ```typescript // @ts-ignore @external("http", "_request_get") declare function _http_request_get(s: string): externref; class Builder { inner: externref; private constructor(inner: externref) { this.inner = inner; } static get(url: string): Builder...
Concerning: - Is "unexpected token error" appropriate for this error? - Serialized source text still has ";". Is it OK? - [x] I've read the contributing guidelines - [x] I've...
- [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file
It would be nice to support custom type cast. As an example, see https://github.com/MaxGraey/bignum.wasm/issues/19
Something that would be useful for some applications of wasm modules is to be able to define types that are mapped to primitive wasm types. This is useful in cases...
Optimize tokenizer and parser. Parser stage now faster by 14-15%. Also tokenize ??, ??=, ||=, &&= - [x] I've read the contributing guidelines - [x] I've added my name and...
Support #1873. I found that the most convenient implementation at present is to implement it as `AfterEmit`. The transform author can generate some custom files based on the output files,...
`--ignoreWarning` will suppress a specific warning or list of warnings. This is useful in cases where the warning is known by the author and is okay. For example, in my...