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

Reply to this note

Please Login to reply.

Discussion

getting to the bottom of this

https://github.com/onyx-lang/onyx/issues/39

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

https://github.com/onyx-lang/onyx/issues/44