Skip to content

Grism engines and playground#12

Merged
caesar0301 merged 13 commits intomainfrom
cursor/grism-engines-and-playground-c3a5
Jan 23, 2026
Merged

Grism engines and playground#12
caesar0301 merged 13 commits intomainfrom
cursor/grism-engines-and-playground-c3a5

Conversation

@caesar0301
Copy link
Copy Markdown
Contributor

Implement grism local and Ray engines, and introduce a playground crate as per RFC-0102, providing production-ready local execution, a preview of distributed execution, and an environment for experiments and examples.


Open in Cursor Open in Web

cursoragent and others added 2 commits January 22, 2026 15:32
This commit implements the execution engine architecture per RFC-0102:

## Local Engine Enhancements (grism-engine)
- Add ExecutionContextTrait for runtime-agnostic context
- Add ExecutionContextExt with convenience methods
- Update ExecutionContext to implement the trait
- Enhance LocalExecutor with better configuration options
- Production-ready with memory limits, metrics, and cancellation

## Ray Engine (Preview) (grism-ray, renamed from grism-distributed)
- Rename crate from grism-distributed to grism-ray
- Add Exchange operator with Shuffle/Broadcast/Gather modes
- Add PartitioningSpec with Hash/Range/Adjacency/RoundRobin schemes
- Add DistributedPlanner with stage splitting algorithm
- Add RayExecutor for distributed execution (preview)
- Add Stage and StageBuilder for execution stages
- Mark unimplemented features with TODO and NotImplemented errors

## Storage Enhancements (grism-storage)
- Add FileStorage for JSON file-based persistence
- Add batch insert operations (insert_nodes, insert_edges, etc.)
- Add get_all_* methods for bulk retrieval
- Add flush() and close() for durability
- Add StorageStats for statistics

## Playground Crate (grism-playground)
- New crate for experiments and examples
- hypergraph-demo: End-to-end demo with social network data
- query-runner: Interactive CLI for running queries
- Sample data generation with properties! macro
- Utility functions for result formatting

All tests pass, clippy lint passes.

Co-authored-by: chenxm35 <chenxm35@gmail.com>
Co-authored-by: chenxm35 <chenxm35@gmail.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Jan 22, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@caesar0301 caesar0301 marked this pull request as ready for review January 23, 2026 15:41
@caesar0301 caesar0301 merged commit a2a0632 into main Jan 23, 2026
@caesar0301 caesar0301 deleted the cursor/grism-engines-and-playground-c3a5 branch January 23, 2026 15:41
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.

2 participants