dryLang Documentation
Welcome to the official dryLang documentation. dryLang is a minimalist, dynamically-typed programming language compiled to bytecode and executed on a stack-based virtual machine.
Table of Contents
- Getting Started
- Variables & Constants
- Data Types
- Operators
- Strings
- Control Flow
- Loops
- Functions
- Collections
- Structs
- Error Handling
- Modules
- Built-in Functions
- HTTP Server
- Database
- Comments
- CLI Reference
- Error Messages
Design Philosophy
dryLang follows the Writeless, get more principle — Writeless, get more.
- Go inspired: simplicity, single-binary output, fast compilation
- Python inspired: clean variable naming, dynamic typing
- JavaScript inspired:
${} string interpolation
- All compressed to the absolute minimum syntax
Every keyword is 1–4 characters. Every built-in function is 1–4 characters. No exceptions.
What Can dryLang Do?
- HTTP Server — Built-in
op() starts a web server (powered by Go's net/http)
- SQL Database — Built-in
db() connects to SQLite, MySQL, or PostgreSQL
- HTTP Client — Built-in
req() fetches data from any URL
- JSON — Built-in
json() parses JSON into native maps/arrays
- Module System — Import local files, URLs, or directly from GitHub repos
- File I/O — Read, write, list, and delete files
- System Commands — Execute shell commands, read env variables
- Advanced Math — sqrt, pow, trig, log via
math()
- 38 Built-in Functions — all with 1–4 character names