๐ฟ dist_agent_lang
A hybrid compiled programming language for simplicity in 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 (Recommended):
From Binary: Download from GitHub Releases
From Cargo:
Your First Program
Create hello.dal:
@trust("hybrid")
service HelloWorld {
fn main() {
print("Hello, dist_agent_lang!");
}
}
Run it:
# 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
- Quick Start Guide - Get up and running in 5 minutes
- Complete Documentation Index - Comprehensive guide optimized for developers and AI assistants
Guides
- AI Features Guide - Complete AI capabilities overview
- AI Best Practices - Security and optimization for AI
- CloudAdmin Guide - Hybrid trust and admin control
- API Reference - Complete standard library documentation
Reference
- Language Syntax - DAL syntax reference
- Standard Library - Machine-readable API reference
- Attributes Reference - Service and function attributes
๐ฎ CLI Commands
# Run a DAL program
# Test your code
# Check syntax
# Format code
# Lint code
# Parse and show AST
# Start REPL
# Watch for changes
# Create new project
๐งฌ Agent Molds
Create reusable agent templates:
# List available molds
# Load a mold
# Spawn agent from mold
# Get mold info (requires web3)
๐ก 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?
- ๐ข Beginners: Check out GOOD_FIRST_ISSUES.md
- ๐ Full Guide: See CONTRIBUTING.md
๐ฆ Installation Methods
From Source
From Binary
Download from GitHub Releases
From Cargo
Requirements: Rust 1.70+ (Install Rust)
๐งช Testing
# Run all tests
# Run with output
# Run specific test
140+ tests passing covering all standard library modules.
๐ Learn More
- Documentation - Complete documentation index
- Examples - 27+ example programs
- GitHub - Source code and issues
- Discord - Join our community
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ๐ by OK Jason
๐ฟ Growing the future of decentralized development