Podrška #21466
Zatvorenvala gtk
0%
Fajlovi
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
http://github.com/danlucraft/valar
== DESCRIPTION: * Write Ruby extensions in Vala. * Automatically generate Ruby bindings for them. * Embed a Ruby interpreter into Vala. Includes a VAPI file for calling the Ruby C API from Vala, and a code generator valar to introspect on a Vala library and automatically generate bindings for Ruby. Other features: * automated conversions between Vala and Ruby types * An object oriented Ruby API. Instead of RSTRING_PTR(str), you write str.to_vala() * Ruby types. So instead of VALUE, VALUE, VALUE, you write Ruby.Value, Ruby.Array, Ruby.String and enjoy automatically generated type checking to rule out segfaults. * Automated memory management, linked to the Ruby garbage collector.
Izmjenjeno od Ernad Husremović prije više od 15 godina
unity ubuntu je napisan vala-i
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
bringout@nvostro-hernad:~/vala$ valac --thread --pkg libsoup-2.4 --pkg json-glib-1.0 g.vala
bringout@nvostro-hernad:~/vala$ ls -l -g -h
ukupno 32K -rwxr-xr-x 1 bringout 25K 2010-10-27 11:22 g
bringout@nvostro-hernad:~/vala$ ./g
full uri: http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Hello%20World&langpair=en|it Translated Text : Ciao a tutti
Izmjenjeno od Ernad Husremović prije više od 15 godina
http://www.wikivs.com/wiki/GTK_vs_Qt
GTK+ applications can also be developed with Vala, an object oriented programming language similar to C#, specially designed for the GObject type system. Vala programs compile to C code, without imposing any additional runtime requirements and without using a different ABI compared to applications and libraries written in C.
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
http://blogs.gnome.org/juergbi/2009/09/18/closures-and-asynchronous-methods-in-vala/
bringout@nvostro-hernad:~/vala$ cat c.vala
void main (string[] args) {
Gtk.init (ref args);
var window = new Gtk.Window (Gtk.WindowType.TOPLEVEL);
window.set_default_size (300, 50);
window.destroy.connect (Gtk.main_quit);
var button = new Gtk.Button.with_label ("Click me!");
button.clicked.connect (() => {
window.title = "Closures in Vala";
});
window.add (button);
window.show_all ();
Gtk.main ();
}
bringout@nvostro-hernad:~/vala$ valac --thread --pkg gdk-2.0 --pkg gtk+-2.0 c.vala
Izmjenjeno od Ernad Husremović prije više od 15 godina
probao i async primjer na isti način.
interesantna je elegantna integracija sa dbus-om:
Async methods in Vala can also be used to implement D-Bus servers that can process multiple requests at the same time. Using it couldn’t be easier, just write an async method such as the above example, add it to a class annotated with [DBus (name = "org.example.Test")]
Izmjenjeno od Ernad Husremović prije više od 15 godina
evo ovdje odmah d-bus server i client u vala:
http://blogs.gnome.org/juergbi/2010/06/20/gdbus-gvariant-gtk-3-and-vala/
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
http://broadcast.oreilly.com/2010/08/vale-java-scala-vala-palava.html
Vala is based on GNOME's GObject system, and provides the kind of class features you would expect. Like Scala it has a language-level equivalent to Java Beans get*() and set*() properties, but it also has language-level support for property change notifications and listeners. It does not have a strong XML story, just a mini parser, but it does seem to have a good Unicode story (strings are UTF-8, the string.getch() returns a unichar 16-bit character.) Probably its main difference with Java at a feature level is that that it has a reference-counting system for object de-allocation, which gives more deterministic real-time behaviour compared to Java's GC but opens the dooor to some programming errors. The other oddity, in this age, is that it does not do boundary checking on array accesses: so a little more discipline is required than Java (but presumably a lot less than in C).
I would expect that anyone who would be considering writing a new C or C++ application or who were C, C++, C# or disgruntled Java programmers wanting to avoid the clutches of the large corporations, and with a pretty strong and proven (OS-neutral?) platform behind it (i.e. the might of GNOME) might be interested in Vala. Like Scala, I think you would want to check whether the IDE support was adequate before launching onto a big project, of course.
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
Izmjenjeno od Ernad Husremović prije više od 15 godina
u path dodao c:\vala\bin, c:\valide\bin i valide radi
testirao gornji c.vala i to radi.
takođe radi i valide. valide zauzima svega 17MB RAM-a.
Izmjenjeno od Ernad Husremović prije više od 15 godina
- Status promijenjeno iz Dodijeljeno u Zatvoreno