Re: [Vala] Zeitgeist porting

2009-04-04 Thread Christian Hergert
First off, I think Vala is a good choice, but for a completely different reason than what has been said here. Mono is quite fast, and just because it has a runtime does not mean it can't be. Remember that mono does JIT your code into native assembly at startup (most tests i've made take between 1

[Vala] Custom attributes/decorators

2009-04-21 Thread Christian Hergert
Hi Folks, I'm curious about how people feel about adding a feature for custom attributes/decorators that can be used for meta-programming. If that doesn't make sense, let me show an example of what I would like to make possible. Currently, I'm working on a follow up to GTask that is based on hig

Re: [Vala] mod_vala (was Removal of Mono)

2009-06-30 Thread Christian Hergert
It's a cute thought. But then you would try to debug a segfault or memory corruption on a production site. -- Christian On Mon, Jun 29, 2009 at 9:25 PM, Michael B. Trausch wrote: > On Tue, 30 Jun 2009, Jeremy wrote: >>> >>> Maybe mod_mono (for apache) is an example of the sort of dependency I >>

Re: [Vala] Port Tomboy?

2009-07-01 Thread Christian Hergert
> Nonetheless I still think if VALA needs bigger, live projects to > increase the level awareness which it deserves. At least among the > open-source vala projects tracked by ohloh, I don't see any of them a > critical application(by critical I mean a real develop team, active > development and lar

Re: [Vala] ListStore and SQLite

2009-09-22 Thread Christian Hergert
I wrote a GtkTreeModel that fronted SQLite years ago. I think Conduit still uses a python prototype I made which is far more optimized than the original prototype in C (EggSqliteStore). It might serve as a base however to get you started. http://audidude.com/dropbox/egg-sqlite-store/ -- Christi

[Vala] Builder Projects (with Vala)

2016-10-18 Thread Christian Hergert
Hi Everyone, We have some projects in Builder that developers of the Vala community might be interested in working on. Currently, Builder supports writing plugins in C, Vala, Python or C++. So you have a pretty wide variety of language choice based on the problem at hand. https://people.gn

Re: [Vala] Vala++

2017-04-04 Thread Christian Hergert
On 04/04/2017 12:22 AM, Daniel Brendle wrote: > There are many languages that are also fun when it comes to programming > against the Glib based library stack. The more interesting part is: will > there ever be a language that makes it also as convenient to write > gobject-introspectable libraries.

Re: [Vala] Vala++

2017-04-04 Thread Christian Hergert
On 04/04/2017 01:47 AM, Ulink wrote: > I simply can't understand why the Gnome people seems to hate or at least > ignore Vala and instead promote Javascript or Rust or other weird stuff. Some of us in GNOME have spent many years writing programming languages and runtimes. Therefore our view is som

Re: [Vala] Vala++

2017-04-04 Thread Christian Hergert
On 04/04/2017 12:25 PM, Daniel Brendle wrote: > On 04/04/2017 11:47 AM, Mohan R wrote: >> A request to gnome+rust language developers, Please keep dbus and glade >> integration as easy as Vala. I enjoy writing GUI and dbus apps with Vala. >> It's just awesome integration which I don't see in other

Re: [Vala] Need help to scroll a textview using a scale

