Repository navigation
Tiny v0.1.0 - First Public Preview
Tiny v0.1.0 - First Public Preview
This is the first public preview release of Tiny.
Tiny is a lightweight scripting/programming language built with Go. It includes a custom VM, bytecode cache, classes, functions, std modules, and scripting-friendly syntax.
Highlights
- Fast Go-based VM
- Bytecode compilation and cache support
- Lightweight scripting syntax
- Functions and anonymous functions
- Default, variadic, nullable, and typed parameters
- Closures with captured variables
- Classes with fields and methods
- Enums
- Arrays and objects
- String interpolation
- Optional chaining
- Union type hints
- Class type hints
try/catcherror handling- Stack traces
spawnand task support- Import/export system
- Standard library modules
- Plugin support
- VS Code / LSP support through the Tiny Language Support extension
Language Features
Tiny currently supports:
letandconstfn- anonymous functions
returnif,else,else ifwhileforfor inbreakandcontinuetry,catch, andthrowclassfieldpublic/privateenumimportexportspawntask.await- optional chaining with
?. - type hints
- union types like
string | null - nullable params like
name?: string
Standard Library
Tiny includes std modules for common scripting tasks, including:
iotimejsonarraystringobjectmathfspathprocesshttpnetbufferregexerrorruntime
Some modules may still change as Tiny evolves.
Example
import std "io";
class Counter {
field value: number = 0;
fn inc() {
this.value++;
return this.value;
}
}
const counter = Counter();
io.println(counter.inc());
io.println(counter.inc());