Skip to content

Move all examples to a top-level directory#1286

Merged
alexcrichton merged 9 commits intobytecodealliance:masterfrom
alexcrichton:move-examples
Mar 11, 2020
Merged

Move all examples to a top-level directory#1286
alexcrichton merged 9 commits intobytecodealliance:masterfrom
alexcrichton:move-examples

Conversation

@alexcrichton
Copy link
Copy Markdown
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 requested a review from fitzgen March 11, 2020 18:25
@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.

2 participants