2
<section id="overview">
4
<p>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.</p>
5
<section id="gettingstarted">
7
<p>The classic "Hello, world" example in Vala:</p>
11
public class Sample : Object {
16
stdout.printf ("Hello, world!\n");
19
static int main (string[] args) {
20
var sample = new Sample ();
25
<p>Store the code in a file whose name ends in ".vala", such as <code>hello.vala</code>, and compile it with the command:</p>
26
<blockcode>valac -o hello hello.vala</blockcode>
27
<p>This will produce an executable file called <code>hello</code>.</p>