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

World: r4wp

[#Red] Red language group

Paul
9-Jul-2013
[9434]
Sorry Doc on the pdb thing.  I don't think your going to find a pdb 
file format.  Closest I seen was this that someone may have been 
trying to reverse engineer https://www.informit.com/articles/article.aspx?p=22685.
DocKimbel
9-Jul-2013
[9435]
Paul: thanks, AdrianS posted a similar link above. Yes, it seems 
that it's not documented.
Kaj
9-Jul-2013
[9436x2]
Well, MS not wanting people to debug their software explains a lot
With Red, you'll be able to debug your programs on the other platforms, 
before running them on Windows
Kaj
10-Jul-2013
[9438x2]
I see the WinDLL and DarwinSO targets in config.r are now uncommented, 
but LinSO is stil commented out. How do they relate to the -dlib 
compiler parameter now?
Wouldn't it be possible to add MSDOS-ARM and Darwin-ARM targets right 
now, to start testing on Windows Phone and iOS?
Luis
10-Jul-2013
[9440]
The red APK builder script build.r attempt to download some files 
i.e. http://static.red-lang.org/droid-tools/jli.dll.But only gets 
404 Page not found...
Kaj
10-Jul-2013
[9441]
For which platform are you building?
Luis
10-Jul-2013
[9442]
Android
Kaj
10-Jul-2013
[9443]
Sorry, I mean on which operating system
Luis
10-Jul-2013
[9444]
On Windows
Kaj
10-Jul-2013
[9445]
That should be supported. Have you retried?
Luis
10-Jul-2013
[9446x2]
Yes, you can make clicl on my example
click ..
Kaj
10-Jul-2013
[9448]
How can you click? You said it didn't work
Luis
10-Jul-2013
[9449]
here:  http://static.red-lang.org/droid-tools/jli.dll
Kaj
10-Jul-2013
[9450]
OK, Doc will have to look if something is wrong with the script or 
with his server
Luis
10-Jul-2013
[9451]
Oops, old build.r version. Thanks Kaj.
Kaj
10-Jul-2013
[9452]
Always update to the latest Red code for new features
Luis
10-Jul-2013
[9453]
Yes as build.r  with multi OS support  !!
Arie
12-Jul-2013
[9454]
@Doc What a nice syntax for poiinter dereferencing in Red/System! 
Well done.
DocKimbel
17-Jul-2013
[9455x2]
Encapped Red on Windows preview: http://static.red-lang.org/encapped.png
Arie: thanks!
Gregg
17-Jul-2013
[9457]
Woohoo! But...does it run? ;-)
DocKimbel
17-Jul-2013
[9458]
It does, but does not blend! ;-)
Gregg
17-Jul-2013
[9459]
That's really excitiing Doc.
DocKimbel
17-Jul-2013
[9460x2]
I was thinking you would be happy with that move. As the newcomers 
keep showing up on Red, it's time to make it closer to the final 
form.
Also, once the encapped version will be done for all supported platforms, 
we need to set up a continuous integration chain, with tests and 
builds automated. That will take some time to get done properly, 
so better start now.
Gregg
17-Jul-2013
[9462]
Yes, it's a great step. I think the console is important as well, 
so once I get some other things done, we will talk about doc extraction 
and mezzanines in support of that.
DocKimbel
17-Jul-2013
[9463]
Right, we'll work on those tasks as planned during August.
Geomol
17-Jul-2013
[9464]
Encapped Red seems cool, if it's what I think, it is. To have a script 
included and executed at launch, so it's all in one file?


I wonder, what it takes to do that in World. Probably easy enough, 
just need to figure it out.
Bo
17-Jul-2013
[9465]
Geomol: I think encapped Red means that you can compile Red programs 
from the command prompt instead of having to launch Rebol2 and then 
compile the Red program.
DocKimbel
17-Jul-2013
[9466]
Geomol, what is encapped is the Red toolchain, it adds no new features 
to the toolchain itself except removing the need to run it from a 
Rebol2 console.
Bo
17-Jul-2013
[9467]
It is possible right now to include an external file in the executable.
DocKimbel
17-Jul-2013
[9468]
Oh, Bo was faster. :-)
Bo
17-Jul-2013
[9469x2]
Only by 44 seconds according to my AltME. :-)
I'd be interested to know how Doc got around the problems I was seeing 
him have with the Rebol2 encapper.  He is a digital magician!
DocKimbel
18-Jul-2013
[9471x3]
Bo: The issue I had to fight with in my hotel room was just that 
my own prebol replacement lib was adding  an extra layer of MOLDing 
to the input source, because of the workarounds to avoid the #include 
(and others) directive collisions. This resulted in disabling some 
parts of the code leading to  odd runtime errors. I couldn't focus 
enough on it to see it that night because I was too exhausted and 
wanted to listen to the discussion at the same time. :-) (For others: 
my room was a kind of meeting point in the hotel ;-)).


To debug that, I reproduced the preprocessing changes step by step 
in a console until I located the "disabled" parts of the code, once 
I PROBEd those parts in the console, the cause was clear and the 
fix easy.
This is the encap script I'm using:

Rebol [ ]

#include %encap-paths.r
#include %red-system/utils/encap-fs.r
do #include-string %.cache.efs
do #include-string %red-encap.r
Also, to be able to see any output in DOS console from an encapped 
Rebol app, I needed to change a flag in the executable file (sub-system: 
`console` instead of `GUI`).
Maxim
18-Jul-2013
[9474]
you can also set an attribute in the header for it to be generated 
as a console app.
DocKimbel
18-Jul-2013
[9475x3]
Really? I missed that in the docs.
Oh, might be the -c option for enabling the CGI mode, is that the 
one?
Hum, no, doesn't seem to work for DOS console.
Maxim
18-Jul-2013
[9478x2]
similar, I think you just need to add cgi in the encap header attribute
its been a very long time (7 years) and I think its an undocumented 
feature he added just for me.  :-)
DocKimbel
18-Jul-2013
[9480]
CGI option in header does not work for DOS it seems. The only way 
is to set it a flag manually in the exe.
Maxim
18-Jul-2013
[9481x2]
argh... can't remember the flag it needed. memory escapes me.
but its definitely there.
Pekr
18-Jul-2013
[9483]
Doc - does encapper means, that we don't need to use R2 console anymore, 
and that Red distro will contain red executable, which will be able 
to compile and run the scripts?