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 OS like regarded in the get started guide for developers.

Useful links

922 questions
52
votes
2 answers

How to repair warning: missing braces around initializer?

The warning is produced by the c code generated by vala. warning: missing braces around initializer The code works but the warning is annoying. The vala code referenced by the warning is struct Position {uint x; uint y;} private static Position…
jacknad
  • 12,453
  • 38
  • 115
  • 190
45
votes
9 answers

Vala: Gotchas, Tips and Tricks

As a programmer who is new to Vala, what is your number one piece of advice to someone who is new to the language?
Ande Turner
  • 6,642
  • 18
  • 76
  • 105
38
votes
1 answer

Sometimes GTK modal dialogs are not modal --- bug or feature?

When I create a custom dialog in GTK (both, GTK2 or GTK3) and set it to be modal, all input to other windows of my application is ignored. This works nearly always, but it fails under certain conditions. When I add a ScrolledWindow containing a…
Simme
  • 565
  • 4
  • 7
24
votes
5 answers

Why some compilers prefer hand-crafted parser over parser generators?

According to Vala documentation: "Before 0.3.1, Vala's parser was the classic flex scanner and Bison LALR parser combination. But as of commit eba85a, the parser is a hand-crafted recursive descent parser." My question is: Why? The question could be…
vladimir
  • 2,095
  • 2
  • 19
  • 24
23
votes
3 answers

Vala (C#-like language) compiles to C?

I'm a C# developer who stumbled across a new programming language for linux called vala. It has almost exactly the same syntax as C#, which is awesome. I never really was a big fan of Mono. This allows programmers to write GTK+ apps in a C# style…
Kredns
  • 34,183
  • 49
  • 147
  • 200
19
votes
4 answers

Vala for Android?

Is it possible to write a Vala application and get it to run on an Android device?
GnomeCubed
  • 584
  • 4
  • 12
18
votes
6 answers

Will Vala survive?

I'm just wondering how the Vala project is coming along. I'm not sure if this will be a great new technology or just one that will fall by the wayside. Does anyone know how many people are working on this project and if I can contribute (writing…
Kredns
  • 34,183
  • 49
  • 147
  • 200
18
votes
2 answers

Is vala a cross platform language?

Vala is a programming language with C# same syntactic, valac compiles vala program to C source code, is it possible to run my vala program on windows os?
Nasser Mansouri
  • 732
  • 2
  • 6
  • 23
15
votes
3 answers

Can Vala be used without GObject?

I'm new to Vala. I'm not familiar with GObject. As I understand it, GObject was spun off from the GLib project from GNOME. Correct me if I'm wrong. I do like the syntax and implementation of Vala very much, yet it is not in my intentions to write…
thwd
  • 21,419
  • 4
  • 68
  • 99
12
votes
2 answers

Can I code for iPhone in Vala?

I'm coding a game for iphone in ooc language (a new language that compiles to c) using OpenGL. It's really going well, and ooc is a language I really like. Now I've just found out about Vala and I don't get very well what it means that it relies on…
Damian
  • 5,291
  • 9
  • 52
  • 86
11
votes
1 answer

how to keep gtk.window always on top level

I am trying to keep a gtk.window on top, but I'm having trouble. Here is my code so far. The example is in vala gnome (on windows 7). public void onTop() { window.decorated = false; window.modal = true; window.set_keep_above(true); }
rChavz
  • 220
  • 3
  • 15
11
votes
4 answers

Vala vapi files documentation

I'd like to hack on an existing GLib based C project using Vala. Basically what I'm doing is, at the beginning of my build process, using valac to generate .c and .h files from my .vala files and then just compiling the generated files the way I…
Jordan
  • 1,559
  • 3
  • 25
  • 40
10
votes
1 answer

Performance differences between VALA vs AOT compilations?

I have been developing an image processing application in Java but I have been recently interested in VALA. The reason is because I believe I can increase the application performance (my concern is mainly in the interconnection with C/C++ libraries,…
lepe
  • 22,543
  • 9
  • 85
  • 99
10
votes
4 answers

Is there a terminal tool to automatically generate autoconf/automake makefiles for a Vala project?

I am trying to create a Vala project to see how i like developing with the language as a possible replacement for Mono. I think that the automake stuff can be used to generate a project template with all the necessary files (sans my .vala code). Any…
Ronaldo Nascimento
  • 1,529
  • 2
  • 19
  • 36
10
votes
3 answers

Logging with Vala

I am new to Vala programming and have experiences with Java and .NET yet I haven't been able to find anything useful on how to log with Vala. Is there any useful logging facility like log4j or log4net or what's the suggested way to log in Vala with…
Martin Macak
  • 2,983
  • 1
  • 25
  • 38
1
2 3
61 62