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

World: r4wp

[#Red] Red language group

Geomol
28-May-2013
[8009]
cairo is a large download
Kaj
28-May-2013
[8010x2]
Mwah, not really, compared to the rest. Perhaps the site is slow
If you look in /usr/local/lib do you see new *.a files?
Geomol
28-May-2013
[8012x8]
make install
Installing gtk+ dependency: pango

Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.34/pango-1.34.1.t
make
make install
Installing gtk+ dependency: atk

Downloading http://ftp.gnome.org/pub/gnome/sources/atk/2.8/atk-2.8.0.tar.xz
make
make install
Installing gtk+

!!! yay! there it is
Downloading http://ftp.gnome.org/pub/gnome/sources/gtk+/2.24/gtk+-2.24.18.ta
make install
...

a couple GB taken so far, it seems.
from the HD
Done, it seems.
So now I should be able to run your demo?
GTK-browser isn't executable. Should I make it and run from terminal 
or what?
513 ~/Downloads$ chmod +x GTK-browser 
514 ~/Downloads$ ./GTK-browser 
dyld: Library not loaded: /usr/lib/libgthread-2.0.dylib
  Referenced from: /Users/john/Downloads/./GTK-browser
  Reason: no suitable image found.  Did find:

 /usr/local/lib/libgthread-2.0.dylib: mach-o, but wrong architecture
Trace/BPT trap: 5
Doesn't seem to run. :/
Kaj
28-May-2013
[8020x2]
Yes, that way you also get stdout output from the demos
Do you have a 64 bit system?
Geomol
28-May-2013
[8022]
yes
Kaj
28-May-2013
[8023]
Hm, then you have to find out how to get Homebrew to compile 32 bit 
versions of all that
Geomol
28-May-2013
[8024x3]
ok
Gotta get some sleep.
Maybe tomorrow. nite nite
Kaj
28-May-2013
[8027x7]
Yeah, later
The easiest way to try Red on Mac is to get the red-core interpreter 
from here:
http://red.esperconsultancy.nl/Red-test/dir?ci=cb632d557a7d83aa&name=Darwin/Red
It uses only libraries known to be shipped with OS X, so it's just 
the one executable. But you do need 32 bit versions of those libraries
There were probably static /usr/local/lib/*.a libraries compiled 
for most of that. Those are perfect for you to link into World
Better use this always current link:
http://red.esperconsultancy.nl/Red-test/dir?ci=tip&name=Darwin/Red
Pekr
28-May-2013
[8034x2]
Geomol - you can watch some slides about what actually is Red - here 
- http://www.red-lang.org/p/about.html
In a short - Red compiles to Red/System. Red/System is intermediate 
language, which then compiles to native platforms. Red/System can 
also generate shared libraries. It all means, that from Windows, 
you can generate OS-X, Linux etc. programs or libraries.


As for Red itself, it is not only compiled though. Doc's intention 
is to bring in a modern hybrid, which will work as compiled, jitted, 
or interpreted, upon the need of the programmer or the app. So, what 
we have also got is Red interpreter and console too. JIT has yet 
to come.


Recently Red is not complete, Doc took some side-way to bring in 
Android support. That means we had to have shared libraries available 
first, then JAVA/JNI bridge (which is done), nowadays Doc works towards 
generating first .apk. He is on vacation till 3rd of June though. 
After that is done, we will get objects, I/O and parse (IIRC Gabriele 
will write it, just waiting for object support)
Kaj
28-May-2013
[8036x4]
John, it looks like you can supply a --universal option to brew to 
build both 64 and 32 bit versions
https://github.com/mxcl/homebrew/blob/master/Library/Homebrew/build_options.rb
There's a gtk alias for gtk+ :-)
https://github.com/mxcl/homebrew/blob/master/Library/Aliases/gtk
Geomol
29-May-2013
[8040x3]
Ok, thanks both of you.
I begin to get an idea. :)
Some funny slides in there!

How REBOL began 14 years ago...

 - and then an image from the frech revolution with REBOL flags, onto
... and where it is today

 - and the image of a raft at sea with no sight of land, people suffering 
 and great despair.


You need a viking ship in there maybe, sailing off for new adventures 
in a new World.


I feel, Red is a good project, and with BSD license, it should be 
possible to give and take easily, right?
Pekr
29-May-2013
[8043]
yes, you are correct, you can eventually use its code freely. But 
I think it will not be of much usage to you - Red code compiles to 
Red/System, which I regard being something like VM for Red. I also 
think, that you are free to take some code from R3, which is C code, 
and might be more usefull to you, and hopefully Apache2 license fits 
here too ....
Geomol
29-May-2013
[8044]
Red/System is also BSD license, isn't it?
Pekr
29-May-2013
[8045x2]
yes, it is ....
Seems to be BSD-3 ... but you can check it on Github ....
Geomol
29-May-2013
[8047x2]
So I could see World benefit from Red, thinking of JIT-compilation 
or Rebcode kind of feature, and I could see Red benefit from World 
in some of the mezzanines, I've done already, and maybe some of my 
closed source code, that target a certain problem, like the multi-line 
input in the console (blocks and long strings going over more lines). 
And maybe World could even get a garbage collector from Red, as for 
example Gregg ask for in World.
Some johnk at the StackOverflow chat asked for the multi-line code 
from Carl. I've got that in World, if anybody can use it.
Pekr
29-May-2013
[8049x2]
So - are you willing to exchange the code for the good, even if World 
is closed source? That would be nice of course ...
Red has some basic multiline IIRC too, in its console ... But surely, 
and maybe your offer could be posted in REBOL3 group here ....
Geomol
29-May-2013
[8051]
Yes, I am.
Pekr
29-May-2013
[8052]
Do you have parse already implemented? :-)
Geomol
29-May-2013
[8053x3]
yes, as mezzanine. Look for bparse, split-string, sparse and parse 
in
https://github.com/Geomol/World/blob/master/cortex.w
I guess, it can be easily ported to Red?
I think, string parsing is not 100% yet (need to do more tests), 
but block parsing should be there.
james_nak
29-May-2013
[8056]
Thank you Kaj for your reply.
Kaj
29-May-2013
[8057x2]
It would surely be interesting to try to port the World mezzanines 
to Red
My multi-line implementation is here in console.red. It's fairly 
complete; not sure if you have more: