• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

DocKimbel
14-Oct-2012
[2701]
Kaj: your code is ok, as long as it sets CDECL for marking functions 
called by external libs.
Kaj
14-Oct-2012
[2702x2]
I should be doing that everywhere
Normally a function can't be used before it's defined. How could 
I pass a pointer to a function that's not defined yet?
DocKimbel
14-Oct-2012
[2704x5]
It can if called from the body of another function.
(IIRC)
Function's body compilation is deferred. During global code compilation, 
only functions prototypes are collected, so all functions are known 
before the first function body gets processed.
That approach allow to solve cross-reference issues.
Basically, Red/System compiler is doing automatically what C compiler 
requires you to do manually (i.e. specifying function prototypes 
separately in headers).
Kaj
14-Oct-2012
[2709x3]
So there is no forced function order?
When I put one of the cURL callbacks behind the function that uses 
it, the code size increases by four bytes, even for Intel. But when 
I then remove the [cdecl] it goes back to the original size
The stack fix has degraded the behaviour. I now get an access violation 
on all programs
DocKimbel
14-Oct-2012
[2712x12]
I'm working on it, the fix is fine, but it seems it doesn't work 
with __libc_start_main call (and only that one).
It's like this call doesn't respect the ARM EABI...
I will push the fix for callbacks correct prolog/epilog generation 
in a minute.
Fix pushed.
cURL binding should now work correctly (except the ending segfault 
caused by bad libc init call...I'm working on it).
Ok, this time, it's the good one :-)
(A bad copy/paste earlier changed the position of the first fix before 
I commited it, libc init is fine).
Both cURL and SDL audio test are now working fine on my RPi.
BTW, I've also applied the same fix for callbacks on IA-32 backend, 
so retesting all bindings on Linux/Intel would be needed.
Kaj: I can't find the URL for Glib repo?
Ok, found it, it's "GLib"...
PeterPaint-SDL demo works on RPi now.
Kaj
14-Oct-2012
[2724]
That already worked :-)
DocKimbel
14-Oct-2012
[2725]
Ah! :)
Kaj
14-Oct-2012
[2726]
The URL for GLib is Red-GLib
DocKimbel
14-Oct-2012
[2727x2]
For GTK demos, I get an Xlib error: 

Xlib: extension "RANDR" missing on display ":1:0"
I'm now running my RPi headless and using it remotely through VNC 
and ssh. Maybe the error is related to that?
Kaj
14-Oct-2012
[2729x2]
Could be, although it's also possible that the RANDR extension is 
really not there, because it seems to fix its screen resolution, 
needing its own utility to change it
Doesn't seem like it should influence GTK, though
DocKimbel
14-Oct-2012
[2731x3]
Hmm, there are some bug tickets about that (old ones): https://bugs.launchpad.net/ubuntu/+source/gtk+2.0/+bug/157319
It seems turning off the multiple screens feature might fix it. I'll 
try tomorrow on the RPi localy (not through VNC).
Hello-GTK-world is still segfaulting on my Debian-armel image on 
QEMU. I will investigate that tomorrow.
Kaj
14-Oct-2012
[2734x2]
Yep, seemed to be a separate issue, like 0MQ
Actually, 0MQ works now. But I'm still getting the access violation 
on GTK, not an XLib error
DocKimbel
15-Oct-2012
[2736]
Kaj: for debugging the GTK issue, we need a minimalistic app. Could 
you re-implement the hello-GTK-world using only direct GTK calls 
and not going through typed functions? We could at least see if it's 
related to GTK calls or not.
Pekr
15-Oct-2012
[2737]
New RPi, doubling the memory for the same price - http://www.engadget.com/2012/10/15/raspberry-pi-model-b-512mb-ram/
DocKimbel
15-Oct-2012
[2738]
Kaj: couldn't wait so I've implemented it myself. ;-) See ticket 
comments.
Pekr
15-Oct-2012
[2739]
so, are ARM fixes almost complete now, and is 0.3.0 going to be oficially 
out soon? :-)
DocKimbel
15-Oct-2012
[2740x4]
Pekr: I have set my RPi memory split to 192MB for apps, 64MB for 
video, not memory issues so far.
Pekr: still a lot of details to work on before that, as always before 
a major release.
I think it will take me one or two days for the 0.3.0 release todo-list 
to get done.
That also means, we'll probably postpone floats hardfp ABI support 
for a later release (probably 0.3.1).
Pekr
15-Oct-2012
[2744]
Some blog article about what 0.3.0 brings to the table, would be 
nice then, to show ppl what is implemented, what one can do already 
in Red (eventual list of supported dtypes, natives, actions?), and 
what comes next? That would keep ppl motivated ...
DocKimbel
15-Oct-2012
[2745]
Wrinting a new blog entry is part of the todo-list. ;-)
Pekr
15-Oct-2012
[2746]
Did not know, that todo-list contains also non-development related 
stuff :-)
Arnold
15-Oct-2012
[2747]
Did not know making the to-do list takes two to three days ;)
Pekr
15-Oct-2012
[2748]
:-) to do list to get done means, to implement all to-do items :-)
Kaj
15-Oct-2012
[2749]
There already was a minimal GTK program with direct GTK calls: goodbye-cruel-GTK-world
DocKimbel
15-Oct-2012
[2750]
That one is crashing.