mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-14 20:11:37 +03:00
eafc6024cc
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 |
||
---|---|---|
.. | ||
add | ||
canvas | ||
char | ||
closures | ||
console_log | ||
dom | ||
duck-typed-interfaces | ||
fetch | ||
guide-supported-types-examples | ||
hello_world | ||
import_js | ||
julia_set | ||
paint | ||
performance | ||
raytrace-parallel | ||
request-animation-frame | ||
todomvc | ||
wasm2js | ||
wasm-in-wasm | ||
webaudio | ||
webgl | ||
websockets | ||
without-a-bundler | ||
without-a-bundler-no-modules | ||
.gitignore | ||
README.md |
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