Questions tagged [vala]

Vala is an object-oriented programming language that allows modern programming techniques to be used to write applications that run on the GNOME runtime libraries, particularly GLib and GObject. Vala is syntactically similar to C#, and is compiled to C which is then compiled to a native binary using the C compiler of the platform.

Vala is an object-oriented programming language that allows modern programming techniques to be used to write applications that run on the runtime libraries, particularly and . Vala is syntactically similar to , and is compiled to which is then compiled to a native binary using the C compiler of the platform.

Some Linux distributions adopt, officially, Vala as the main development applications' language such as , as noted in the get started guide for developers.

#Useful links

997 questions
7
votes
1 answer

Relationship Between Vala and Genie

From what I have read, core Gnome development began with C and this was extended by Vala (2006) and Genie (2008). Vala syntax appears to have been aimed at the Java/C# syntax/developer, whereas Genie appears to be aimed at Python (and a handful of…
AsymLabs
  • 933
  • 9
  • 15
7
votes
1 answer

Alternative syntax for C++, a la Genie for Vala?

The Vala language compiler can handle a very different looking syntax, Genie, which arguably could be considered a different language or an alternative syntax for one language. AFIK, anything you can do in Vala, you can write in Genie (ignoring…
DarenW
  • 16,549
  • 7
  • 63
  • 102
7
votes
1 answer

How do I access environment variables in Vala?

How do I access environment variables in Vala? (as above) it seems simple, but I can't find how g_getenv() is mapped into Vala.
kaStevie
  • 93
  • 5
7
votes
2 answers

Is Vala a sane language to parse, compared to C++?

The problems parsing C++ are well known. It can't be parsed purely based on syntax, it can't be done as LALR (whatever the term is, i'm not a language theorist), the language spec is a zillion pages, etc. For that and other reasons I'm deciding…
DarenW
  • 16,549
  • 7
  • 63
  • 102
7
votes
2 answers

How to use gtk/glade in vala

I'm trying to make a simple app with glade/gtk/vala. So far I have this: using Gtk; class HelloWorldApp : GLib.Object { const string UI = "test.glade"; public Window main_window; [CCode (instance_pos = -1)] public void…
mat
  • 103
  • 1
  • 4
7
votes
3 answers

Executing system command in Vala

I would like to execute a command (like ls) in Vala, like the Python os.system function, or, better, the popen function. Any idea ?
NowhereToHide
  • 353
  • 2
  • 7
7
votes
1 answer

How to generate GIR files from the Vala compiler?

I am trying to create python bindings to a vala library using pygi with gobject introspection. However, I am having trouble generating the GIR files (that I am planning to compile to typelib files subsequently). According to the documentation valac…
D R
  • 21,936
  • 38
  • 112
  • 149
7
votes
2 answers

How can I import other files in Vala?

The question pretty much says it all- how could I import file2.vala to file1.vala?
hkk
  • 2,069
  • 1
  • 23
  • 48
7
votes
4 answers

How much optimized is Vala generated C code over hand written C code?

Is Vala generated code are optimized like normal hand-written C code? Is there any performance overhead in using GObject system over not using it? NOTE: In my next C project I am researching over to use Vala or not. The project is not a GUI…
Anindya Chatterjee
  • 5,824
  • 13
  • 58
  • 82
7
votes
1 answer

Compiling a Vala source On Windows

I compiled a vala program by using following command: valac test.vala Of course am I able to run the program on my computer, but when I am trying to run the .exe file on a different one I get following error: libglib-***.dll is missing on this…
kaiser
  • 259
  • 1
  • 2
  • 6
7
votes
1 answer

Unit test framework for Vala

I am thinking of developing an application using Vala. I would like to write unit tests for my code - but I have not (as yet) found any actively maintained unit test frameworks for Vala (e.g. Valadate). Could anyone recommend a unit testing…
Homunculus Reticulli
  • 65,167
  • 81
  • 216
  • 341
7
votes
2 answers

How to use a Qt GUI with Vala?

I have found zero documentation on this subject (Have I been searching in the wrong places? It seems strange to me). I simply need to be able to use a Qt GUI for my Vala application. An example would be appreciated.
RobinJ
  • 5,022
  • 7
  • 32
  • 61
6
votes
2 answers

Gee HashMap containing methods as values

I'm trying to fill a Libgee HashMap where each entry has a string as key, and a function as value. Is this possible? I want this sort of thing: var keybindings = new Gee.HashMap (); keybindings.set ("h", this.show_help…
Riazm
  • 365
  • 2
  • 4
  • 10
6
votes
1 answer

What's the difference between async methods and threads?

Can someone explain what's the difference between async methods and creating a thread in Vala? And where I should use one or another in my code?
serge1peshcoff
  • 4,342
  • 11
  • 45
  • 76
6
votes
2 answers

How to handle errors while using Glib.Settings in Vala?

I am using Glib.Settings in my Vala application. And I want to make sure that my program will work okay even when the schema or key is not available. So I've added a try/catch block, but if I'm using the key that doesn't exist, the program…
serge1peshcoff
  • 4,342
  • 11
  • 45
  • 76
1 2
3
66 67