How can I distribute an open source Vala project?

One of the only languages ​​that compiles to a high-level language, such as C, Vala interested me quite a bit. I would like to start a small project with him, but I was wondering how I would distribute it.

The fact is that it compiles into C code (suppose C99).

  • Is it possible to distribute C code instead of Vala code?
  • If so, is the code compatible on all platforms?
  • Or, for example, when using sockets, automatically include the appropriate material (winsock.h for Windows)?
+6
c open-source vala
source share
3 answers

From the Vala developer at irc, #vala at irc.gnome.org:

18:57 < flo> It is of course possible to distribute the C code as well. The compiler itself is shiped with vala and C code. We actually access C-libraries over an abstract interface with all advantages and disadvantages of the libraries we are using, including platform dependencies. 
+3
source share

Automake from version 1.10 or 1.11 has Vala support .

+2
source share

Are you google have you tried Is there anything to say on Valal's homepage? Did you ask on the Val forums? There are only 7 questions noted by Vala on SO (and one of them is “Will Vala survive?”), So this may not be the best place to ask.

Why not just compile your vala into C and then run it through the C compiler, preferably on another PC (for thorough testing, make this second PC one that never has any development, and install the C compiler specifically for your test) .

Of course, this may turn out to be something for program a , but not for all programs. Perhaps ask for a mailing list ( http://mail.gnome.org/mailman/listinfo/vala-list ) or devlopers? Jürg Billeter - j at bitron dot ch Raffaele Sandrini - rasa at gmx dot ch

The rephrased question is “how long has it been part of the line”, the best answer is “suck it and see”, and the caveat is YMMV ;-) g

-3
source share

All Articles