GitHub·· 9 天前AI 评分22
AAYU:面向 AI 编程智能体的零依赖编程语言
Minato95-ayu/INTENT-TO-SILICON
AI 导读
AAYU 是一门在编译器层面解决 AI 编程智能体依赖幻觉、Token 浪费与上下文丢失问题的编程语言,内置 SQLite、Web 服务器、UI 引擎与数学核心,无需 pip install 或 npm i。
正文
🤖 Why AI Agents (Cursor, Gemini, Claude) Love AAYU
Modern AI coding agents face three major hurdles with traditional languages: Dependency Hallucination (installing packages that don't exist or conflict), Token Waste (reading thousands of lines of boilerplate), and Context Loss (forgetting the architecture). AAYU solves this natively at the compiler level:
- Zero External Dependencies: AAYU has its own built-in SQLite, Web Server, UI Engine, and Math core. An AI Agent will never hallucinate a
pip installornpm icommand because AAYU handles everything natively. - Context-Map Auto Generation: AAYU's compiler automatically shrinks your entire full-stack project into a tiny 200-token
.aayu-context.mdfile. AI reads this instead of your source code, saving up to 80% on context tokens! - Strict Bounds: Syntax errors are caught by strict
endblocks, avoiding pythonic indentation confusion for LLMs.
⚡ Why Vibe Coders Love AAYU
If you are a student, a solo dev, or just want to build fast without infrastructure headaches, AAYU feels like plain English.
- No
virtualenv. Norequirements.txt. Nopackage.json. - Need a database? Just write
model User end. - Need a backend? Just write
route "/api" get respond() end. - Native static binary (runs on Tails OS, Linux, Mac, Windows without installing any runtime).
🚀 The AAYU Ecosystem (Official Packages)
AAYU ships with native standard libraries out of the box:
aayu-gemini: Native Google Gemini AI integrationaayu-ml: Built-in machine learning models & clusteringaayu-auth: JWT, Session, and OAuth readyaayu-crypto: Blazing fast cryptography & hashingaayu-http: High-performance async HTTP clientaayu-vision: Computer vision and image processingaayu-rag: Retrieval-Augmented Generation toolkitaayu-dataframe: Pandas-like data manipulationaayu-math: Advanced mathematical computing
🛠️ Hello World
app Hello
action main
print("Hello, AAYU!")
end
run main
🏗️ Full-Stack Example (AAYUGram)
app AAYUGram
model Post
id Int
content String
likes Int = 0
end
route "/api/feed"
get
let posts = Post.all()
respond(posts)
end
end
Page Home
Column
Text("Welcome to AAYUGram")
Button("Create Post", onClick: createPost)
end
end
run Home
🏛️ Architecture
┌─────────────────────────────────────────┐
│ AAYU Source (.aayu) │
├──────┬──────┬──────┬──────┬─────────────┤
│Lexer │Parser│ AST │Seman-│ IR │
│ │ │ │tic │Pipeline │
├──────┴──────┴──────┴──────┼─────────────┤
│ HIR → MIR → LIR │ Bytecode │
├───────────────────────────┼─────────────┤
│ Stack-based VM │ GC Heap │
├───────────────────────────┴─────────────┤
│ stdlib: math | ai | ml | db | http │
└─────────────────────────────────────────┘
📊 Project Status
Current Version: v1.1.0 (Development)
| Feature | Status |
|---|---|
| Compiler Pipeline | ✅ Working |
| Self-Hosted Bootstrapping | ✅ Done (Phase 3) |
| Rust JIT VM | ✅ Working (50ms Benchmark) |
| Database/Storage | ✅ Working |
| Web Server/Routes | ✅ Working |
| CLI Tools | ✅ Working |
| Frontend UI | ✅ Working |
| AI/ML stdlib | ✅ Working |
📄 License
MIT License — see LICENSE
来源:GitHub · github.com