Re: [Vala] [PATCH] GIO nullable parameters

2008-05-20 Thread Sam Liddicott
In fact I think I'll use such annotation on a samba4 module I'm working on, so if anyone wants to influence inline C representations of vala attributes, now is the time to do it. Sam -Original Message- From: Sam Liddicott <[EMAIL PROTECTED]> Sent: 20 May 2008 16:12 Cc: vala-list@gnome.o

[Vala] gdk/gdkkeysyms.h excluded from gdk package

2008-05-20 Thread Thijs Vermeir
Hello, I need one of the following macros defined in the file gdk/gdkkeysyms.h. Like GDK_Up, GDK_Down, ... But I see the file is excluded from the gdk package. Why is it not included? and how can I access the GDK_Up macro? Thanks, Thijs ___ Vala-list m

Re: [Vala] : benchmarks gobject

2008-05-20 Thread martin (OpenGeoMap)
Hi: > > > In the case of C++, Vala may be better or worse depending the bench, > like in plain-C [http://shootout.alioth.debian.org/gp4/c.php]. When > you use many OO features of Vala, you loose the speed of plain-C and > you only benchmarks the GObject sub-system ;). > > Thanks for the answer.

Re: [Vala] : benchmarks gobject

2008-05-20 Thread Frederik
Clément DAVID schrieb: > Hi, > > I have made this benchmarks only to demonstrate the performance of Vala > versus C# (C++ has been added after the creation). Hi, do you know what's the reason that nBody is the slowest with Vala? Regards, Frederik _

Re: [Vala] : benchmarks gobject

2008-05-20 Thread Clément DAVID
Hi, I have made this benchmarks only to demonstrate the performance of Vala versus C# (C++ has been added after the creation). In the case of C++, Vala may be better or worse depending the bench, like in plain-C [http://shootout.alioth.debian.org/gp4/c.php]. When you use many OO features of Vala,

Re: [Vala] Compile error (interfacing DBus)

2008-05-20 Thread Jürg Billeter
Hi Hannes, On Tue, 2008-05-20 at 11:45 +0200, Hannes Matuschek wrote: > I've tried to deal with HAL's DBus-interface but got some compile > errors (compiling the C code). > [...] > Fails to compile: > valac --pkg=dbus-glib-1 -o test src/main.vala > main.c: In function 'us_backup_main': > main.c:47

[Vala] Compile error (interfacing DBus)

2008-05-20 Thread Hannes Matuschek
Hi, I've tried to deal with HAL's DBus-interface but got some compile errors (compiling the C code). using GLib; public class USBackup: Object { public static int main(string[] args) { DBus.Connection conn; dynamic DBus.Object manager; string[]ids

[Vala] : benchmarks gobject

2008-05-20 Thread Martin (OpenGeoMap)
Hi: http://code.google.com/p/vala-benchmarks/wiki/BenchResults I always have a question about gobject. How is it posible than Gobject can be more quick than C++?? It´s supposed than in the compiling proccess c++ have the job done and gobject need runtime calculus. In big project like a CAD fo

Re: [Vala] [PATCH] GIO nullable parameters

2008-05-20 Thread Sam Liddicott
* Frederik wrote, On 20/05/08 14:01: > Jürg Billeter wrote: >> On Tue, 2008-05-13 at 12:09 +0200, Frederik wrote: >>> I think in the GIO vapi bindings there are more parameters that should >>> be marked as nullable. For example: "etag" as in File.replace() or >>> "progress_callback" as in File.move

Re: [Vala] [PATCH] GIO nullable parameters

2008-05-20 Thread Frederik
Jürg Billeter wrote: On Tue, 2008-05-13 at 12:09 +0200, Frederik wrote: I think in the GIO vapi bindings there are more parameters that should be marked as nullable. For example: "etag" as in File.replace() or "progress_callback" as in File.move(). Yes, we certainly still miss a lot of nullabl

Re: [Vala] Conditional compilation

2008-05-20 Thread Enrique Ocaña González
El Sunday 18 May 2008 17:01:28 Enrique Ocaña González escribió: > > > Or, you could use the [Conditional] attribute as someone pointed out > > > in a previous e-mail. I pasted the answer into the FAQ: > > > http://live.gnome.org/Vala/FAQ > > > > > > Regarding the strange output, I think they are c