Vala is a new programming language that aims to bring modern programming language features to GNOME developers without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
The classic "Hello, world" example in Vala:
Store the code in a file whose name ends in ".vala", such as hello.vala
, and compile it with the command:
This will produce an executable file called hello
.