Vala (programming language)

Vala (programming language)

Infobox programming language
name = Vala
paradigm = structured, imperative, object-oriented
year = 2006
influenced_by = C, C++, C#, Java
developer = Jürg Billeter, Raffaele Sandrini

Vala is a programming language that tries to bring modern language features to C, without additional runtime requirements and with little overhead, by targeting the GObject object system. It was developed by Jürg Billeter and Raffaele Sandrini. The syntax borrows heavily from C#.

Comparison with C

In comparison to C and C++, Vala uses language-level reference counting to retrieve unused memory. This memory management system does not keep track of memory handled via pointers, however.

Because Vala code is converted into standard C code before being compiled, it can take advantage of C language libraries such as GTK+.

Code example

A simple "Hello World" program:

void main () { print ("Hello World ");}

A more complex version, showing some of Vala's object-oriented features:

class Sample : Object { void run () { stdout.printf ("Hello World "); }

static void main (string [] args) { var sample = new Sample (); sample.run ();

External links

* [http://live.gnome.org/Vala The Vala Programming Language] , on GNOME Live!
* [http://code.google.com/p/vala-benchmarks/ Benchmark of Vala versus C# and C]


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • C (programming language) — C The C Programming Language[1] (aka K R ) is the seminal book on C …   Wikipedia

  • D (programming language) — For other programming languages named D, see D (disambiguation)#Computing. D programming language Paradigm(s) multi paradigm: imperative, object oriented, functional, meta Appeared in 1999 (1999) Designed by …   Wikipedia

  • Vala — can refer to:* Völva, a priestess in Norse mythology or a Scandinavian earth spirit * Numonius Vala, an Ancient Roman family name, or any of the men of that name * Vala (Middle earth), an angelic being in J. R. R. Tolkien s fiction * Vala (Vedic) …   Wikipedia

  • C Sharp (programming language) — The correct title of this article is C# (programming language). The substitution or omission of the # sign is because of technical restrictions. C# Paradigm(s) multi paradigm: structured, imperative …   Wikipedia

  • Vala — Семантика: структурное, императивное, объектно ориентированное программирование Появился в: 2006 Автор(ы): Йюрг Биллетер, Раффаэле Сандрини Расширение файлов: .vala, .vapi, .gir, .c …   Википедия

  • Vala (langage de programmation) — Vala Apparu en 2006 Auteur Jürg Billeter Développeur Jürg Billeter Raffaele Sandrini Paradigme …   Wikipédia en Français

  • Microsoft Visual Programming Language — или MVPL  язык визуального и поточного программирования, разработанный корпорацией Microsoft для своей Microsoft Robotics Developer Studio. Microsoft Visual Programming Language выделяется среди прочих языков программирования Microsoft,… …   Википедия

  • List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… …   Wikipedia

  • Property (programming) — In some object oriented programming languages, a property is a special sort of class member, intermediate between a field (or data member) and a method. You read and write a property just as you read and write a field, but this is (usually)… …   Wikipedia

  • C++ — У этого термина существуют и другие значения, см. C. См. также: Си (язык программирования) C++ Семантика: мультипарадигмальный: объектно ориентированное, обобщённое, процедурное, метапрограммирование Тип исполнения: компилируемый Появился в …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”