Skip to content

Dev#30

Merged
grillcheese123 merged 17 commits intomainfrom
dev
Apr 7, 2026
Merged

Dev#30
grillcheese123 merged 17 commits intomainfrom
dev

Conversation

@grillcheese123
Copy link
Copy Markdown
Member

Massive upgrade. DO NOT USE IN PRODUCTION. Latest git is for pre-release v1.0 which will be released soon. Use pypi + the attached pyd in the release section for the latest 0.6.1 gpu ready binary.

grillcheese123 and others added 17 commits March 31, 2026 15:57
- grid-cell.glsl: hexagonal 3-wave grid cell firing pattern
  Three cosine waves at 60° intervals, orientation + phase + spacing params
- addition-linear.glsl: multiplication-free L1 distance linear layer
  y = -||W - x||₁ + bias, no multiplications, only add/sub/abs
- snippets/grid_cell.glsl: JIT-fusable op_grid_cell()
- snippets/addition_linear.glsl: op_addition_linear(), op_sign_activation(),
  op_additive_sigmoid() for JIT fusion pipeline

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Core infrastructure for typed message passing between Vulkan compute
(C++) and CubeMind brain modules (Python).

Proto definitions (cpp/proto/grilly_channels.proto):
- TensorData, SpikeTrain, SpikeEvent
- ExpertWeights, ExpertUpdate, RouteRequest/Response
- MemoryCapsule, MemoryQuery/Result
- TelemetryEvent, NeurochemState
- TrainStepRequest/Result
- GrillyCompute RPC service

C++ channel (cpp/include/grilly/channels/channel.h):
- BaseChannel abstract interface
- InProcessChannel: thread-safe queue with listener pattern
- MessageEnvelope with type, timestamp, sender, payload

Python channel (backend/channels.py):
- Channel class: C++ backend with pure-Python fallback
- Convenience: send_tensor, receive_tensor, send_spikes,
  receive_spikes, send_telemetry
- Subscriber pattern: ch.on(MessageType.TELEMETRY, callback)

pybind11 bindings (cpp/python/bindings_channels.cpp):
- MessageType enum, MessageEnvelope, InProcessChannel
- numpy array convenience methods

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Massive changes. Memory fixes, many optimization. Pre-release
@grillcheese123 grillcheese123 merged commit 4d9096c into main Apr 7, 2026
1 of 2 checks passed
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