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

World: r3wp

[Red] Red language group

Dockimbel
13-Nov-2011
[3797x2]
Kaj: you got a message here: https://gist.github.com/1326101
Got my QEMU/ARM Debian instance working properly now. I am using 
WinSCP to automatically transfer the compiled binary files between 
the host and guest OS.
Luis
13-Nov-2011
[3799]
green lights for Red !!
MikeL
18-Nov-2011
[3800]
I am trying more Red examples from Kaj's bindings.  Some working 
well.... but GTK failing on libgio-2.0-0.dll   Other DLLs that were 
needed for WinXP seemed to be in the mysql distribution ... except 
this one.     Little hits on reliable downloads of pre-built DLL. 
  Anybody used it in WinXP?
Dockimbel
18-Nov-2011
[3801]
I've uploaded a zipped copy of mine: http://sidl.fr/tmp/libgio-2.0-0.zip
MikeL
18-Nov-2011
[3802]
merci
Dockimbel
18-Nov-2011
[3803]
But, I have tested it on Seven only...
MikeL
18-Nov-2011
[3804x2]
Soon on XP
Cascading DLL problems ... libglib*....  Can you provide the full 
DLL list that works with GTK?
Dockimbel
18-Nov-2011
[3806x2]
Let me find that...
Here's the direct download link for the GTK runtime I'm using: http://freefr.dl.sourceforge.net/project/gtk-win/GTK%2B Runtime Environment/GTK%2B 2.22/gtk2-runtime-2.22.0-2010-10-21-ash.exe
Kaj
18-Nov-2011
[3808x5]
Mike, I got the DLL versions for Windows from the official Windows 
download from the GTK site
Although it may just have been followed up by a newer version
I have 2.22.1-20101227 here
Nope, still the same bundle on the site
There are individual packages for the new 2.24, though, which replaces 
2.16 as the stable Windows version
MikeL
18-Nov-2011
[3813x4]
Thanks there is no guarantee that I am doing it right but I am anxious 
to get it working. Thanks for the help guys.
Nice. All examples now  working now except GTK-widgets
With empirical debugging, this line passes the compile but make sthe 
execution fail  "fixed button [50 25  "Print"  :get-lines lines] 
gtk-tight"
Yes ... lots of those in the example ... it is the last one ... commented 
out and the executable does not fail.
Kaj
18-Nov-2011
[3817]
How does it fail?
MikeL
18-Nov-2011
[3818x3]
GTK-widgets.exe has encountered a problem and needs to close.  We 
are sorry for the inconvenience.
Exception Information/Code: 0xc000005  /Flags 0x0000000
p.s. thanks Kaj. That is an awesome amount of work you have taken 
on for the bindings.   Almost Doc-like.
Kaj
18-Nov-2011
[3821x3]
Thanks :-)
Maybe Doc can see some meaning in that exception report. I'm not 
familiar with it
Are you starting it from a command prompt? If you do, do you get 
any extra output?
MikeL
18-Nov-2011
[3824x4]
Same result from cmd or clicking on file icon or Git/Mingw32
No extra info
That vbox works if you comment out the vbox before it.
Works if you stick a fixed block in that hbox block ... well at least 
at the beginning
Kaj
18-Nov-2011
[3828]
Which GTK version are you using?
MikeL
18-Nov-2011
[3829x3]
libgtk-win32-2.0-0.dll
checksum/method read/binary %libgtk-win32-2.0-0.dll 'md5
== #{387C74458D7A43EBDD37FB61D39E28D0}
Back in a few hours ... Friday mid-night approaching.
Kaj
18-Nov-2011
[3832]
That's only a very coarse library version that has stayed the same 
for a long time. What package version did you install?
Dockimbel
19-Nov-2011
[3833x4]
I confirm the crash on GTK-widgets.exe, but it is working fine if 
compiled in debug mode (using -g), so I guess this qualifies as an 
heisenbug. :-)
I will investigate that issue later today.
It seems that the import section in the binary is corrupted when 
that script is compiled.
MikeL: I've pushed a fix in Red's master branch for the issue with 
gtk-widgets.exe, it now works fine on Win7 (should be ok on XP too).
MikeL
19-Nov-2011
[3837]
Thanks. Works on XP.
Dockimbel
19-Nov-2011
[3838x2]
Cool. :-)
The gtk-widgets.exe demo is really cool, it shows both the quality 
of the binding and the dialecting possibilities of Red/System (kudos 
for Kaj for inventing it!). Kaj really pushed it very far...and this 
is only v0.2.2 of Red. ;-)
MikeL
19-Nov-2011
[3840]
Agreed. I tried to combine a GTK with a ZMQ.... I start to get collisions 
on #includes.      Is there an #include/check option that I didnot 
see in Section 10  http://static.red-lang.org/red-system-specs-light.html#section-10.2
Dockimbel
19-Nov-2011
[3841x2]
No /check option (is that an option from Ladislav's #include?).
Collisions: we are currently lacking modules in Red/System, I plan 
to introduce them at some point, I'm waiting to go deeper in Red 
runtime implementation first to figure out the adequate approach 
for modules support.
MikeL
19-Nov-2011
[3843]
Yes Ladislav's gem ...  include/check prevents scripts from being 
re-included (included more than once).   http://www.rebol.net/wiki/INCLUDE_documentation
Dockimbel
19-Nov-2011
[3844x2]
IIRC, there's already such feature built in Red/System preprocessor, 
but it's based on absolute paths of included files.
I will try your example of including both GTK and ZMQ to see if something 
is going wrong in the preprocessor.
BrianH
19-Nov-2011
[3846]
Harking back to the discussion of Red strings, it might interest 
you to know that the SMS character set uses the 0 position for the 
@ character. Just one of many character sets that won't work with 
C strings. C string support is good for Red/System apps that have 
to access C string library functions, but is a bit too limiting for 
Red itself.