I wonder if I’m doing something wrong, but the build command produces a .wasm file that starts with an “ONYX” magic word. So wasm-objdump doesn’t recognize it. Not sure wtf he is doing
Discussion
getting to the bottom of this
The instructions suggest that you have to target wasi when building and provide file name
# Compile and run directly.
$ onyx run hello.onyx
Hello, World!
# This time target 'WASI'.
$ onyx build -r wasi -o hello.wasm hello.onyx
# Run using Wasmer.
$ wasmer run hello.wasm
Hello, World!
Its not an AssemblyScript replacement yet, but maybe it can be one day