2018-01-25 Thread Christian Hergert
On 01/24/2018 10:03 AM, Manish Jain wrote: My last effort at the event handler is below (it is of no use, really): void scale_moved (Gtk.Range range) { int i; Gtk.TextIter iter = new Gtk. TextIter(); view.get_iter_at_position(out iter, out i, 0, 0);

Re: [Vala] Writing objects to files

2018-03-26 Thread Christian Hergert
On 03/26/2018 11:44 AM, Steven Oliver wrote: > I want to implement "saving" in my program. The data I want to save is > a custom object. Is it possible in vala to simply write the object to > disk (in binary I assume) without having to implement a to_string > method? > > It seems like such a simpl

Re: [Vala] Date format

2018-03-27 Thread Christian Hergert
On 03/27/2018 04:46 PM, rastersoft wrote: > > I'm writting a program that shows dates in the screen. The problem I > have is that I want to show them in the local format, but there is only > one way: with full day of week, time and timezone. > > Is it possible to print from a GLib.Date only the d

Re: [Vala] Writing objects to files

2018-03-28 Thread Christian Hergert
On 03/28/2018 10:44 AM, Steven Oliver wrote: > > On the other hand, though, if you throw in some kind of data structure > besides your basic types (int, string, etc.) it completely fails. https://developer.gnome.org/json-glib/stable/json-glib-Serializable-Interface.html#JsonSerializableIface If

Re: [Vala] C# Developer

2018-10-09 Thread Christian Hergert
On 10/09/2018 11:38 AM, Ulink wrote: > Maybe improving Gnome builder Vala integration is the right way? Builder needs someone familiar with Vala internals to take over the Vala plugin (src/plugins/vala-pack) if you want to get better quality integration. I simply don't have time to work on it give

[Vala] generic methods

2008-06-18 Thread Christian Hergert
Hi, I'm a very happy user of vala who is curious what the timeline is for implementing generic methods. It sounds like a technical feat, so I'll understand if its "not anytime soon". Thanks! -- Christian ___ Vala-list mailing list Vala-list@gnome.org h

[Vala] delegates with exceptions

2008-06-25 Thread Christian Hergert
Hi folks, I noticed that there is support for delegates to throw when wrapping libraries (the vapi's do it in a few places). However, I'd like to have a delegate in my vala code that can throw an error. This doesn't seem to happen even though it compiles. For example: public delegate void C

[Vala] GValue magic

2008-07-07 Thread Christian Hergert
Hi, Wanted to suggest a feature that would be useful to simply the consumption of GValue based methods. Just a bit of compiler magic to automatically box/unbox values into GValue's? For example, public void do_something (GValue *value); // create a gvalue, and use proper g_value_set method do_s

Re: [Vala] GValue magic

2008-07-07 Thread Christian Hergert
Ok, created bug #541949. http://bugzilla.gnome.org/show_bug.cgi?id=541949 -- Christian On Mon, Jul 7, 2008 at 12:52 PM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > Christian Hergert wrote: >> >> Hi, >> >> Wanted to suggest a feature that would be useful to si

[Vala] (u)int64 properties

2008-07-15 Thread Christian Hergert
Hi, I noticed that when int64 properties are installed, g_param_spec_pointer is used. I created a bug and attached a patch. http://bugzilla.gnome.org/show_bug.cgi?id=543055 Thanks! -- Christian ___ Vala-list mailing list Vala-list@gnome.org http://mai

[Vala] void ref func

2008-07-17 Thread Christian Hergert
Hi, Does anyone have any tips for how to handle a ref_function that returns void? -- Christian ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] RSS/Atom or XML parsing library

2008-09-10 Thread Christian Hergert
I haven't touched rss-glib in a couple months, but if you have feature requests, i'll hack them in promptly. I don't think i announced it on the list here either, but if anyone is interested in a datamapper for gobject, i made one of those as well (which ive used pretty successfully with rss-glib

Re: [Vala] Implicit lamdas/closures

2008-09-16 Thread Christian Hergert
I'm very interested in having closure support as well. However I'm not sure I understand your implementation details. I had planned to write an async helper library ontop of vala once it had closure support. Perhaps it would be wise to do the most succinct amount of features possible here as n

Re: [Vala] Implicit lamdas/closures

2008-09-16 Thread Christian Hergert
I absolutely love the yield idea, very python-twisted'ish. Lets make sure the yield can return a value as well so we can have the following: var value = yield obj.do_something (); -- Christian On Tue, Sep 16, 2008 at 3:34 PM, Jürg Billeter <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-16 at 22:

Re: [Vala] Implicit lamdas/closures

2008-09-16 Thread Christian Hergert
t; On Tue, 2008-09-16 at 15:39 -0700, Christian Hergert wrote: > > I absolutely love the yield idea, very python-twisted'ish. Lets make > > sure the yield can return a value as well so we can have the > > following: > > > > var value = yield obj.do_something ();

Re: [Vala] Implicit lamdas/closures

2008-09-16 Thread Christian Hergert
p 16, 2008 at 4:28 PM, Samuel Cormier-Iijima <[EMAIL PROTECTED]>wrote: > On Tue, Sep 16, 2008 at 6:43 PM, Jürg Billeter <[EMAIL PROTECTED]> wrote: > > On Tue, 2008-09-16 at 15:39 -0700, Christian Hergert wrote: > >> I absolutely love the yield idea, very python-tw

Re: [Vala] Implicit lamdas/closures

2008-09-17 Thread Christian Hergert
> > Christian, when you said: > var value = yield obj.do_something (); > Did you mean that the lamda continuation address be implicitly passed to > do_something()? > > When you talk of the yield returning a value, do you mean to the caller? So > that yield is equivalent to "return" but just doesn't

Re: [Vala] [Bindings] for ThreadPool broken

2008-10-03 Thread Christian Hergert
I believe I filed a bug on this a while ago. http://bugzilla.gnome.org/show_bug.cgi?id=542725 -- Christian 2008/10/3 Mihail Naydenov <[EMAIL PROTECTED]> > When used TreadPool, the c compiler reports: > > ***error: too few arguments to function `g_thread_pool_free'*** > > ThreadPool is defined i

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
("i can resolve an asynchronous error"); }); You can build complex callback/errback chains just like in Python Twisted. By default, the task scheduler will dispatch callbacks and errbacks from the main thread to ease locking hell for GUI programming. [1] http://github.com/chergert/

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
ain. Not quite sure how to handle this in vala bindings yet. I'm considering dropping error from the prototype and adding it as tasks methods (task.{get/set}_error). -- Christian On Fri, Oct 17, 2008 at 1:05 AM, Sam Liddicott <[EMAIL PROTECTED]> wrote: > * Christian Hergert wrot

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
icott <[EMAIL PROTECTED]> wrote: > * Christian Hergert wrote, On 17/10/08 09:24: >> For tasks, you have two options. >> >> 1) Create a GTask with a callback and user_data. >> 2) Inherit from GTask and implement the execute (and optionally, >> cancel) methods. &

