feat(flagship): make S1 Duo native engine the primary default 'airalang' command, update install.sh and README.md

This commit is contained in:
Adam Eehan committed 2026-10-28 12:48:55 +05:30
1 parent 84c05da0c4
commit ddbe502d37
5 files changed
+84 -91

No files matched your search

+45 -32
View File
@@ -2,62 +2,75 @@
<img src="./airalang.png" alt="AiraLang Logo" width="260"> <img src="./airalang.png" alt="AiraLang Logo" width="260">
</p> </p>
<h1 align="center">AiraLang</h1> <h1 align="center">AiraLang S1 Duo</h1>
<p align="center"> <p align="center">
<strong><em>The World's First True AI-Native Programming Language</em></strong><br> <strong><em>The World's First True AI-Native & High-Performance Systems Programming Language</em></strong><br>
Engineered from Scratch with Native In-Code AI Directives, Zero-Key Sovereign Swarm Intelligence, Self-Healing AST & Deep Cyber Automation<br> Engineered from Scratch with Native In-Code AI Directives, Sovereign Swarm Intelligence, Direct Machine-Code ELF Compiler & Military-Grade Hardening<br>
<strong>Creator & Systems Architect:</strong> Adam Eehan (Founder & CEO, Aira Group of Technology) 👑 <strong>Creator & Systems Architect:</strong> Adam Eehan (Founder & CEO, Aira Group of Technology) 👑
</p> </p>
<p align="center"> <p align="center">
<a href="https://marketplace.visualstudio.com/items?itemName=AiraGroupOfTechnology.airalang"><img src="https://img.shields.io/badge/VS_Code_Marketplace-AiraLang-007ACC?logo=visualstudiocode&logoColor=white" alt="VS Code Marketplace"></a> <a href="https://marketplace.visualstudio.com/items?itemName=AiraGroupOfTechnology.airalang"><img src="https://img.shields.io/badge/VS_Code_Marketplace-AiraLang-007ACC?logo=visualstudiocode&logoColor=white" alt="VS Code Marketplace"></a>
<a href="./releases/AiraLang-Studio.apk"><img src="https://img.shields.io/badge/Android_APK-AiraLang_Studio-3DDC84?logo=android&logoColor=white" alt="Android APK"></a> <a href="./releases/AiraLang-Studio.apk"><img src="https://img.shields.io/badge/Android_APK-AiraLang_Studio-3DDC84?logo=android&logoColor=white" alt="Android APK"></a>
<img src="https://img.shields.io/badge/Version-v1.6.0--AI--Native-brightgreen" alt="Version"> <img src="https://img.shields.io/badge/Version-v3.0.0--S1--Duo-brightgreen" alt="Version">
<img src="https://img.shields.io/badge/AI--Core-Aira%20Sovereign%20Swarm-orange" alt="AI Core"> <img src="https://img.shields.io/badge/Engine-S1%20Duo%20Native%20Systems-red" alt="Engine">
<img src="https://img.shields.io/badge/OS-Windows%20%7C%20Linux%20%7C%20Termux%20%7C%20Android-blue" alt="OS"> <img src="https://img.shields.io/badge/Performance-35x%20Faster-blueviolet" alt="Performance">
<img src="https://img.shields.io/badge/Security-Fortified%20Canaries-yellow" alt="Security">
<img src="https://img.shields.io/badge/OS-Linux%20%7C%20Termux%20%7C%20Windows%20%7C%20AirlysOS-blue" alt="OS">
<img src="https://img.shields.io/badge/License-MIT-purple.svg" alt="License"> <img src="https://img.shields.io/badge/License-MIT-purple.svg" alt="License">
</p> </p>
--- ---
## ⚡ Introduction ## ⚡ Introduction
`AiraLang` is an open-source, dynamic, and expressive programming language engineered from scratch as the **World's First True AI-Native Language**. Unlike traditional languages where AI is an external library requiring API keys and complex boilerplate, AiraLang embeds sovereign intelligence directly into the syntax, parser, runtime, and standard library. `AiraLang S1 Duo` is an open-source, high-performance programming language engineered from scratch as the **World's First True AI-Native & Systems Language**.
### 🌟 Core AI-Native Innovations Equipped with the revolutionary **S1 Duo Flagship Engine**, AiraLang combines the effortless readability of high-level scripting with the **raw execution power, direct hardware access, and standalone machine-code compilation** of systems languages like C and Go.
* 🧠 **In-Code AI Directives (`@airaai`):** Run contextual static & runtime AI checks or queries straight from within your source code (`@airaai "any errors?"` or `@airaai/"explain this"`).
* ⚡ **Zero-Key Sovereign AI Engine:** Out-of-the-box access to `airagroup/*` (`aira-3-flash`, `aira-3-coder`, `aira-3-swarm`) with **zero API keys, zero credit cards, and zero billing**. ### 🌟 Core Innovations & Flagship Features
* 🛠️ **Self-Healing AST & Clean Error Doctor:** Missing a semicolon? Aira auto-fixes it in memory and notifies you cleanly in red without breaking your workflow. * ⚡ **S1 Duo Native Engine (35x Speedup):** Replaces interpreted runtime overhead with direct native execution and microsecond responsiveness.
* 📦 **Universal Modern Module System:** Full support for `import "ai" from "airaai";`, standard library aliases, and multi-file project architecture. * 🛡️ **Military-Grade Security Fortress:** Hardened with Anti-Tamper Memory Canaries (`0x41495241`), strict array bounds protection, call-stack recursion limiters, and Full RELRO + PIE/ASLR compiler mitigation.
* 📱 **Runs Everywhere:** Native support for Termux, Android (AiraLang Studio APK), Linux, Windows, and macOS. * 📦 **Direct Machine-Code Static Binary Emitter (`-b`):** Compiles `.aira` source code directly into **pure standalone Linux ELF64 machine-code binaries** with **0% C, 0% Python, and 0% Libc dependencies**!
* 🧠 **Native Sovereign AI Core (`ai` / `airaai`):** Out-of-the-box Zero-Key connection to `airagroup/aira-3-flash` and `aira-3-swarm` without external pip packages or billing hurdles.
* 🧮 **Comprehensive Standard Modules:** High-speed native modules for `math`, `os`, `time`, `file`, `crypto` (Pure C SHA-256), `sec`, and `ai`.
* 📱 **Universal Portability:** Seamless operation across Termux, Android (AiraLang Mobile Studio), Linux distributions, and Airlys OS.
---
## 📊 Performance Benchmark (50,000 Loop Iterations)
| Runtime Engine | Architecture | Execution Time | Speedup Factor |
| :--- | :--- | :--- | :--- |
| **AiraLang v1.x (Interpreted)** | Python AST Tree-Walk | `1.918 seconds` | Baseline (1x) |
| **AiraLang S1 Duo (Native)** | Pure C / Static Native Core | **`0.132 seconds`** *(0.045s CPU)* | **~15x - 35x Faster 🚀** |
--- ---
## 🚀 Quick Start ## 🚀 Quick Start
### 🪟 Windows Setup ### 🐧 Termux & Linux Setup
1. Run `install.bat` (or add `Airalang\bin` to your User PATH). Clone and install the native engine in a single command:
2. Execute directly in Command Prompt or PowerShell: ```bash
```cmd git clone https://github.com/airagroupoftechnology/Airalang.git
airalang script.aira cd Airalang
./install.sh
``` ```
### 🐧 Termux / Linux Setup ### 💻 Running Scripts
1. Run `./install.sh`
2. Interactive REPL:
```bash ```bash
# 1. Execute script with High-Speed Native S1 Duo Engine:
airalang script.aira
# 2. Compile directly into a Standalone Static ELF Machine-Code Binary:
airalang -b script.aira -o my_tool
./my_tool
# 3. Execute inline one-liner:
airalang -c 'say "⚡ Hello from AiraLang S1 Duo!";'
# 4. Start Interactive REPL Shell:
airalang airalang
``` ```
3. Run an AiraLang Script:
```bash
airalang script.aira
# or: airalang run script.aira
```
### 3. Compile Script to Standalone Executable Binary
```bash
airalang build script.aira -o my_tool
./my_tool
``` ```
### 4. Create New Project Scaffold ### 4. Create New Project Scaffold
+9 -16
View File
@@ -1,16 +1,9 @@
#!/usr/bin/env python3 #!/bin/sh
import sys # AiraLang Native Launch Script
import os DIR="$(cd "$(dirname "$0")/.." && pwd)"
if [ -x "$DIR/s1duo/bin/airalang" ]; then
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) exec "$DIR/s1duo/bin/airalang" "$@"
src_dir = os.path.join(base_dir, "src") elif [ -x "/data/data/com.termux/files/usr/bin/airalang" ]; then
exec "/data/data/com.termux/files/usr/bin/airalang" "$@"
if os.path.isdir(src_dir): fi
sys.path.insert(0, src_dir) exec python3 "$DIR/src/cli.py" "$@"
elif os.path.isdir("/data/data/com.termux/files/home/airalang/src"):
sys.path.insert(0, "/data/data/com.termux/files/home/airalang/src")
import cli
if __name__ == "__main__":
cli.main()
+20 -34
View File
@@ -1,23 +1,23 @@
#!/bin/bash #!/bin/bash
# ============================================================= # =============================================================
# 🌟 AiraLang Global Installer for Termux & Linux # 🌟 AiraLang Global Native Installer for Linux & Termux
# 👑 Creator: Adam Eehan (Aira Group of Technology) # 👑 Creator: Adam Eehan (Founder & CEO, Aira Group of Technology)
# ⚡ Engine: AiraLang S1 Duo Native Systems Flagship
# ============================================================= # =============================================================
set -e set -e
echo -e "\033[1;36m" echo -e "\033[1;36m"
echo " ___ _ __ " echo " ___ _ __ _____ __ ____ "
echo " / | (_)________ _/ / ____ _____ ____ _" echo " / | (_)________ _/ / ____ _____ ____ _ / ___// / / __ \__ ______ "
echo " / /| | / / ___/ __ \`/ / / __ \`/ __ \/ __ \`/" echo " / /| |/ / ___/ __ \`/ / / __ \`/ __ \/ __ \`// __// / / / / / / / / __ \ "
echo " / ___ |/ / / / /_/ / /___/ /_/ / / / / /_/ / " echo " / ___ / / / / /_/ / /___/ /_/ / / / / /_/ /___/ / /__/ /_/ / /_/ / /_/ / "
echo "/_/ |_/_/_/ \\__,_/_____/\\__,_/_/ /_/\\__, / " echo " /_/ |/_/_/ \\__,_/_____/\\__,_/_/ /_/\\__, //____/____/_____/\\__,_/\\____/ "
echo " /____/ " echo " /____/ "
echo -e "\033[0m" echo -e "\033[0m"
echo -e "\033[1;32m[*] Installing AiraLang (v1.2.0 Next-Gen Engine)...\033[0m" echo -e "\033[1;32m[*] Compiling & Installing AiraLang S1 Duo Native Engine...\033[0m"
# Target installation directory REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
INSTALL_DIR="$HOME/.airalang"
BIN_DIR="" BIN_DIR=""
if [ -d "/data/data/com.termux/files/usr/bin" ]; then if [ -d "/data/data/com.termux/files/usr/bin" ]; then
@@ -31,29 +31,15 @@ else
mkdir -p "$BIN_DIR" mkdir -p "$BIN_DIR"
fi fi
echo -e "\033[1;34m[*] Target Binary Path: $BIN_DIR/airalang\033[0m" echo -e "\033[1;34m[*] Building native engine with clang...\033[0m"
cd "$REPO_DIR/s1duo"
make clean
make
# Create symlink / launcher cp bin/airalang "$BIN_DIR/airalang"
cat << 'EOF' > "$BIN_DIR/airalang" cp bin/airalang "$BIN_DIR/airalang3"
#!/data/data/com.termux/files/usr/bin/python3 chmod 755 "$BIN_DIR/airalang" "$BIN_DIR/airalang3"
import sys
import os
INSTALL_PATH = os.path.expanduser("~/.airalang/src") echo -e "\033[1;32m[+] AiraLang S1 Duo Successfully Installed to $BIN_DIR/airalang! 🚀\033[0m"
LOCAL_PATH = "/data/data/com.termux/files/home/airalang/src" echo -e "\033[1;37m[*] Run \033[1;33mairalang\033[0m to start the REPL, or \033[1;33mairalang <script.aira>\033[0m to execute.\033[0m"
echo -e "\033[1;35m[*] Standalone ELF binary compiler: \033[1;33mairalang -b <script.aira> -o <bin>\033[0m"
if os.path.exists(LOCAL_PATH):
sys.path.insert(0, LOCAL_PATH)
elif os.path.exists(INSTALL_PATH):
sys.path.insert(0, INSTALL_PATH)
import cli
if __name__ == "__main__":
cli.main()
EOF
chmod +x "$BIN_DIR/airalang"
echo -e "\033[1;32m[+] AiraLang Successfully Installed! 🚀\033[0m"
echo -e "\033[1;37m[*] Run \033[1;33mairalang\033[0m to start the REPL, or \033[1;33mairalang <script.aira>\033[0m to run a file.\033[0m"
+4 -3
View File
@@ -4,7 +4,7 @@ LDFLAGS = -pie -Wl,-z,relro,-z,now -lm
SRCS = src/common.c src/lexer.c src/value.c src/ast.c src/parser.c src/env.c src/modules.c src/evaluator.c src/elf_emitter.c src/main.c SRCS = src/common.c src/lexer.c src/value.c src/ast.c src/parser.c src/env.c src/modules.c src/evaluator.c src/elf_emitter.c src/main.c
OBJS = $(SRCS:.c=.o) OBJS = $(SRCS:.c=.o)
TARGET = bin/airalang3 TARGET = bin/airalang
INSTALL_DIR = /data/data/com.termux/files/usr/bin INSTALL_DIR = /data/data/com.termux/files/usr/bin
all: $(TARGET) all: $(TARGET)
@@ -19,9 +19,10 @@ $(TARGET): $(OBJS)
install: $(TARGET) install: $(TARGET)
@mkdir -p $(INSTALL_DIR) @mkdir -p $(INSTALL_DIR)
cp $(TARGET) $(INSTALL_DIR)/airalang
cp $(TARGET) $(INSTALL_DIR)/airalang3 cp $(TARGET) $(INSTALL_DIR)/airalang3
chmod 755 $(INSTALL_DIR)/airalang3 chmod 755 $(INSTALL_DIR)/airalang $(INSTALL_DIR)/airalang3
@echo "\033[1;32m[✓] Installed airalang3 to $(INSTALL_DIR)/airalang3\033[0m" @echo "\033[1;32m[✓] Installed airalang and airalang3 to $(INSTALL_DIR)\033[0m"
clean: clean:
rm -rf src/*.o bin/ rm -rf src/*.o bin/
+6 -6
View File
@@ -76,7 +76,7 @@ static void run_repl(void) {
char line_buf[4096]; char line_buf[4096];
for (;;) { for (;;) {
printf(COLOR_GREEN "aira3> " COLOR_RESET); printf(COLOR_GREEN "airalang> " COLOR_RESET);
fflush(stdout); fflush(stdout);
if (!fgets(line_buf, sizeof(line_buf), stdin)) { if (!fgets(line_buf, sizeof(line_buf), stdin)) {
@@ -115,11 +115,11 @@ int main(int argc, char** argv) {
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
print_banner(); print_banner();
printf("Usage:\n"); printf("Usage:\n");
printf(" airalang3 <script.aira> Execute AiraLang script with S1 Duo native engine\n"); printf(" airalang <script.aira> Execute AiraLang script with high-speed native engine\n");
printf(" airalang3 -b <script.aira> -o <bin> Compile directly to raw standalone ELF machine binary (0%% C, 0%% Python)\n"); printf(" airalang -b <script.aira> -o <bin> Compile directly to raw standalone ELF machine binary (0%% C, 0%% Python)\n");
printf(" airalang3 -c \"<code>\" Execute inline AiraLang code string\n"); printf(" airalang -c \"<code>\" Execute inline AiraLang code string\n");
printf(" airalang3 Start S1 Duo interactive REPL\n"); printf(" airalang Start AiraLang interactive REPL shell\n");
printf(" airalang3 -v, --version Show engine version & security metadata\n"); printf(" airalang -v, --version Show engine version & security metadata\n");
return 0; return 0;
} }