Fractadyne / Fractyne / Docs
ReferenceFractyne Documentation
Everything documented so far about the language — this will grow alongside the interpreter itself.
Introduction
Fractyne is the programming language at the center of the Fractadyne ecosystem — designed with simplicity, performance, and developer freedom in mind, and built to run natively on FractalOS.
The language is currently in early development. The core interpreter is being actively built, which means the syntax documented here reflects the current design direction rather than a finished, frozen specification.
Fractyne is in Early Development. Syntax, keywords, and behavior described here may still change before an initial release.
Syntax
Fractyne source files use the .fy extension. A few conventions carry through everything else on this page:
- Blocks are wrapped in curly braces
{ }, the same way in modules, functions, and entry points. - Comments start with
//and run to the end of the line. - Strings are written in double quotes, e.g.
"Hello, Fractadyne". - Statements don't require a trailing semicolon.
Variables
Variables are declared with let. Fractyne infers the type from the value you assign — strings, numbers, and booleans all work the same way:
// Basic variable declarationslet name = "Fractadyne"let version = 0.6let isActive = true
Use echo to print a value, and + to join strings together with other values.
Functions
Functions are declared with function, take a comma-separated parameter list, and are called by name:
function greet(user) { echo "Hello " + user}greet("Fractadyne")
echo itself works like a built-in function throughout the language — it's how every example on this page produces output.
Modules
A Fractyne program is organized into a module, with a start block as its entry point:
module Fractyne { start { echo "Hello, Fractadyne" }}
Other modules — including FractalOS system modules — are brought in with import:
import fractalos.systemlet battery = system.batteryLevel()echo "Battery at " + battery + "%"
System modules like fractalos.system are an early preview of what FractalOS integration will look like, not a finished API — see the FractalOS API docs for status.
Examples
For the interactive, tabbed version of these examples with live terminal output, see the Example Code section on the Fractyne page. Additional constructs — conditionals, loops, and collections — aren't documented yet; they'll appear here as the interpreter supports them.
- Variables — declaring and printing values with
letandecho. - Functions — declaring a function and calling it.
- FractalOS Integration — importing a system module and calling into it.