wasm-bindgen/examples
Alex Crichton eafc6024cc Rewrite the parallel raytracing example with rayon
One of the best parts about concurrency in Rust is using `rayon` and how
easy it makes parallelization of tasks, so it's the ideal example for
parallel Rust on the web! Previously we've been unable to use `rayon`
because there wasn't a way to customize how rayon threads themselves are
spawned, but [that's now being developed for us][rayon]!

This commit uses that PR to rewrite the `raytrace-parallel` example in
this repository. While not a perfect idiomatic representation of using
`rayon` I think this is far more idiomatic than the previous iteration
of `raytrace-parallel`! I'm hoping that we can continue to iterate on
this, but otherwise show it off as a good example of parallel Rust on
the web.

[rayon]: https://github.com/rayon-rs/rayon/pull/636
2019-06-13 06:48:53 -07:00
..
add chore: bump again 2019-05-29 17:37:37 +01:00
canvas chore: bump again 2019-05-29 17:37:37 +01:00
char chore: bump again 2019-05-29 17:37:37 +01:00
closures chore: bump again 2019-05-29 17:37:37 +01:00
console_log chore: bump again 2019-05-29 17:37:37 +01:00
dom chore: bump again 2019-05-29 17:37:37 +01:00
duck-typed-interfaces chore: bump again 2019-05-29 17:37:37 +01:00
fetch chore: bump again 2019-05-29 17:37:37 +01:00
guide-supported-types-examples chore: bump again 2019-05-29 17:37:37 +01:00
hello_world chore: bump again 2019-05-29 17:37:37 +01:00
import_js chore: bump again 2019-05-29 17:37:37 +01:00
julia_set chore: bump again 2019-05-29 17:37:37 +01:00
paint chore: bump again 2019-05-29 17:37:37 +01:00
performance chore: bump again 2019-05-29 17:37:37 +01:00
raytrace-parallel Rewrite the parallel raytracing example with rayon 2019-06-13 06:48:53 -07:00
request-animation-frame Use dyn with all trait objects 2019-06-03 08:28:55 -07:00
todomvc chore: bump again 2019-05-29 17:37:37 +01:00
wasm2js docs: update docs link 2019-05-26 16:43:00 +09:00
wasm-in-wasm chore: bump again 2019-05-29 17:37:37 +01:00
webaudio chore: bump again 2019-05-29 17:37:37 +01:00
webgl chore: bump again 2019-05-29 17:37:37 +01:00
websockets added websockets example to the guide 2019-06-01 16:17:50 +03:00
without-a-bundler added default module path inside init function when target is web 2019-06-08 01:27:35 +03:00
without-a-bundler-no-modules docs: update docs link 2019-05-26 16:43:00 +09:00
.gitignore Convert all examples to using wasm-pack 2019-01-17 08:37:32 -08:00
README.md docs: update docs link 2019-05-26 16:43:00 +09:00

Examples

This directory contains a number of Cargo projects that are all examples of how to use wasm-bindgen in various contexts. More documentation can be found online