I'm Sujay, I go by the alias bones-ai
I work on simulations involving neuro-evolution and genetic algorithms in my free time.
- Projects - bones-ai.bearblog.dev/projects
- Twitter - @BonesaiDev
- Youtube - @bonesai-dev
An ant colony simulation written in rust
Home Page: https://youtu.be/98pUSZAM_7M
I'm Sujay, I go by the alias bones-ai
I work on simulations involving neuro-evolution and genetic algorithms in my free time.
I've noticed that the ants seem to be moving at a constant speed and seem to turn at a constant speed too. Is that right? I think that might be what's preventing the trail from simplifying more quickly.
I'm not sure how ants do it in real life, so feel free to close this if it's not realistic
Hi,
I get the following error when I attempt to run on my machine:
Running `target/debug/ants`
2023-08-01T15:29:31.665830Z INFO bevy_winit::system: Creating new window "Ants" (0v0)
2023-08-01T15:29:31.665989Z INFO winit::platform_impl::platform::x11::window: Guessed window scale factor: 1
2023-08-01T15:29:31.764582Z INFO bevy_render::renderer: AdapterInfo { name: "Mesa Intel(R) Graphics (ADL GT2)", vendor: 32902, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Gl }
2023-08-01T15:29:31.780572Z WARN bevy_pbr::ssao: ScreenSpaceAmbientOcclusionPlugin not loaded. GPU lacks support: TextureFormat::R16Float does not support TextureUsages::STORAGE_BINDING.
2023-08-01T15:29:31.782272Z INFO bevy_diagnostic::system_information_diagnostics_plugin::internal: SystemInfo { os: "Linux rolling EndeavourOS", kernel: "6.4.7-arch1-1", cpu: "12th Gen Intel(R) Core(TM) i7-1280P", core_count: "14", memory: "62.5 GiB" }
2023-08-01T15:29:31.808893Z ERROR wgpu_core::device: surface configuration failed: incompatible window kind
thread 'main' panicked at 'Error in Surface::configure: Validation Error
Caused by:
Invalid surface
', /home/vasily/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wgpu-0.16.3/src/backend/direct.rs:734:18
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::view::window::prepare_windows`!
thread 'Compute Task Pool (4)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', /home/vasily/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bevy_render-0.11.0/src/pipelined_rendering.rs:135:45
Machine info:
OS: EndeavourOS Linux x86_64
Kernel: 6.4.7-arch1-1
DE: Hyprland
Steps to reproduce:
git clone [email protected]:bones-ai/rust-ants-colony-simulation.git
cd rust-ants-colony-simulation
cargo run
I would like to make a PR with some optimizations, but I am unable to benchmark the optimizations due to the aforementioned error. Please let me know if you need any additional information.
Thank you!
rust-ants-colony-simulation/src/ant.rs
Line 125 in 3ecceb2
This break statement makes the loop never execute. Is the loop needed?
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.