On Fri, 2010-11-19 at 22:41 +0900, san hoi wrote:
> // hello.cs
> using System;
> using System.Text.RegularExpressions;
>
> class HelloWorld {
> public static void Main() {
> System.IO.StreamReader sr = new
> System.IO.StreamReader(@"/opt/the-board/share/vala-0.12/vapi/cairo.vapi");
>
On Fri, 2010-11-19 at 19:58 +0100, Jaroslav Smid wrote:
> Well, U suffix works, but I thought vala would be smart enough to handle
> this. Anyway, I had to switch to C because vala doesn't use size_t for array
> sizes and uses int.
public void foo ([CCode (array_length_type = "size_t")] int[] bar)
Well, U suffix works, but I thought vala would be smart enough to handle
this. Anyway, I had to switch to C because vala doesn't use size_t for array
sizes and uses int.
pancake: sorry for sending messed up message :-)
On Thu, Nov 18, 2010 at 10:53 PM, pancake wrote:
> Vala should handle this c
// hello.cs
using System;
using System.Text.RegularExpressions;
class HelloWorld {
public static void Main() {
System.IO.StreamReader sr = new
System.IO.StreamReader(@"/opt/the-board/share/vala-0.12/vapi/cairo.vapi");
string gscode = sr.ReadToEnd();
sr.Close();
Console.Wr
On Fri, Nov 19, 2010 at 13:25:11 +0100, pancake wrote:
> you are using coroutines which are not designed to "run stuff in
> background".
>
> coroutines are designed to run collaborative code which hangs if one of the
> parts doesn't pass the token when necessary.
>
> You have to use threads, or a
I just thought the async/yield methodology was an elegant way of
chaining together multiple background tasks, but are you saying that
it's not suited to what I want and I should do it all with threads and
hand-written callbacks?
On 19 November 2010 22:55, pancake wrote:
> you are using coroutines
you are using coroutines which are not designed to "run stuff in
background".
coroutines are designed to run collaborative code which hangs if one of the
parts doesn't pass the token when necessary.
You have to use threads, or an idle task if you have a mainloop.
On 11/19/10 08:34, James Mosch