-
Notifications
You must be signed in to change notification settings - Fork 0
Add basic examples (1-4) for JS and Rust #44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #22
Implement the first four examples demonstrating real-world use cases: JavaScript examples: - 01-hello-world: Basic queue operations (enqueue, dequeue, acknowledge) - 02-link-relationships: Nested links, universal links, graph structures - 03-producer-consumer: Multiple producers/consumers with async processing - 04-deduplication: MemoryLinkStore automatic deduplication Rust examples: - 01-hello-world: Basic MemoryQueue usage with tokio async - 02-link-relationships: Nested links, LinkPattern matching, graph ops - 03-producer-consumer: Concurrent producers/consumers with Arc<MemoryQueue> - 04-deduplication: Type-generic deduplication with MemoryLinkStore Each example includes: - Runnable code demonstrating the concept - README.md with expected output and key concepts Closes #22 (partial - basic examples 1-4) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 6a516a0.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
Ensure all changes are correct, consistent and fully meet the requirements. |
|
🤖 AI Work Session Started Starting automated work session at 2026-01-19T10:37:17.686Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
Run cargo fmt to fix formatting issues that were causing the CI lint check to fail. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Move const declarations to module level to satisfy clippy::items_after_statements lint - Use map_or_else instead of if let/else for Option handling - Add underscores to long numeric literals for readability - Allow clippy::cast_possible_truncation for intentional u128 to u64 cast - Rename store4 to store_universal to avoid similar_names lint Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
JavaScript Examples (
js/examples/)Rust Examples (
rust/examples/)Running the Examples
JavaScript
cd js npm install node examples/01-hello-world/index.js node examples/02-link-relationships/index.js node examples/03-producer-consumer/index.js node examples/04-deduplication/index.jsRust
cd rust cargo run --example 01-hello-world cargo run --example 02-link-relationships cargo run --example 03-producer-consumer cargo run --example 04-deduplicationTest plan
Closes #22 (partial - basic examples 1-4, intermediate and advanced examples to follow)
🤖 Generated with Claude Code