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

World: r3wp

[Red] Red language group

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.
Dockimbel
19-Nov-2011
[3847x4]
I never planned to base the Red string! type on the Red/System c-string! 
type. All Red datatypes will have their own specific implementation. 
In some cases, for the sake of optimization, we should be able to 
substitute some Red scalar values to Red/System scalar values (mainly 
integer! in fact).
to => with
The current Red memory allocator is already providing the low-level 
layer for storing those Red values, but the datatypes constructors 
are not  implemented yet.
That should be my next step once I finish the ARM port.
BrianH
19-Nov-2011
[3851x2]
I was just going through the SMS character set standards to see what 
characters were supported. It's interesting that you can send REBOL 
or C-like code, though you might need to escape some characters; 
to send Lisp code you need to not use macros since the ` character 
isn't supported. One of the surprises is that there is an additional 
standard where you can send UCS-2 (for those Lisp macros, or Perl), 
but you are limited to 70 characters and not all phones and SMS gateways 
support that type of thing.
I wonder if Twitter's character set is similarly limited, since it 
was originally an overlay service on SMS, IIRC.
Dockimbel
19-Nov-2011
[3853]
Interesting, but I guess that a specific data encoding would be more 
appropriate than plain REBOL or C? Something like the Golf dialect 
(wrote by hostilefork?).
BrianH
19-Nov-2011
[3854x2]
I was mostly interested in code sharing over text messages, but something 
like AltME or a code editor on my phone would be invaluable. A code 
editor that can send code snippets over SMS or other sharing services 
sounds interesting. I only mention this in this group because Red 
looks like it will end up on my phone before R3, barring a miracle.
Though, technically, I might be able to get Topaz running on the 
phone even quicker...
Dockimbel
19-Nov-2011
[3856]
I guess that Topaz should already run on it, have you tried the Topaz 
demo URL?
BrianH
19-Nov-2011
[3857]
Not on the phone yet, but I'll try that today :)
Dockimbel
19-Nov-2011
[3858x2]
In case you've missed it, you can already run this simple Red/System 
HelloWorld app on your Android phone: http://static.red-lang.org/android-hello.jpg
And full Red/System apps very soon.
BrianH
19-Nov-2011
[3860x2]
Nice :)
What program did you use to run the remote app?
Dockimbel
19-Nov-2011
[3862]
This one: http://gimite.net/en/index.php?Runnative executable in Android App
Oldes
19-Nov-2011
[3863]
Do you want to make a QNX port as well?
Kaj
19-Nov-2011
[3864]
Thanks for fixing that bug in the Windows version, Doc. I'm developing 
on Linux, so I seldomly test such things
Dockimbel
19-Nov-2011
[3865x2]
It was a bug occurring only in rare cases, I'm glad I had the occasion 
to spot it.
QNX: if you're thinking about BlackBerry support, why not. But as 
BlackBerry has a decreasing market share, I am not sure that would 
be a relevant target to support in a year. Anyway, iOS is second 
on my list of mobile OSes to support (if we can find our way through 
that "fortress").
NickA
20-Nov-2011
[3867]
Thank you for all your continued work!
Dockimbel
20-Nov-2011
[3868]
Thank you for your kind support Nick.
Andreas
20-Nov-2011
[3869x2]
red/system running on another phone:
http://twitter.com/xearl/status/138413355126886400/photo/1/large


that's a hello world binary (using libc) compiled with red/system 
running on a nokia n9.
(inside a terminal. for those not so familiar with linux: the first 
two lines are the call of the binary and the resulting output. the 
rest is just platform porn.)