Skip to content

Commit 594ffc0

Browse files
committed
Added the supported types
1 parent 4fdf5fb commit 594ffc0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,22 @@ asyncTask();
7070

7171
## Supported Data Types
7272

73-
TODO
74-
75-
Supported types (params and returns on exported functions FROM Assemblyscript):
76-
77-
Strings, TypedArrays
73+
**TL;DR:** Currently Numbers, Strings, and Typed Arrays are supported. Returning a high-level data type from an imported JavaScript function, and passing AssemblyScript Classes will be coming later.
7874

79-
Supported types (params on import object functions. RETURNS NOT SUPPORTED):
75+
<!-- Generated from: https://www.tablesgenerator.com/markdown_tables# -->
8076

81-
Strings, TypedArrays
77+
| Function & Direction | Number (Integers and Floats) | Strings | Int8Array | Uint8Array | Int16Array | UInt16Array | Int32Array | Uint32Array | Float32Array | Float64Array | AssemblyScript Classes |
78+
| ------------------------------------------- | ---------------------------- | ------- | --------- | ---------- | ---------- | ----------- | ---------- | ----------- | ------------ | ------------ | ---------------------- |
79+
| Exported AssemblyScript Function Parameters | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ ||
80+
| Exported AssemblyScript Function Return | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ ||
81+
| Imported JavaScript Function Paramters | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ | ✔️ ||
82+
| Imported JavaScript Function Return | ✔️ |||||||||||
8283

8384
## Supported AssemblyScript Runtime Modes
8485

8586
TODO
8687

87-
Only supports the `--runtime full`, and `--runtime stub` flag. And should, because anything else would mean that you DO NOT want to create objects externally to your wasm module.
88-
89-
Simply need to wrap the docs from: https://docs.assemblyscript.org/details/runtime and we should be good to go!
88+
Only supports the `--runtime full`, and `--runtime stub` flag. And should, because anything else would mean that you DO NOT want to create objects externally to your wasm module. Simply need to wrap the docs from: https://docs.assemblyscript.org/details/runtime and we should be good to go!
9089

9190
## Performance
9291

@@ -96,6 +95,8 @@ TODO
9695

9796
TODO
9897

99-
Be sure to mention speculative execution
98+
Be sure to mention speculative execution stuff.
10099

101100
## License
101+
102+
[MIT](https://oss.ninja/mit/torch2424).

0 commit comments

Comments
 (0)