r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
23-Aug-2011
[3041]
No, I'm getting internal compiler errors during compilation, so I 
don't even know where they are in my source; and no pixels drawn 
in SDL
Dockimbel
23-Aug-2011
[3042]
Oh, those are easier to fix. :-)
Kaj
23-Aug-2011
[3043]
Not for me
Dockimbel
23-Aug-2011
[3044x2]
To locate internal compiler error, just run the compiler in verbose 
mode (like -v 5), and watch for "expr: " outputs, that should help 
you locate the part of your source causing that.
Usually, the last "expr: " output is enough to locate the error.
Kaj
23-Aug-2011
[3046]
Sorry, but I don't really have time to do such deep debugging
Dockimbel
23-Aug-2011
[3047x2]
The "expr: " outputs code from Red/System source, not compiler source.
At least, you'll know which expression in your Red/System app is 
causing the issue.
Kaj
23-Aug-2011
[3049]
I'll look into it when the errors are still there with your fixes
Dockimbel
23-Aug-2011
[3050]
You can also send me the source code, and I'll do the internal debugging, 
it is probably a minor error.
Kaj
23-Aug-2011
[3051]
If you want, you can compile the cURL binding for one
Dockimbel
23-Aug-2011
[3052x2]
I've released a fix for your compilation issue.
Fixes released. Hope they will fix your issues too. I won't be able 
to work on Red tonight, so if more fixes are needed, that will be 
for tomorrow.
Kaj
23-Aug-2011
[3054x2]
Thanks, cURL works again
It took me a day to hook up a (quit) signal to a GTK program. GTK 
is incredibly bloated
Kaj
24-Aug-2011
[3056x3]
I can now load a GDK image and set it as the GTK window icon
Now I can add a text label to the window
And now a button with an associated action callback
Kaj
25-Aug-2011
[3059x2]
I've bound the line entry field, but I'm having serious problems 
with crashing callbacks in both GTK and SDL
I'm going to return to cURL for a while to see if I can trigger the 
problem there
Dockimbel
25-Aug-2011
[3061]
A regression in today's commit or an older issue?
Kaj
25-Aug-2011
[3062]
No, it's probably always been this way, at least since I started 
the SDL binding
Dockimbel
25-Aug-2011
[3063]
If you can send me a short sample, I can do some investigations.
Kaj
25-Aug-2011
[3064x3]
I've only done very small things with callbacks so far. The somewhat 
bigger transfers in cURL were directly to files, with its own internal 
callbacks
Yes, if I can trigger it in cURL, that would currently be the most 
accessible example
So far I suspected multithreading in SDL's sound playing, but it 
seems the problem is more fundamental
Endo
25-Aug-2011
[3067]
Doc: why UNTIL doesn't return a value. It can simply return TRUE, 
because if loop is over the last expression evaluated as TRUE. So 
it can always return TRUE. No?
Dockimbel
25-Aug-2011
[3068x2]
Do you think that UNTIL returning always TRUE is useful?
Or I should rather ask if UNTIL returning always TRUE is more useful 
than returning nothing?
Endo
25-Aug-2011
[3070]
I'm not sure if this is possible in Red/System,

i: 0 wait-me: until [++ i i > 5]
;do something async and check wait-me also, to be at sync.
Kaj
25-Aug-2011
[3071]
It would be useful if there would be a BREAK that would return FALSE
Dockimbel
25-Aug-2011
[3072]
Kaj: agreed.
Endo
25-Aug-2011
[3073x2]
Kaj: Yes that is more useful.
And would be more compatible with REBOL as well.
PeterWood
25-Aug-2011
[3075]
Why don't you add it as a wish on github?
Endo
25-Aug-2011
[3076x2]
I didn't want to add it, before asking first. To not fill the list.
Done.
Kaj
25-Aug-2011
[3078x2]
SDL drawing works again, and PeterPaint is now unencumbered by Red 
bugs
Finally implemented automatic buffer expansion on in-memory cURL 
receive operations
PeterWood
26-Aug-2011
[3080]
Thanks Endo
Kaj
26-Aug-2011
[3081x6]
Hm, cURL has no problem with multiple callbacks
Tested now with downloads up to 56 MB, in diverse chunks from a few 
hundred bytes to 16 K
That means GTK is the simplest exhibit of the crashes. As far as 
I know, it's single-threaded, but maybe not
I've housed the GTK binding here:
http://red.esperconsultancy.nl/Red-GTK
It doesn't do much yet, but you can reference it for testing purposes
Kaj
30-Aug-2011
[3087x2]
I had to go through the Blogger registration process again to post 
a comment
Anyway, there's a new commenter to the last article
Dockimbel
31-Aug-2011
[3089x2]
Thanks for posting an answer while I wasn't available. I will add 
more to it today. Btw, I guess this is one of the two young coders 
that contacted me on IRC to help building Red. :-)
And thank for mentioning Red in your interview, once again, that 
boosted Red visibility significantly.