Overview
Jac Language Reference
Section titled “Jac Language Reference”The AI-Native Full-Stack Programming Language
One Language for Backend, Frontend, and AI
How to Use This Reference
Section titled “How to Use This Reference”This is a comprehensive reference for the Jac programming language. Navigate using the sidebar or use browser search (Ctrl+F / Cmd+F) within each page.
Conventions:
monospace— Keywords, types, operators, and code- Bold — Key terms and concepts
- Code blocks are verified, executable examples
- Sections marked (OSP) are Object-Spatial Programming features
Reference Sections
Section titled “Reference Sections”Core language concepts and syntax basics.
- Introduction
- Getting Started
- Language Basics
- Types and Values
- Variables and Scope
- Operators
- Control Flow
Functions, classes, and object-oriented programming.
- Functions and Abilities
- Object-Oriented Programming
- Implementations and Forward Declarations
Jac’s unique graph-based programming paradigm.
- Introduction to OSP
- Nodes
- Edges
- Walkers
- Graph Construction
- Graph Traversal
- Data Spatial Queries
- Typed Context Blocks
Building complete applications with Jac.
- Module System
- Server-Side Development
- Client-Side Development (JSX)
- Server-Client Communication
- Authentication & Users
- Memory & Persistence
- Development Tools
LLM integration and meaning-typed programming.
- Meaning Typed Programming
- Semantic Strings
- The
byOperator and LLM Delegation - Agentic AI Patterns
Async programming and parallel execution.
- Async/Await
- Concurrent Expressions
Error handling, testing, and advanced operators.
- Error Handling
- Testing
- Filter and Assign Comprehensions
- Pipe Operators
Tools, plugins, and interoperability.
- CLI Reference
- Plugin System
- Project Configuration
- Python Interoperability
- JavaScript/npm Interoperability
- Python Integration - 5 adoption patterns, transpilation details
Production deployment with jac-scale.
- jac-scale Plugin
- Kubernetes Deployment
- Production Architecture
- Library Mode - Pure Python with Jac runtime
Quick references and migration guides.
- Complete Keyword Reference
- Operator Quick Reference
- Grammar Summary
- Common Gotchas
- Migration from Python
- LLM Provider Reference
Quick Reference
Section titled “Quick Reference”Focused reference pages for common patterns:
- Walker Responses - Understanding
.reportspatterns - Graph Operations - Node creation, traversal, deletion
Related Resources
Section titled “Related Resources”Tutorials
Section titled “Tutorials”Step-by-step guides for learning Jac:
- Language Basics - Jac syntax from Python
- Object-Spatial Programming - Nodes, edges, walkers
- Testing - Writing and running tests
- AI Integration - First byLLM function
- Full-Stack Development - Building web apps
Plugin References
Section titled “Plugin References”Detailed API documentation for plugins:
- byLLM Reference - AI/LLM integration
- jac-client Reference - Frontend development
- jac-scale Reference - Production deployment
Other References
Section titled “Other References”- CLI Reference - Command-line interface
- Configuration Reference - jac.toml settings
- Testing Reference - Test syntax and patterns