valaGetting started with vala

Remarks

This section provides an overview of what vala is, and why a developer might want to use it.

It should also mention any large subjects within vala, and link out to the related topics. Since the Documentation for vala is new, you may need to create initial versions of those related topics.

Versions

VersionRelease Date
0.36.42017-06-26
0.36.32017-05-02
0.36.22017-04-25
0.36.12017-04-03
0.36.02017-03-18
0.34.62017-03-02
0.34.52017-03-02
0.34.42016-12-05
0.34.32016-11-22
0.34.22016-10-23
0.34.12016-10-09
0.34.02016-09-19
0.32.12016-06-20
0.32.02016-03-21
0.31.12016-02-07
0.30.22016-06-20
0.30.12016-01-31
0.30.02015-09-18
0.29.32015-08-11
0.29.22015-06-22
0.29.12015-05-27
0.28.12015-08-11
0.28.02015-03-22
0.27.22015-03-18
0.27.12015-01-12
0.26.22015-01-12
0.26.12014-10-13
0.26.02014-09-22
0.25.42014-09-15
0.25.32014-09-01
0.25.22014-08-24
0.25.12014-07-23
0.24.02014-03-24
0.23.32014-02-18
0.23.22014-02-05
0.23.12013-12-22
0.22.12013-11-13
0.22.02013-09-23
0.21.22013-09-13
0.21.12013-08-02
0.20.12013-04-08
0.20.02013-03-26
0.19.02013-02-20
0.18.12012-11-13
0.18.02012-09-24
0.17.72012-09-16
0.17.62012-09-03
0.17.52012-08-20
0.17.42012-08-06
0.17.32012-07-16
0.17.22012-06-24
0.17.12012-06-02
0.17.02012-04-28
0.16.12012-06-23
0.16.02012-03-26
0.15.22012-02-25
0.15.12012-01-26
0.15.02011-12-05
0.14.22012-01-31
0.14.12011-11-30
0.14.02011-09-17
0.13.42011-09-07
0.13.32011-08-22
0.13.22011-08-16
0.13.12011-07-06
0.13.02011-06-17
0.12.12011-06-01
0.12.02011-04-03
0.11.72011-03-16
0.11.62011-02-14
0.11.52011-01-21
0.11.42011-01-15
0.11.32011-01-05
0.11.22010-11-08
0.11.12010-10-25
0.11.02010-10-04
0.10.42011-03-12
0.10.32011-01-22
0.10.22010-12-28
0.10.12010-10-26
0.10.02010-09-18
0.9.82010-09-04
0.9.72010-08-19
0.9.62010-08-18
0.9.52010-08-09
0.9.42010-07-27
0.9.32010-07-14
0.9.22010-06-20
0.9.12010-06-07
0.8.12010-04-21
0.8.02010-03-31
0.7.102010-02-04
0.7.92009-12-19
0.7.82009-11-04
0.7.72009-09-27
0.7.62009-09-18
0.7.52009-08-02
0.7.42009-06-28
0.7.32009-05-26
0.7.22009-05-07
0.7.12009-04-20
0.7.02009-04-05
0.6.12009-04-12
0.6.02009-03-30
0.5.72009-02-20
0.5.62009-01-18
0.5.52009-01-10
0.5.42009-01-07
0.5.32008-12-16
0.5.22008-12-01
0.5.12008-11-03
0.4.02008-10-20

Installation or Setup

The easiest way of installing Vala is to install your distribution-specific package.

On Ubuntu:

sudo apt install valac

On Fedora:

sudo dnf install vala

On Arch:

sudo pacman -S vala

On OS X, with Homebrew:

brew install vala

On Windows, you can get an installer for the latest version here.

You can also build it from sources, but you'll need to install pkg-config, a C compiler, a standard C library and GLib 2 before:

wget https://download.gnome.org/sources/vala/0.34/vala-0.34.4.tar.xz
tar xvf vala-0.34.4.tar.xz
cd vala-0.34.4
./configure
make
sudo make install

Hello world!

In foo.vala:

void main (string[] args) {
    stdout.printf ("Hello world!");
}

To compile the source into the foo binary:

valac foo.vala

To compile and run the source:

vala foo.vala