Skip to content

Langton's Ant Client v1.3.0#3

Open
MrCamoga wants to merge 23 commits intomasterfrom
refactor
Open

Langton's Ant Client v1.3.0#3
MrCamoga wants to merge 23 commits intomasterfrom
refactor

Conversation

@MrCamoga
Copy link
Copy Markdown
Owner

@MrCamoga MrCamoga commented May 2, 2026

Refactor
Added new work type: soups
Added new highway parameter: states histogram
Changed map from byte[] to short[] to allow large histograms calculations
Reduced period computation states array to compensate for larger map size

MrCamoga added 23 commits June 2, 2025 00:51
…sing the stored states

Changed states array from byte to short so that 8-bit states + 1-bit direction can fit

Plans:
- Implement better period finding algorithm
- Reduce size of states array
- Maybe encode two states in 3 bytes (s1,s2,dir1*2^dir2)
Cleaned Client class
Packets are now writen synchronously to avoid packet collision
Reduced size of states array from up to 200M to 5M
Temporary code in Ant to fix small periods (<1M)
Synchronize wip state: wip.add(seed[3]) to getSeedIndex
Save and load functions for result soup
Ant factory to create ant instance from its type id
Log only new highways on soups (info stored in ResultSet)
Removed hardcoded chunk size in patterns
Moved map from worker to ant
Fixed pattern size in packet for soup results sending radius instead of diameter
ResultRulesTest for development
ResultRulesRecompute to obtain new data about rules
type id in Result
Result soup now stores wip indices to avoid skipping some indices when restoring progress from file
Now worker creates new ant object every simulation because i think i dont reset the ant state properly and can lead to non deterministic results
Now results own the worker instead of the other way around
Reverted ResultRules serialization to pre-histograms
Now WorkerManager owns Results instead of Workers
Method to get specific result instance (ResultRules) in worker manager
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant