Re: [Vala] Genie status

2011-07-27 Thread Jamie McCracken
Im still maintaining it although there has not been many bugs filed against Genie which is why some might have that opinion jamie On Wed, 2011-07-27 at 15:05 +0200, Andrea Del Signore wrote: Hi all, after the last vala toys release I just asked to the gedit IRC channel what blocks the

Re: [Vala] [Geani] Is Dead?

2011-05-23 Thread Jamie McCracken
Im still maintaining Genie although Vala appears to be in a slow state of development now that its fairly mature jamie On Mon, 2011-05-23 at 12:32 -0400, craf wrote: Hi. I am a Python programmer and gtk. Looking to learn other languages​​, I found vala and simplified version Genie.

Re: [Vala] [Geani] Is Dead?

2011-05-23 Thread Jamie McCracken
and have fun with the many examples online jamie On Mon, 2011-05-23 at 12:57 -0400, craf wrote: -Mensaje original- De: Jamie McCracken jamie.mccr...@gmail.com Para: craf pyclut...@gmail.com Cc: Lista Vala vala-list@gnome.org Asunto: Re: [Vala] [Geani] Is Dead? Fecha: Mon, 23 May 2011 12

Re: [Vala] vala road map Re: [Geani] Is Dead?

2011-05-23 Thread Jamie McCracken
the developers think it is fairly mature that it can be called 1.0? I filed some minor bugs over the handling of fairly simple code and I do hope these can be addressed before the real 1.0 release... On Mon, May 23, 2011 at 9:41 AM, Jamie McCracken jamie.mccr...@gmail.com wrote: Im still

Re: [Vala] Vala to Genie

2011-02-21 Thread Jamie McCracken
your properties need to match the interface correctly use readonly when there is only a get and no set and likewise use construct for constructor properties try prop construct title prop readonly description etc... jamie On Mon, 2011-02-21 at 16:27 +0200, Antono Vasiljev wrote: On Mon,

Re: [Vala] Problem converting c to vala/genie

2010-11-01 Thread Jamie McCracken
Im not sure what you mean - are you using or porting the code in the c library? If you are using a c library in Genie/vala then you need to create a vapi file for it if you are porting a c library to genie/vala then you dont need to specify ELM_NEW as construction is done for you : var wd = new

Re: [Vala] Genie syntax for connect

2010-10-13 Thread Jamie McCracken
On Wed, 2010-10-13 at 19:51 +0200, Jan Hudec wrote: On Wed, Oct 13, 2010 at 11:31:09 +0200, Nicolas wrote: destroy.connect(Gtk.main_quit) spin_box.value_changed.connect(spinbox_value) slider.value_changed.connect (slider_value)

Re: [Vala] [Genie] Problem with enums in genie

2010-09-27 Thread Jamie McCracken
I need to update the genie parser to fix this error - will have it done end of today It should work fine with an earlier version of vala as it only appears in the latest release On Mon, 2010-09-27 at 14:55 +0200, Nicolas wrote: Hello, There is a long time that I did not use enums in my code

Re: [Vala] [Genie] Problem with enums in genie

2010-09-27 Thread Jamie McCracken
Should now be fixed in master jamie On Mon, 2010-09-27 at 14:55 +0200, Nicolas wrote: Hello, There is a long time that I did not use enums in my code and now I see that it no longer works as before, what's the problem? [indent=4] enum EnumTest value1 = Hello ! init

Re: [Vala] Genie xmlrpc-c bindings test

2010-09-13 Thread Jamie McCracken
can you post xmlrpc-c_test.vala.c so i can see which line is causing the problem jamie ___ vala-list mailing list vala-list@gnome.org http://mail.gnome.org/mailman/listinfo/vala-list

Re: [Vala] [Genie] Chain up TextBuffer

2010-09-12 Thread Jamie McCracken
you can use super to access the parent class you are inheriting from (similar to super in python) Ergo i belive you need to call super.insert_text (blah) at end of your overriden call if you want that call to chain up jamie On Sun, 2010-09-12 at 20:37 +0200, Nicolas wrote: Hi, I'm

Re: [Vala] how to declare multi-dimensional arrays in Genie?

2010-07-15 Thread Jamie McCracken
On Thu, 2010-07-15 at 18:34 -0400, Ron Murawski wrote: On 7/15/2010 1:45 PM, Robert Powell wrote: Both of the above multi-dimensional array declarations work as intended, but they do not seem to be global. Is this what you are trying to do? int [,] arr; public void main(string []

Re: [Vala] how to declare multi-dimensional arrays in Genie?

2010-07-15 Thread Jamie McCracken
On Thu, 2010-07-15 at 19:26 -0400, Ron Murawski wrote: I wanted the multi-dimensional array in the data area, not on the stack. In C: int my_array[64][13]; int main(int argc, **char argv) { my_array[7][7] = 7; // more stuff return 0; } my_array is allocated on the

Re: [Vala] [Genie] Generic of a Generic, dict hash/eval overrides

2010-06-04 Thread Jamie McCracken
On Fri, 2010-06-04 at 00:08 -0400, Arc Riley wrote: What is the intended syntax for something like this: blobs : list of array of uint8 The best I've found so far is struct bytes value : array of uint8 blobs : list of bytes Which is less desirable as its more verbose to refer to

Re: [Vala] [Genie] array slices

2010-05-24 Thread Jamie McCracken
Array (and string) slicing should now be in master for Genie Please test and let me know if there are any problems with it jamie On Sat, 2010-05-22 at 19:56 -0400, Arc Riley wrote: We are working with IO which returns the number of bytes written, not utf-8 characters. The following shows

Re: [Vala] [Genie] array slices

2010-05-22 Thread Jamie McCracken
On Sat, 2010-05-22 at 19:41 +0100, Abderrahim Kitouni wrote: في س، 22-05-2010 عند 06:38 -0400 ، كتب Arc Riley: I'm migrating some C code to Genie and ran into a troubling limitation; the following line of code does not seem to have an equivalent in Genie: session-wbuff =

Re: [Vala] [Genie] regression tests ?

2010-01-08 Thread Jamie McCracken
Its a work in progress atm I will try and get it in this weekend On Fri, 2010-01-08 at 16:52 +0100, Sebastien Binet wrote: hi there, I was more or less expecting to see some examples/utests for Genie under the Vala git repository: http://git.gnome.org/browse/vala/tree/tests but it

Re: [Vala] [Genie] how to default to float

2010-01-05 Thread Jamie McCracken
On Tue, 2010-01-05 at 06:56 -0500, Arc Riley wrote: I've been hitting a problem where passing float to a function which takes a float fails because Genie is reading it as a double. IE: var body = new RigidBody(null, 1.0, null) src/windows.gs:35.36-35.38: error: Argument 2: Cannot

Re: [Vala] [Genie] multi-line structs

2010-01-05 Thread Jamie McCracken
On Mon, 2010-01-04 at 14:39 +0100, Jan Hudec wrote: On Mon, Jan 04, 2010 at 08:25:06 -0500, Jamie McCracken wrote: On Mon, 2010-01-04 at 02:07 -0500, Arc Riley wrote: A syntax quirk that I found a bit obnoxious: const entries : array of OptionEntry = { \ { config, 'c

Re: [Vala] [Genie] multi-line structs

2010-01-05 Thread Jamie McCracken
Are you sure you have git master? Did you remove previous versions of valac? I can compile that without any problems On Tue, 2010-01-05 at 22:51 -0500, Arc Riley wrote: 35 var attrs = Gdk.WindowAttr () { 36 title = self._title, 37 width = 100, height = 100 38 }

Re: [Vala] [Genie] multi-line structs

2010-01-05 Thread Jamie McCracken
, Jan 5, 2010 at 11:06 PM, Jamie McCracken jamie.mccr...@googlemail.com wrote: Are you sure you have git master? Did you remove previous versions of valac? I can compile that without any problems On Tue

Re: [Vala] [Genie] multi-line structs

2010-01-04 Thread Jamie McCracken
On Mon, 2010-01-04 at 02:07 -0500, Arc Riley wrote: A syntax quirk that I found a bit obnoxious: const entries : array of OptionEntry = { \ { config, 'c', OptionFlags.IN_MAIN, \ OptionArg.FILENAME, ref config, \ Use alternative configuration, FILE }, \ { license, 'L',

Re: [Vala] [Genie] multi-line structs

2010-01-04 Thread Jamie McCracken
On Mon, 2010-01-04 at 08:43 -0500, Arc Riley wrote: +1 for the Python way. The problem of ignoring newlines following commas is there may be a space after them. spaces are ignored in any event but I will look at the python way On a somewhat related topic; is there currently a method to

Re: [Vala] [Genie] multi-line structs

2010-01-04 Thread Jamie McCracken
On Mon, 2010-01-04 at 08:53 -0500, Arc Riley wrote: Yes, except I'd prefer not to insert a linefeed into the string at the line break in C it would be: printf(part 1 part 2); Ok in Genie you would have do part 1 + part 2 or until I have sorted line continuations : line 1 + \

Re: [Vala] [Genie] Bug in Genie ?

2009-12-14 Thread Jamie McCracken
On Mon, 2009-12-14 at 20:25 +0100, Abderrahim Kitouni wrote: Hi, 2009/12/13 Nicolas c.r@wanadoo.fr: Hello, When i build this piece of code, i have this message: testbug.gs:9.65-9.65: error: syntax error, expected `)' but got `:' with previous identifier def test (mystring :

Re: [Vala] Libgee problem

2009-12-09 Thread Jamie McCracken
On Wed, 2009-12-09 at 20:50 +0100, Nicolas wrote: In fact, i'm using genie, because i love the syntax. I making all the available examples in http://code.valaide.org/category/tags/genie But the problem i encountering here, i can encounter it with other languages, because i don't know

Re: [Vala] A few questions

2009-11-30 Thread Jamie McCracken
On Mon, 2009-11-30 at 13:24 -0500, Hugo Florentino wrote: Abderrahim Kitouni wrote: [indent=2] const MAXVALUE: int = 50 init myarray : array of int = {1..MAXVALUE} Isn't there a similar way to declare an array using only minimum and maximum values? No, arrays indices

Re: [Vala] Minor features request (about structs and enums)

2009-11-02 Thread Jamie McCracken
we will probably use that syntax in Genie as thats what Delphi does as well although i may just use: Flags flag1 flag2 etc jamie On Mon, 2009-11-02 at 21:34 +, Sam Liddicott wrote: Pascal lets you have a bitwise set from an enum using Set of ENUMTYPE Sam

Re: [Vala] [Genie] Object members

2009-10-28 Thread Jamie McCracken
On Wed, 2009-10-28 at 10:39 +, Patrick Castle wrote: Just stuffing about at the moment getting my head about creating classes in Genie. From what I gather, every variable you declare outside of a method is a member/property of that class. What I'm finding a bit confusing is there isn't

Re: [Vala] [Genie] Object members

2009-10-28 Thread Jamie McCracken
On Thu, 2009-10-29 at 01:50 +1100, Patrick Castle wrote: Thanks for that. I looked back at the Genie page and did a bit of Googling. I think I understand the distinction between field and property. It would seem from a good practice point of view that fields would generally be private and

Re: [Vala] [Genie] simple string example no longer compiles

2009-10-26 Thread Jamie McCracken
On Mon, 2009-10-26 at 18:44 +0100, Abderrahim Kitouni wrote: Hi, 2009/10/26 Barry Kauler bkau...@gmail.com: I am asking about var s = new string To me, it *does* make sense, but anyway, I am not asking about it's merits. I would like to know why it compiled before, not now.

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Jamie McCracken
On Mon, 2009-10-12 at 16:29 +0200, Nicolas wrote: Hi, I need to convert string to array of uchar in genie. I know under vala it's (uchar[]) testing where testing is the string, so how can i do this under genie ? try (array of uchar) testing

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Jamie McCracken
On Mon, 2009-10-12 at 18:19 +0200, Nicolas wrote: Thanks, but already tested and this: data_string : string testing : array of uchar testing = (array of uchar) data_string Return: error: syntax error, expected identifier testing = (array of uchar) data_string ^

Re: [Vala] [Genie] Convert string to uchar[]

2009-10-12 Thread Jamie McCracken
I have just committed fix in master - if it does not work pls let me know jamie On Mon, 2009-10-12 at 21:48 +0200, Nicolas wrote: Thank you Jamie for your response. I really need to use this , so i hope you find a solution quickly so that I can continue developing my program. If I can

Re: [Vala] Problem with Gee

2009-10-04 Thread Jamie McCracken
On Sun, 2009-10-04 at 16:29 +0200, Nicolas wrote: Hi, I'm trying to use the Gee library, but i have a problem; This is the code taken from the vala site: using Gee; static int main (string[] args) { var map = new HashMapstring, int (); map.set (one, 1); map.set (two,

Re: [Vala] Problem with switch statment

2009-09-28 Thread Jamie McCracken
On Mon, 2009-09-28 at 14:18 +0200, Xavier Bestel wrote: On Mon, 2009-09-28 at 13:59 +0200, Nicolas wrote: Feel free to file a bug Yes but i don't know what to say to describe the bug ! Something like Genie sometimes introduces a spurious break statement in switch, and in the body of the

Re: [Vala] Problem with switch statment

2009-09-27 Thread Jamie McCracken
On Sun, 2009-09-27 at 15:45 +0200, Nicolas wrote: Hi, I have a problem convert function from vala to genie, this is the code: Vala code: switch (eb.button) { case 1: blah blah blah case 2: blah blah blah

[Vala] Genie Apps

2009-09-27 Thread Jamie McCracken
I have recently rewritten Tracker-Search-Tool(1) in Genie for those looking for real world applications in Genie using Dbus, Tracker and GTK I expect to have a test suite for Genie shortly (next few days) for those looking for more samples jamie (1) -

Re: [Vala] Hi, Is Vala what I am looking for?

2009-09-23 Thread Jamie McCracken
On Wed, 2009-09-23 at 11:24 -0400, Andrés G. Aragoneses wrote: Jiří Zárevúcky wrote: On 09/21/2009 10:52 PM, Andrés G. Aragoneses wrote: [...] Of course, what I'm talking about is about adding one more user choice, not removal of Mono like the subject of the original thread is named

Re: [Vala] genie # comments

2009-07-14 Thread Jamie McCracken
my only concern with # is its used for compiler directives in vala (and genie too) eg #ifdef need to find a way around that... jamie On Tue, 2009-07-14 at 11:44 +0200, pancake wrote: I have written my first patch for the vala compiler... well, to be exact it is only for the genie syntax

Re: [Vala] [Genie] Need help with for statement

2009-06-20 Thread Jamie McCracken
On Sat, 2009-06-20 at 20:04 +0200, Nicolas wrote: Hi, Someone know how can i convert this from c# to vala or genie: for (int i=0; i linesPerPage line numLines; i++) Genie: var i = 0 while (i linesPerPage and line numLines) // do blah here i++ jamie

[Vala] autotool support for genie

2009-06-16 Thread Jamie McCracken
hi juerg, i note that vala now has automake support for .vala files but it lacks .gs genie source file support i have a patch for autotools to support genie but my perl is not very good so please see attached patch and let me know if its right and i will forward to autotools list thanks jamie

Re: [Vala] [Genie] SDK

2009-06-13 Thread Jamie McCracken
thats awesome - thanks some quick hints about more concise genie syntax in case you are interested: 1) var can be used in block mode so you dont have to type var on each line if you are initialising more than one variable at a time EG var x =1 s = hello 2) print is a built in function

Re: [Vala] why this new and innovative programming language called Vala?

2009-05-04 Thread Jamie McCracken
you would have to ask juerg but I always thought it was because it sounds like java On Mon, 2009-05-04 at 13:57 -0700, William Swanson wrote: On Mon, May 4, 2009 at 1:31 AM, Hans Baier hansfba...@googlemail.com wrote: A query, why this new and innovative programming language called Vala?

Re: [Vala] Problems manipulating Gtk Treeview in Genie

2009-04-08 Thread Jamie McCracken
Hi, Can you provide the genie source files you are trying to compile thanks jamie On Wed, 2009-04-08 at 11:34 +1000, GALLOWAY Stuart J (SVHM) wrote: Hi, The problem: I am converting a list managing program from pyGtk to Genie. I want to clear and reconstruct columns

Re: [Vala] Zeitgeist porting

2009-04-03 Thread Jamie McCracken
Why? Whilst it has some interesting ideas, its a mere prototype and is by and large irrelevant to gnome as it stands (and thats true of gnome-shell as well - they are both purely experimental) If the ideas prove worthy it will be rewritten in a non-vm language and will likely use tracker which

Re: [Vala] Genie syntax highlighting with GtkSourceView

2009-03-20 Thread Jamie McCracken
Hi, I did one too a while back - see attached Feel free to update yours with anything thats missing i guess it needs to be submitted to GtkSourceview miantainers jamie On Sat, 2009-03-21 at 01:06 +0100, gege2061 wrote: Hi, I have written a .lang file for GtkSourceView. Could you

Re: [Vala] Is this a bug or a feature?

2009-03-20 Thread Jamie McCracken
On Sat, 2009-03-21 at 00:27 +0100, Nicolas Joseph wrote: Hello, Attention, the function feof (in C) should not be used to check the end of a file: http://c-faq.com/stdio/feof.html The correct code: [indent=2] init var f = FileStream.open(./main.gs,r) var a = new array of

Re: [Vala] Genie syntax highlighting with GtkSourceView

2009-03-20 Thread Jamie McCracken
looks good thanks very much jamie On Sat, 2009-03-21 at 03:09 +0100, gege2061 wrote: Thank's. I have submitted to GtkSourceView maintainers: http://bugzilla.gnome.org/show_bug.cgi?id=576141 2009/3/21 Jamie McCracken jamie.mccr...@googlemail.com Hi, I did one

Re: [Vala] inline C

2008-12-15 Thread Jamie McCracken
On Mon, 2008-12-15 at 09:18 -0800, Conrad Steenberg wrote: On Sat, 2008-12-13 at 13:00 -0500, Jamie McCracken wrote: The disadvantage to inlining is it destroys the platform independence - IE you would not be able to create a gcc front end for vala nor would you be able to have vala-c

Re: [Vala] inline C

2008-12-13 Thread Jamie McCracken
On Sat, 2008-12-13 at 17:46 +, Karl Lattimer wrote: On Sat, 2008-12-13 at 23:44 +0600, Ildar Mulyukov wrote: Hi, Take a look: int main (void) { int Cvariable; __asm__ (movl Cvariable, %eax); // Cvariable contents eax __asm__

[Vala] [patch] Improve IN operator

2008-06-16 Thread Jamie McCracken
Attached patch allows in operator to be used with collections and maps EG if (x in list) jamie Index: gobject/valaccodegenerator.vala === --- gobject/valaccodegenerator.vala (revision 1596) +++ gobject/valaccodegenerator.vala

Re: [Vala] readline from a FileStream?

2008-06-15 Thread Jamie McCracken
On Sun, 2008-06-15 at 11:10 +0200, Frederik wrote: I have filed a bug report / feature request: http://bugzilla.gnome.org/show_bug.cgi?id=538405 To make clear what you're currently doing I have slightly modified your code. Your code works as long as you won't do any other operation than

[Vala] Improved foreach

2008-05-25 Thread Jamie McCracken
patch allows: Var to be used in foreach or Existing local variable (in scope) This patch is needed for genie although it may be useful for vala too... jamie Index: vala/valasemanticanalyzer.vala === ---

Re: [Vala] Improved foreach

2008-05-25 Thread Jamie McCracken
On Sun, 2008-05-25 at 23:51 +0200, Jürg Billeter wrote: On Sun, 2008-05-25 at 00:51 -0400, Jamie McCracken wrote: Var to be used in foreach We should certainly allow this, also in Vala. The logic in ForeachStatement.accept_children is slightly broken as you're missing