Re: [Vala] Proposal for an improved delegate/lambda handling

2008-10-18 Thread Christian Hergert
What about methods that take 2 callbacks? -- Christian 2008/10/18 Ali Sabil <[EMAIL PROTECTED]>: > Hi all, > > I would like to start a discussion about a small syntactic sugar addition to > Vala, that would in my opinion slightly improve the situation with > asynchronous code. The following code

Re: [Vala] Proposal for an improved delegate/lambda handling

2008-10-18 Thread Christian Hergert
I like it. Might get confusing if someone wanted to mix direct delegates and anonymous ones though. -- Christian On Sat, Oct 18, 2008 at 4:14 PM, Yu Feng <[EMAIL PROTECTED]> wrote: > On Sat, 2008-10-18 at 22:57 +0200, Ali Sabil wrote: >> Hi all, >> >> I would like to start a discussion about a sm

Re: [Vala] GTest

2008-10-26 Thread Christian Hergert
Hello, Here is an example from one of my projects. http://github.com/chergert/gtask/tree/master/tests/test-4.vala -- Christian On Sun, Oct 26, 2008 at 8:08 AM, Frederik <[EMAIL PROTECTED]> wrote: > Maciej Piechotka wrote: > >> Is there any samples how to use GTest? >> >> Best regards >> > > Hi

Re: [Vala] Object constructors

