Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move all examples to a top-level directory #1286

Merged
merged 9 commits into from
Mar 11, 2020

Conversation

alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented Mar 11, 2020

This commit moves all API examples (Rust and C) to a top-level
examples directory. This is intended to make it more discoverable and
conventional as to where examples are located. Additionally all examples
are now available in both Rust and C to see how to execute the example
in the language you're familiar with. The intention is that as more
languages are supported we'd add more languages as examples here too.

Each example is also accompanied by either a *.wat file which is
parsed as input, or a Rust project in a wasm folder which is compiled
as input.

A simple driver crate was also added to crates/misc which executes all
the examples on CI, ensuring the C and Rust examples all execute
successfully.

cc #1272

This commit moves all API examples (Rust and C) to a top-level
`examples` directory. This is intended to make it more discoverable and
conventional as to where examples are located. Additionally all examples
are now available in both Rust and C to see how to execute the example
in the language you're familiar with. The intention is that as more
languages are supported we'd add more languages as examples here too.

Each example is also accompanied by either a `*.wat` file which is
parsed as input, or a Rust project in a `wasm` folder which is compiled
as input.

A simple driver crate was also added to `crates/misc` which executes all
the examples on CI, ensuring the C and Rust examples all execute
successfully.
@alexcrichton alexcrichton added the wasmtime Issues about wasmtime that don't fall into another label label Mar 11, 2020
@alexcrichton alexcrichton merged commit 3c51d3a into bytecodealliance:master Mar 11, 2020
@alexcrichton alexcrichton deleted the move-examples branch March 11, 2020 20:37
abrown added a commit to abrown/wasmtime that referenced this pull request Mar 18, 2020
Previously `fsub` was used but this fails when negating -0.0 and +0.0 in the SIMD spec tests; using more instructions, this change uses shifts to create a constant for flipping the most significant bit of each lane with `bxor`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime Issues about wasmtime that don't fall into another label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants