Languages Features Creators Calendar CSV Resources Blog About Pricing Add Language
GitHub icon

Vala

Vala - Programming language

< >

Vala is a programming language created in 2006.

#201on PLDB 17Years Old 1.2kUsers
3Books 0Papers 3kRepos

Try now: Riju · TIO

Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system. Vala is syntactically similar to C# and includes several features such as: anonymous functions, signals, properties, generics, assisted memory management, exception handling, type inference, and foreach statements. Its developers Jürg Billeter and Raffaele Sandrini aim to bring these features to the plain C runtime with little overhead and no special runtime support by targeting the GObject object system. Read more on Wikipedia...


Example from the web:
int main (string[] args) { var app = new Gtk.Application( "com.example.App", ApplicationFlags.FLAGS_NONE ); app.activate.connect(() => { var win = new Gtk.ApplicationWindow(app); var btn = new Gtk.Button.with_label("Hello World"); btn.click.connect(win.close); win.child = btn; win.present(); }) return app.run(args); }
Example from Riju:
void main () { print("Hello, world!\n"); }
Example from hello-world:
static void main (string[] args) { stdout.printf ("Hello World\n"); }
Example from Wikipedia:
void main () { print("Hello, world!\n"); }

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ stdout.printf
Comments ✓
// A comment
Line Comments ✓ //
// A comment
Semantic Indentation X

Books about Vala from ISBNdb

title authors year publisher
Introducing Vala Programming: A Language and Techniques to Boost Productivity Lauer, Michael 2019 Apress
Introducing Vala Programming: A Language and Techniques to Boost Productivity Lauer, Michael 2019 Apress
Vala (programming Language) Surhone and Lambert M. and Timpledon and Miriam T. and Marseken and Susan F. 2010
zephir.html · vala.html · icon.html

View source

- Build the next great programming language · Search · v2023 · Day 205 · Docs · Acknowledgements · Traffic · Traffic Today · Mirrors · GitHub · feedback@pldb.com