sdleffler / collapse Goto Github PK
View Code? Open in Web Editor NEWA reimplementation/(pending) improvement on the wavefunction collapse texture synthesis algorithm.
License: MIT License
A reimplementation/(pending) improvement on the wavefunction collapse texture synthesis algorithm.
License: MIT License
I ran this on both windows as well as ubuntu linux subsystem on windows. I am going to try this on mac as well.
When generating a 50x150 output image (using 3x3 sampling) from an approximately 50x50 source, with "level 3 symmetry", the reference C# implementation generates 2 images in under a minute, while the rust implementation
I'm opening this issue primarily to document my experience, I intend to continue by profiling my workload and diagnose the cause of the slowness.
I'm having trouble building collapse. Could I please ask for help figuring this out?
cargo --version
cargo 1.28.0 (96a2c7d16 2018-07-13)
rustc --version
rustc 1.28.0 (9634041f0 2018-07-30)
cargo build --release
Compiling clap v2.32.0
error[E0583]: file not found for module `option`
--> /Users/slowikow/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.32.0/src/args/arg_builder/mod.rs:10:5
|
10 | mod option;
| ^^^^^^
|
= help: name the file either option.rs or option/mod.rs inside the directory "/Users/slowikow/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.32.0/src/args/arg_builder"
error: aborting due to previous error
For more information about this error, try `rustc --explain E0583`.
error: Could not compile `clap`.
warning: build failed, waiting for other jobs to finish...
error: build failed
rustc --explain E0583
A file wasn't found for an out-of-line module.
Erroneous code example:
```
mod file_that_doesnt_exist; // error: file not found for module
fn main() {}
```
Please be sure that a file corresponding to the module exists. If you
want to use a module named `file_that_doesnt_exist`, you need to have a file
named `file_that_doesnt_exist.rs` or `file_that_doesnt_exist/mod.rs` in the
same directory.
$ cargo build --release Updating registry `https://github.com/rust-lang/crates.io-index` Updating git repository `https://github.com/sdleffler/vosealias-rs` Downloading ndarray v0.6.10 Downloading image v0.20.1 Downloading bitflags v0.7.0 Downloading bit-set v0.4.0 Downloading bit-vec v0.4.4 Downloading log v0.3.9 Downloading pbr v0.3.1 Downloading regex v0.1.80 Downloading itertools v0.5.10 Downloading num-traits v0.1.43 Downloading matrixmultiply v0.1.15 Downloading num-complex v0.1.43 Downloading num-traits v0.2.6 Downloading rawpointer v0.1.0 Downloading tiff v0.2.1 Downloading num-rational v0.2.1 Downloading png v0.12.0 Downloading lzw v0.10.0 Downloading gif v0.10.1 Downloading scoped_threadpool v0.1.9 Downloading jpeg-decoder v0.1.15 Downloading byteorder v1.2.7 Downloading num-iter v0.1.37 Downloading num-derive v0.2.3 Downloading proc-macro2 v0.4.23 Downloading quote v0.6.10 Downloading syn v0.15.20 Downloading inflate v0.4.3 Downloading deflate v0.7.19 Downloading adler32 v1.0.3 Downloading color_quant v1.0.1 Downloading rayon v1.0.3 Downloading cfg-if v0.1.6 Downloading lazy_static v1.2.0 Downloading nodrop v0.1.13 Downloading log v0.4.6 Downloading winapi v0.2.8 Downloading kernel32-sys v0.2.2 Downloading winapi-build v0.1.1 Downloading thread_local v0.2.7 Downloading regex-syntax v0.3.9 Downloading aho-corasick v0.5.3 Downloading memchr v0.1.11 Downloading utf8-ranges v0.1.3 Downloading thread-id v2.0.0 Compiling proc-macro2 v0.4.23 Compiling cfg-if v0.1.6 Compiling nodrop v0.1.13 Compiling scopeguard v0.3.3 Compiling unicode-xid v0.1.0 Compiling memoffset v0.2.1 Compiling lazy_static v1.2.0 Compiling num-traits v0.2.6 Compiling winapi-build v0.1.1 Compiling libc v0.2.43 Compiling rayon-core v1.4.1 Compiling num-integer v0.1.39 Compiling num-derive v0.2.3 Compiling rayon v1.0.3 Compiling num-iter v0.1.37 Compiling winapi v0.2.8 Compiling adler32 v1.0.3 Compiling either v1.5.0 Compiling byteorder v1.2.7 Compiling num-rational v0.2.1 Compiling matrixmultiply v0.1.15 Compiling lzw v0.10.0 Compiling rawpointer v0.1.0 Compiling unicode-width v0.1.5 Compiling ndarray v0.6.10 Compiling bitflags v1.0.4 Compiling color_quant v1.0.1 Compiling vec_map v0.8.1 Compiling strsim v0.7.0 Compiling regex-syntax v0.3.9 Compiling bit-vec v0.4.4 Compiling ansi_term v0.11.0 Compiling utf8-ranges v0.1.3 Compiling scoped_threadpool v0.1.9 Compiling bitflags v0.7.0 Compiling lazy_static v0.2.11 Compiling crossbeam-utils v0.2.2 Compiling log v0.4.6 Compiling arrayvec v0.4.7 Compiling kernel32-sys v0.2.2 Compiling num_cpus v1.8.0 Compiling rand v0.4.3 Compiling memchr v0.1.11 Compiling time v0.1.40 Compiling atty v0.2.11 Compiling inflate v0.4.3 Compiling itertools v0.5.10 Compiling textwrap v0.10.0 Compiling deflate v0.7.19 Compiling bit-set v0.4.0 Compiling gif v0.10.1 Compiling log v0.3.9 Compiling crossbeam-epoch v0.3.1 Compiling aho-corasick v0.5.3 Compiling clap v2.32.0 error[E0583]: file not found for module `option` --> /Users/slowikow/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.32.0/src/args/arg_builder/mod.rs:10:5 | 10 | mod option; | ^^^^^^ | = help: name the file either option.rs or option/mod.rs inside the directory "/Users/slowikow/.cargo/registry/src/github.com-1ecc6299db9ec823/clap-2.32.0/src/args/arg_builder"error: aborting due to previous error
For more information about this error, try
rustc --explain E0583
.
error: Could not compileclap
.
warning: build failed, waiting for other jobs to finish...
error: build failed
A lot of the code base goes against how a Rust project should be structured. For example: The formatting in many places doesn't look write and we should really be using extern crate
here.
I would be happy to work on this myself but I recognise that this repo is fairly old and I likely completely inactive
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.