sieve
sieve copied to clipboard
Implementing the sieve of Eratosthenes in various languages to demonstrate power of GraalVM and Truffle
Though there is interesting nondeterminism of optimalizations - GraalVM converges to either ~100 ms or ~250 ms per loop. (while `cargo run --release` is ~65 ms)
Trying to re-implement the [sieve.js](https://github.com/jtulach/sieve/blob/master/js/sieve.js) in Rust.
Since d9a30a9127548ad3 we are able to build and execute the generated `sieve` native executable:  Make sure the project is set to use GraalVM 20.3 with native-image exectable installed and...
[boxed-sieve.zip](https://github.com/jtulach/sieve/files/124753/boxed-sieve.zip) [primitive-sieve.zip](https://github.com/jtulach/sieve/files/124754/primitive-sieve.zip)