Conversation
daveey
added a commit
to daveey/polyworld
that referenced
this pull request
Sep 25, 2026
Resolve nimby.lock / coworld/dependencies.lock to bassy 669a7c4 (a descendant of Metta-AI#72's 2c54d82, so it keeps DATA arrays + metered callbacks and adds string restarts), and keep both Metta-AI#72's addNeuralFunctions() and main's mailbox host functions in every bots.nim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Polyworld BASIC policies can now run neural layers through native Nim array operations while retaining deterministic integer/fixed-point arithmetic and existing resource limits. Adds
linear,relu,argmax, masked selection, and elementwise arithmetic to all five game hosts. Each exposed operation registers its own native procedure directly. Native operations reserve instruction/work budgets before execution; DATA arrays and mutable outputs share the memory limits.Numeric execution has only signed int32 and Q16.16 fixed-point values.
fixed32names the fixed-point representation; decimal literals are parsed directly into it. The language has no floating-point type or conversion API.Includes generic API documentation and synthetic arithmetic tests. The policies, weights, and comparison tools used during development remain local in ignored
tmpstorage and are excluded from this PR's current contents. ZIP loading is deferred.Uses the merged Bassy support from treeform/bassy#3. Both dependency lockfiles pin merge commit
2c54d822f775ce92d8b109f2f8aedb4c4b56b29d.BASSY_PATHremains an optional development override.Validation:
nim check tests/tests.nimand the complete Polyworld test suite pass with the pinned Bassy code. The updated synthetic array tests also pass.