sunfishcode opened PR #1782 from wasm-assemblyscript
to master
:
Thanks to @dcodeIO and @torch2424 for their help answering my questions!
fitzgen submitted PR Review.
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
Might be worth inlining the "hello, world" example, as we do for the Rust docs.
torch2424 submitted PR Review.
torch2424 created PR Review Comment:
Yoooo Whaddup @fitzgen ! :smile:
Yeah I agree, totally inlining this here would be a good move.
I would add as:
For example, to compile an AssemblyScript module with WASI, you could write the following AssemblyScript code:
hello-world.ts
import "wasi"; import {Console} from "as-wasi"; Console.log('Hello World!\n');
Which uses as-wasi as a dependency to make working withe AssemblyScript WASI bindings easier. Then, you can run:
asc hello-world.ts -b hello-world.wasm
To get a wasm module that will print "Hello World!" to stdout.
Or something along those lines :smile:
torch2424 edited PR Review Comment.
torch2424 edited PR Review Comment.
sunfishcode updated PR #1782 from wasm-assemblyscript
to master
:
Thanks to @dcodeIO and @torch2424 for their help answering my questions!
sunfishcode submitted PR Review.
sunfishcode created PR Review Comment:
Thanks! I've now copied the content inline and covered it in the doc.
sunfishcode updated PR #1782 from wasm-assemblyscript
to master
:
Thanks to @dcodeIO and @torch2424 for their help answering my questions!
torch2424 submitted PR Review.
torch2424 submitted PR Review.
torch2424 created PR Review Comment:
Just wanted to make sure your cool with the license and me being the author. Feel free to change to whichever you think is best for the wasmtime repo :smile:
sunfishcode submitted PR Review.
sunfishcode created PR Review Comment:
Thanks for the heads up! I think we can leave it as is for now.
Of course, if you'd ever like us to change it, feel free to reach out.
sunfishcode merged PR #1782.
Last updated: Nov 22 2024 at 16:03 UTC