return total
vfly run script.vfly --allow-net=api.example.com:443 --allow-read=/tmp Logs are automatically emitted as JSON with trace IDs, making them compatible with Loki, DataDog, or Splunk. Vfly Script -Fly Script---
data = json.decode(resp.body) total = 0 for num in data.numbers total += num return total vfly run script
func fetch_and_sum(url string) int resp = http.get(url, timeout: 2_000) if resp.status != 200 return -1 | | Type System | Dynamic with optional gradual typing (
Unlike general-purpose languages (Python, JavaScript, Go), Vfly Script is intentionally restricted and optimized for — often used in CI/CD pipelines, serverless functions, API gateways, and IoT edge devices. 2. Core Characteristics | Feature | Description | |-----------------------|-----------------------------------------------------------------------------| | Interpreted | No compilation step; executes directly from source via a small VM. | | Memory-safe | Automatic garbage collection with bounded heap (no unbounded allocation). | | Concurrency Model | Actor-based (like Erlang) or async/await (configurable). | | Type System | Dynamic with optional gradual typing ( .vfly files support type hints). | | Standard Library | Minimal: HTTP client, file I/O, JSON, regex, timers, process spawning. | | Embeddable | Can be embedded into Go, Rust, or C++ applications as a scripting engine. | 3. Language Syntax (Example) // Vfly Script sample: HTTP request + JSON processing import http import json
If your current scripts in Bash, Python, or JavaScript feel too heavy, fragile, or slow to start, Vfly Script offers a compelling, purpose-built alternative. Note: As of early 2026, Vfly Script is an emerging technology. Always refer to the official documentation for the latest syntax, APIs, and stability guarantees.
1. Introduction Vfly Script (commonly known as Fly Script ) is a lightweight, high-performance scripting language and runtime environment designed primarily for automation, task orchestration, and rapid tooling in cloud-native and edge computing environments. Its name derives from "Velocity Fly," emphasizing speed and minimal overhead.