assemblyscript
assemblyscript copied to clipboard
A TypeScript-like language for WebAssembly.
- [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file
`StaticArray.slice` / `StaticArray.concat` are quite not standard. Also, many users more expect `StaticArray` as returning type instead `Array` for `slice` method. With this change, we preserve old behavior, so it's...
> which behavior you expected to see? I want to see additional transformation hook, to interact with loaded assemblyscript code. Hook order must be first, before afterParse hook. Hook must...
```typescript class A {} class B extends A {} class D extends A {} export function testOr(v: B | null): void { let v0: A | null = v ||...
Hi there, just recently I've started working on a Wasm module that is expected to run inside host env, which provides/imports the `memory` + allocation functions `ext malloc/free`. My knowledge...
In our custom transformation, we are adding new methods to some specific classes based on some custom decorators. Everything works pretty well. However, it allowed us to find a bug...
I'm reimplementing the incremental runtime of AssemblyScript in C. And I found that some visiting functions(`__visit` `visitRoots` `visitStack`) of GC all have `cookie` parameters, but they are only passed without...
Simple example: ```ts class A { foo(a: U): U { return a; } } const a = new A(); const r = a.foo([]); // `r` should infer as Array but...
- [x] I've read the contributing guidelines - [x] I've added my name and email to the NOTICE file
Sorry if this is not the proper place to ask. Assuming a relatively complex computation that may take seconds/minutes to complete, how could an AssemblyScript running in a web worker...