Implemented · v0.5.0-preview.5

Learning paths

Progress from the first run to types, packages and native execution.

Start with the first project and run its tests. Study the easy example for tasks and iteration, then the advanced example for collections, ranges and recoverable errors.

Continue with modules, explicit ownership and pure parallel tasks. Compare the structured sample across interpreter, bytecode and native engines.

easy

examples/easy/src/main.zbl · v0.5.0-preview.5 · interpreter, bytecode

ZBL source
needs console
name = "Zebvix"
task welcome(user: text):
    show "Welcome " + user
welcome(name)
total = 0
repeat value in [10, 20, 30]:
    total = total + value
show total

task test_total():
    assert(1 + 2 * 3 == 7)
Recorded output
Welcome Zebvix
60