Jac (the Jaseci stack)

website·Indexed 32 days ago

https://docs.jaseci.org/

Jac is a programming language designed for humans and AI to build together, featuring a Python-like syntax that compiles to Python bytecode.

Tokens
263
Snippets
1
Records
2
Agent score
6%

What's inside Jaseci

  1. Overview of the Jac programming language

    Jac is a programming language designed for humans and AI to build together. It uses a Python-like syntax that compiles to Python bytecode, JavaScript, and native machine code, providing access to PyPI, npm, and C ecosystems. Key language features include built-in AI calls (by llm()), persistent graphs, REST APIs, React-style UIs (cl code), and Kubernetes deployment, all delivered via a single self-contained jac binary.
  2. Jac language syntax and core concepts

    Jac employs a specific syntax for structure and data modeling:

    • Statements: End with a semicolon (;).
    • Blocks: Defined using curly braces ({ }).
    • Field Declarations: Use the format has name: type;.
    • Graph Modeling: Uses node, edge, and walker archetypes to model domains as graphs. Graphs under root are automatically persisted.
    • AI Delegation: Functions defined as def f(...) -> T by llm(); delegate execution to an LLM, using the return type T as the enforced output schema.
    // Example of an AI-delegated function
    def my_ai_function(input: String) -> String by llm();