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

World: r4wp

[#Red] Red language group

Pekr
24-Jun-2013
[8663]
Dockimbel - I thought so, my idea was, that Cyphre used some ELF 
support from Adrian too ... or who did it ...
Bo
24-Jun-2013
[8664x2]
Works fine on my Android 4.1.2.
However, and I think you already know this, working with decimal 
numbers makes it close and go away.

2.0 - 1.0 ;crash
DocKimbel
24-Jun-2013
[8666x5]
Pekr: I strongly doubt that Cyphre is using Red's ELF emitter while 
compiling with gcc. ;-)
Bo: yes I'm aware of that, currently Red supports only armel ABI 
while it seems that armhf is required for Android.
The difference between those two ABIs is the way float arguments 
are passed on sub-routine calls, IIRC, armel requires the argument 
to be on stack while armhf passes them by registers.
It's not a big task to add armhf support to the ARM backend, probably 
2-3 days of work.
Okay, AdrianS install problem is solved (debug vs release version 
signature conflict). So, so far, no reported issues with the new 
Red APK! :-)
Kaj
24-Jun-2013
[8671x2]
Red has no floating point yet, only Red/System
Unless there's float support in the pending code
DocKimbel
25-Jun-2013
[8673]
No, there's not.
Luis
25-Jun-2013
[8674]
Yessssssss !!!!! on Galaxy Note II 4.1.2
DocKimbel
25-Jun-2013
[8675]
Great! Thanks for testing! :)
Pekr
25-Jun-2013
[8676]
either I have mess again on my system, or there's a compilation error 
for me, when trying to do:


do/args %red.r "-dlib -v 0 %red/bridges/java/hello.red -o %../red/bridges/java/hello" 


Script: "Red/System IA-32 code emitter" (none)
*** Compilation Error: missing argument
*** in file: %structures.reds
*** in function: exec/~java-instantiate-abstract
*** at line: 166
*** near: [jni-env/jni/NewObject]
DocKimbel
25-Jun-2013
[8677]
Yes, the bridge updates have not been commited yet, I'm still working 
on cleaning it up. It should be ready in about an hour I hope.
Pekr
25-Jun-2013
[8678]
ok, good to know, moving home from work, will try in the evening 
....
DocKimbel
25-Jun-2013
[8679]
Just found out how to set a black (ICS) skin for Red apps on Android. 
Looks great! :)
Bo
25-Jun-2013
[8680]
Is it still true that Red/System doesn't support loading/reading 
files?
Kaj
25-Jun-2013
[8681]
No, it does with my bindings
Bo
25-Jun-2013
[8682]
That's right, you have a C Language binding to do that, don't you?
Kaj
25-Jun-2013
[8683]
Yes, and a cURL binding for network files
Bo
25-Jun-2013
[8684]
I'm trying to load binary data to perform some bit-level operations 
on it.
Kaj
25-Jun-2013
[8685x2]
There's a binary example in my 6502 emulator, where it loads a ROM 
file
http://red.esperconsultancy.nl/Red-6502/dir?ci=tip
Bo
25-Jun-2013
[8687]
It sure would be nice if we had a centralized repository for Red 
and Red/System examples, like we have for Rebol at Rebol.org.
Kaj
25-Jun-2013
[8688x2]
That wouldn't scale, unless it were a repository of links
The file operation is in machine.reds under the ROM heading
Luis
25-Jun-2013
[8690]
Is possible an bridge from red to App Inventor components ? https://sites.google.com/site/mobileprogrammingusf/java-bridge
Bo
25-Jun-2013
[8691]
In Rebol, I can put a 'halt at the end of my script to be able to 
read output from my script.  Can I do a similar thing in Red/System?
Kaj
25-Jun-2013
[8692x5]
There is HALT, but I think it's the same as QUIT
If you have a console window in Windows that is closing, you could 
do
until [no]
Or if you're using my C library binding, to not use CPU:
input
Bo
25-Jun-2013
[8697x3]
OK.  Thanks!
I tried the until [no], but the console window just flashes up and 
disappears really quickly.  I'm assuming that's because it is erroring 
out.  Is there any document on how to debug this type of thing?
I'm trying to convert your file reading code to a general purpose 
function.
Kaj
25-Jun-2013
[8700x2]
There are general purpose functions for text files here in ANSI.reds:
http://red.esperconsultancy.nl/Red-C-library/dir?ci=tip
Bo
25-Jun-2013
[8702]
Can those be easily modified for binary files?
Kaj
25-Jun-2013
[8703x2]
I was still going to make binary versions with the 6502 code. Shouldn't 
be hard. Binary is easier than text
I could do it now if you want?
Bo
25-Jun-2013
[8705]
I would really appreciate that!
Kaj
25-Jun-2013
[8706x2]
OK, I have a suitable hole before my bedtime
ANSI.reds now has read-file-binary
Bo
25-Jun-2013
[8708]
Do I just synchronize that with Fossil?
Kaj
25-Jun-2013
[8709x4]
Yes, if you have that installed, just do
fossil update
Added write-file-binary for good measure
Oops, I'm not returning the binary file length. Have to fix that 
oversight