What if memory wasn’t stored in weights or neurons — but in shape itself?

I present wave-memory, a Rust library that simulates how a wave interacts with a form that learns. The form is built from a recursive chaotic sequence inspired by Leonov’s geometry, and it adapts to the energy of the wave that moves through it.

🚀 Install

# Cargo.toml
[dependencies]
wave-memory = "0.1"

🔬 What It Does
Initializes a geometric form (GeoForm) using a chaotic recursive sequence with memory

Simulates a wave (Wave) traveling through the form

The wave's energy modifies the form, creating an adaptive medium

Behaves like a primitive spatial memory, capable of self-organization

🧪 Code Example

use wave_memory::{GeoForm, Wave};

fn main() {
    // Step 1: Create a memory form from a Leonov sequence
    let mut form = GeoForm::from_leonov(100, 42);

    // Step 2: Launch a wave with an impulse at the center
    let mut wave = Wave::new(100, 50);

    // Step 3: Evolve the form based on wave energy
    for _ in 0..100 {
        wave.step(&form);
        form.adapt(&wave.energy(), 0.05);
    }

    println!("Updated form at center: {:.3}", form.data[50]);
}

🧠 Why It Matters
Most memory models rely on symbols, neurons, or parameters. But in wave-memory:

Shape is memory

Wave is computation

Energy is learning

This model lays the groundwork for spatial cognition, wave-based computing, or even geometric consciousness.

🔗 Repo, Crate, and Beyond

Crate: crates.io/crates/wave-memory

GitHub: github.com/andysay1/wave-memory

🌊 What's Next?
We’re working on:

2D & WASM simulation playground

Wave interference & attention models

Fractal learning from multiple waves

❤️ Final Thoughts
If you're interested in alternative computation, cognitive geometry, or wave intelligence — I’d love your feedback, collaboration, or experiments.

Let’s reshape how we think about memory — literally.