Skip to content

Commit c2850d1

Browse files
0xrinegadeclaude
andcommitted
docs: add comprehensive OVSM LISP function glossary and documentation
Add complete documentation for OVSM's 91+ built-in functions including new map-reduce functional programming stack and cryptographic operations. ## New Features ### Map-Reduce Functional Programming Stack (14 functions) - find: Find first element matching predicate - distinct: Remove duplicate elements - flatten: Flatten nested arrays - reverse: Reverse array order - some: Check if any element matches - every: Check if all elements match - partition: Split array into matching/non-matching - take: Take first n elements - drop: Drop first n elements - zip: Combine arrays into pairs - compact: Remove null values - pluck: Extract field from objects - group-by: Group elements by key function - count-by: Count elements by key function ### Cryptography & Encoding (8 functions) - base58-encode/decode: Solana address encoding - base64-encode/decode: Data encoding - hex-encode/decode: Byte array encoding - sha256: SHA-256 cryptographic hash - sha512: SHA-512 cryptographic hash ### Object Operations (1 function) - merge: Merge multiple objects (right-most wins) ## Documentation Added ### Primary Documentation - crates/ovsm/BUILTIN_FUNCTIONS.md (32KB, 1,721 lines) Complete glossary of all 91+ built-in functions organized into 16 categories with signatures, examples, and usage notes - crates/ovsm/llms.txt (16KB, 554 lines) LLM-optimized reference for AI assistants and coding tools ### Updated Documentation - crates/ovsm/README.md: Added glossary link and reorganized sections - crates/ovsm/USAGE_GUIDE.md: Added prominent glossary references - crates/ovsm/QUICK_START.md: Added "Next Steps" with glossary link ### Landing Page - docs/pages/ovsm-language.html (341 lines) Complete rewrite to reflect LISP-based OVSM with: - Links to function glossary - Blockchain-focused examples - Map-reduce stack highlights - Cryptographic operations showcase - 100% test coverage emphasis ### Documentation Distribution - docs/ovsm/BUILTIN_FUNCTIONS.md: Copy for GitHub Pages - docs/ovsm/llms.txt: Copy for LLM access - docs/ovsm/README_LISP.md: LISP overview for web ## Implementation File: crates/ovsm/src/runtime/lisp_evaluator.rs - Implemented 23 new functions with comprehensive error handling - Added dependencies: sha2, base64, bs58, hex - 100% test coverage maintained (356/356 tests passing) ## Impact - Users can now access complete function reference from landing page - LLMs have optimized documentation for code generation - All 91+ functions documented with examples - Map-reduce functional programming fully supported - Blockchain cryptography operations available - Production-ready status clearly communicated Function count by category: - Control Flow: 10 | Variables: 5 | Functions: 7 | Macros: 4 - Logical: 3 | Type Predicates: 10 | Assertions: 2 - Crypto & Encoding: 8 | Strings: 8 | Math: 15 - Collections: 28 | Objects: 3 | Advanced: 2 - Error Handling: 2 | Utilities: 2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent ef0771e commit c2850d1

File tree

13 files changed

+6089
-148
lines changed

13 files changed

+6089
-148
lines changed

Cargo.lock

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace]
2-
members = [".", "crates/ovsm"]
2+
members = [".", "crates/ovsm", "guest/mcp_vsock_wrapper"]
33
resolver = "2"
44

55
[package]

0 commit comments

Comments
 (0)