Welcome to the Dyon 0.39 tutorial!
Dyon is a dynamically typed scripting language, designed for game engines and interactive applications. It was started in 2016 by Sven Nilsen.
This tutorial is written for people with little programming experience.
The language in this tutorial is made simple on purpose. If you are experienced programmer, you might want to skip to the parts that interests you.
Dyon is different!
If you have used another programming language before, there are some things worth to keep in mind:
Dyon has a limited memory model because of the lack of a garbage collector. The language is designed to work around this limitation.
- Optional type system with ad-hoc types
- Built-in support for 4D vectors, HTML hex colors
- Go-like coroutines
There are plenty of new ideas in Dyon:
- Lifetime check for function arguments
returnas local variable
- Mathematical loops
- Current objects
- Grab expressions
- Dynamic modules as a way of organizing code
How this tutorial is organized
At the bottom there is a "Comments" section. This contains things you might have noticed and things you can try out on your own.
You will find the source code for all examples under "examples" in the git repository.