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

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] 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

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

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] 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

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

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/ --

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 large

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. Trauschm...@zest.trausch.us wrote: On Tue, 30 Jun 2009, Jeremy wrote: Maybe mod_mono (for apache) is an example of the sort of

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

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

[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

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

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

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 library for GObject with similar

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=Bob,

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, I haven't

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 sample

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
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 wrote, On 17/10/08 08:06: This isn't

Re: [Vala] Proposal for asynchronous DBus calls.

2008-10-17 Thread Christian Hergert
[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. Keen observers will notice my challenge right away. Yes, I

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 in

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:48

Re: [Vala] Implicit lamdas/closures

2008-09-16 Thread Christian Hergert
-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 (); Sure, return values should certainly be possible. Jürg

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

[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

[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

[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

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 simply the consumption of GValue based methods

[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