Hello, World
Your first Vyne program, the execution modes, and a first look at regions.
On Windows, Installation describes the precompiled Scoop package. The commands below assume vynec is on PATH; in a source checkout, substitute ./vynec (./vynec.exe on Windows) to use the local build.
Create hello.vy:
Run it:
A bare invocation compiles the source and runs the resulting program. out appends a newline; use vcore or arduino.serial_print when you need byte-level control.
The same file in three modes
The interpreter is the quickest feedback loop. --compile is the path to a standalone binary. Both consume the same parsed tree.
Values and interpolation
Vyne has explicit types when you want them:
:= introduces a new binding; = reassigns an existing one. The distinction is enforced by the parser and is the single most important syntax change from older Vyne code.
A first region
Everything allocated inside region scratch is reclaimed at the closing brace. The loop can run five times or five million times; the arena returns to its entry offset on every iteration. That is the core memory model, and the rest of the language is designed to make it visible rather than implicit.
Comments
Next
- Language Tour — every construct in one pass.
- Memory & Regions — the full policy matrix.
- Projects & Tooling — scaffold, build, run, and benchmark a real project.