dist_agent_lang 1.0.7

Hybrid programming with library and CLI support for Off/On-chain network integration
Documentation

๐ŸŒฟ dist_agent_lang

License: Apache 2.0 Version Platform

A hybrid compiled programming language built with simplicity for a sophisticated future.

๐ŸŒฑ v1.0.5 Beta Release โ€” Actively maintained with consistent updates. Test thoroughly before production. Beta testing contributions appreciated! ๐Ÿ™


๐Ÿš€ Quick Start

Installation

From Source (Become a Contributor):

git clone https://github.com/okjason-source/dist_agent_lang.git
cd dist_agent_lang
cargo build --release
./target/release/dal --version

From Binary: Download from GitHub Releases

From Cargo:

cargo install --git https://github.com/okjason-source/dist_agent_lang.git --bin dal

Your First Program

Create hello.dal:

@trust("hybrid")
service HelloWorld {
    fn main() {
        print("Hello, dist_agent_lang!");
    }
}

Run it:

dal run hello.dal
# Output: Hello, dist_agent_lang!

๐ŸŒณ Features

๐Ÿค– AI Agent Framework

Native support for AI agents with multi-agent coordination, workflow management, and task execution.

โ›“๏ธ Multi-Chain Support

Deploy to Ethereum, Polygon, Solana, Arbitrum, and more with a single codebase.

๐Ÿ”’ Built-in Security

Automatic reentrancy protection, safe math, and comprehensive security features.

๐ŸŒ Hybrid Trust

Seamlessly combine onchain and offchain systems with hybrid trust models.

๐Ÿ“š Rich Standard Library

22 modules covering blockchain, AI, database, web, and more.

๐Ÿ”„ Solidity Converter

Automatically convert Solidity contracts to DAL format.

โšก High Performance

Compiled to native code with optimized execution for speed and efficiency.

๐Ÿ› ๏ธ Developer Tools

Comprehensive tooling including debugger, formatter, and package manager.

โŒจ๏ธ CLI Commands

Powerful command-line interface with commands for running, testing, formatting, and managing your DAL projects.

๐Ÿงฌ Agent Mold System

Reusable configurations linked to agents for rapid development and deployment.


๐Ÿ“– Documentation

Getting Started

Guides

Reference


๐ŸŽฎ CLI Commands

# Run a DAL program
dal run program.dal

# Test your code
dal test

# Check syntax
dal check program.dal

# Format code
dal fmt program.dal

# Lint code
dal lint program.dal

# Parse and show AST
dal parse program.dal

# Start REPL
dal repl

# Watch for changes
dal watch program.dal

# Create new project
dal new my_project

๐Ÿงฌ Agent Molds

Create reusable agent templates:

# List available molds
dal mold list

# Load a mold
dal mold load verify_mold

# Spawn agent from mold
dal mold spawn verify_mold MyAgent

# Get mold info (requires web3)
dal mold info mold_id

๐Ÿ’ก Example: AI-Powered Trading Agent

@ai
@chain("ethereum")
service TradingAgent {
    fn analyze_market(data: string) -> string {
        // Analyze market sentiment
        let analysis = ai::analyze_text(data);
        
        if analysis.sentiment > 0.7 {
            return "bullish";
        } else if analysis.sentiment < 0.3 {
            return "bearish";
        }
        return "neutral";
    }
    
    fn execute_trade(signal: string, amount: int) {
        if signal == "bullish" {
            // Execute buy order
            chain::call(1, dex_address, "swap", json::stringify({
                "token_in": usdc_address,
                "token_out": weth_address,
                "amount": amount
            }));
        }
    }
}

๐Ÿ”’ Security Features

  • โœ… Reentrancy protection
  • โœ… Safe math (overflow/underflow protection)
  • โœ… State isolation
  • โœ… Cross-chain security
  • โœ… Oracle security (signed feeds, multi-source validation)
  • โœ… Transaction atomicity (ACID guarantees)
  • โœ… Enhanced security logging
  • โœ… 140+ tests passing

โš ๏ธ Beta Release Notice

Current Version: v1.0.5 (Beta Release) โ€” Actively Developed

dist_agent_lang is an actively maintained beta release with consistent updates and improvements.

โœ… Safe For:

  • Development & Prototyping
  • Learning & Experimentation
  • Non-Critical Applications
  • Testing & Validation
  • Beta Testing

โš ๏ธ Use With Caution For:

  • Production Financial Applications (wait for v1.1.0+)
  • High-Value Smart Contracts (third-party audit recommended)
  • Critical Infrastructure (additional validation needed)
  • Sensitive Data Applications (additional security audits recommended)

Target for Production (v1.1.0+): ~community validation requested


๐Ÿค Contributing

We welcome contributions! Every contribution helps us reach production readiness.

Quick Start Contributing

No coding required? You can still help!

  • ๐Ÿงช Test the language - Run examples, report bugs
  • ๐Ÿ“ Improve documentation - Fix typos, clarify instructions
  • ๐Ÿ’ก Share feedback - Tell us what works and what doesn't

Ready to code?


๐Ÿ“ฆ Installation Methods

From Source

git clone https://github.com/okjason-source/dist_agent_lang.git
cd dist_agent_lang
cargo build --release

From Binary

Download from GitHub Releases

From Cargo

cargo install --git https://github.com/okjason-source/dist_agent_lang.git --bin dal

Requirements: Rust 1.70+ (Install Rust)


๐Ÿงช Testing

# Run all tests
cargo test

# Run with output
cargo test -- --nocapture

# Run specific test
cargo test --test example_tests

140+ tests passing covering all standard library modules.


๐Ÿ“š Learn More


๐Ÿ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Made with ๐Ÿ’š by OK Jason

๐ŸŒฟ Growing the future of decentralized development