2008-10-31 Thread Christian Hergert
Anything against the following? new Person () { login = "Bob", password = "hello", email = "[EMAIL PROTECTED]" }; Cheers, -- Christian 2008/10/31 Кутейников Дмитрий <[EMAIL PROTECTED]> > It would be great, if Vala could compile expressions like this: > > *var bob = new Person(login

Re: [Vala] Checking for methods

2008-10-31 Thread Christian Hergert
Won't work because of linking. You could keep multiple .vapi inside your project for different versions and include separate files in your makefile. Since i don't think there are #ifdef in vala, you will need to have two files that consume the api as well, and choose which to use in your makefile.

Re: [Vala] Implicit lamdas/closures

2008-11-01 Thread Christian Hergert
On Sat, Nov 1, 2008 at 4:14 PM, Jürg Billeter <[EMAIL PROTECTED]> wrote: > On Sat, 2008-11-01 at 22:42 +, Sam Liddicott wrote: > > It'll be a couple of weeks at least before I can look at it. > > > > Jürg, are you intending to allow the callbacks to pass in additional > variables? > > The plan

Re: [Vala] [ANNOUNCE] Vala 0.5.1 - Compiler for the GObject type system

2008-11-03 Thread Christian Hergert
> > Changes since 0.4.0 > * Support type checks for error domains and error codes. > * Experimental support for yield statements and coroutines. > * Support GValue and GHashTable in D-Bus clients. > * Various improvements to the .gir reader. > * Drop deprecated support for static classes. > *

Re: [Vala] [ANNOUNCE] Vala 0.5.1 - Compiler for the GObject type system

2008-11-23 Thread Christian Hergert
I'm excited about the addition of yielding values. I released GTask 0.1.2 last week which is an asynchronous/concurrency library for GObject with similar feel to twisted deferreds. I would love to be able to yield tasks and have the method re-enter when the task has completed. Something like thi

Re: [Vala] [ANNOUNCE] Vala 0.5.1 - Compiler for the GObject type system

2008-11-23 Thread Christian Hergert
On Sun, Nov 23, 2008 at 2:22 AM, Jürg Billeter <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-23 at 01:31 -0800, Christian Hergert wrote: > > I'm excited about the addition of yielding values. I released GTask > > 0.1.2 last week which is an asynchronous/concurrency li

Re: [Vala] volatile variables?

2009-01-11 Thread Christian Hergert
Is that even be possible on 32bit? sizeof(gdouble) is 8. -- Christian On Sun, 2009-01-11 at 17:54 -0500, Yu Feng wrote: > Hi all, > > How do I declare a volatile double variable? > > Yu > > ___ > Vala-list mailing list > Vala-list@gnome.org > http:/

Re: [Vala] Inverse of control in VALA?

2009-01-26 Thread Christian Hergert
On Mon, Jan 26, 2009 at 12:26 PM, Pawel Cesar Sanjuan Szklarz wrote: > Hi. > > Is it planed any feature to support inverse of control on VALA?? > > In java I found that this can be really helpfull. A good library for > this on java is guice: > > http://code.google.com/p/google-guice/ > > > Pawel S

Re: [Vala] Inverse of control in VALA?

2009-01-26 Thread christian . hergert
I agree, having types loaded at startup would make life a lot easier in most of my situations. Is this already done with types in plugins when the plugin is loaded? -- Christian ___ Vala-list mailing list Vala-list@gnome.org http://mail.gnome.org/ma

[Vala] time_t properties

2009-01-28 Thread Christian Hergert
How would I go about making a property with time_t. It looks like the generated code is boxing just fine, it just generates a bad gtype for time_t. I will create a bug if necessary. $ valac test.vala test.c: In function 'test_item_class_init': test.c:83: error: 'TYPE_TIME_T' undeclared (first us

Re: [Vala] Generics: constraints and 'new T ()' on type parameters?

2009-02-26 Thread Christian Hergert
I wrote a datamapper (rather than an ORM) a while back in Vala. I don't think anyone is really using it, but it might be an example for various problems or questions you run into. http://git.dronelabs.com/git?p=users/chris/godm.git;a=summary It does let you do some neat stuff (and creates object