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

World: r4wp

[#Red] Red language group

Kaj
28-May-2013
[7939x5]
http://red.esperconsultancy.nl/Red-test/dir?ci=tip
It combines most of my bindings to create an alternative for a web 
browser. It's a graphical program that loads pages and apps written 
in Red from our web server and executes them
Bindings not in there are SDL and OpenGL, for graphical 2D and 3D 
programs, ZeroMQ for network messaging, and some specific extra widgets 
for the GTK+ binding, such as a (real) web browser, two map browsers 
and a PDF and other document viewer
Oh, and SQLite databases. I am loosing count :-)
Except for the GTK widgets, most of those bindings and functionalities 
will also work on Android
Geomol
28-May-2013
[7944]
When I have the GTK-browser file on my system, how to run it?
Kaj
28-May-2013
[7945x4]
Just click it. But if you're trying that on a Mac, you have to install 
the dependency libraries first
Also, hardly anybody has bothered to test on a Mac so far, so you'd 
have the honour of testing if my bindings work there :-)
It seems to be easiest to get large dependencies such as GTK+ on 
Mac through Homebrew:
http://mxcl.github.io/homebrew/
Geomol
28-May-2013
[7949]
So from that page, I get to https://github.com/mxcl/homebrew/tree/master/Library/Formula

a long list of stuff. Down there, I see gtk+.rb, click it, and I 
get to a page, which seems to be some description (or recipe, as 
you mentioned). Then what?
Kaj
28-May-2013
[7950]
You have to install the Homebrew package manager. The Ruby files 
are just build recipes, vaguely similar to my Syllable build system
Geomol
28-May-2013
[7951]
hm, that's not going to be tonight. :)
Kaj
28-May-2013
[7952]
It's just one command line, at the bottom of their front page
Geomol
28-May-2013
[7953x2]
ok, trying that...
-e:67: warning: Insecure world writable dir ...

got a couple of those. Any problem?
Kaj
28-May-2013
[7955]
Funny, my build system also says that on Syllable. :-) Ruby gives 
that warning; it's not a problem
Geomol
28-May-2013
[7956]
The following directories will be made group writable:
...
The following directories will have their group set to admin:
...

Hm, that's a bit disturbing, that it changes my system, isn't it?
Kaj
28-May-2013
[7957]
You want to change it by installing software, don't you?
Geomol
28-May-2013
[7958]
:)

Well, can't it just use one dir somewhere, like in Applications as 
all the other software do?
Kaj
28-May-2013
[7959]
Nope, they're ports from Unix, which is quite inflexible about its 
software conventions
Geomol
28-May-2013
[7960]
ok
Kaj
28-May-2013
[7961]
OS X wants to be a Unix, so there you go
Geomol
28-May-2013
[7962]
Downloading and Installing Homebrew...

And then it's counting objects... 113450, done
Kaj
28-May-2013
[7963]
Git is doing that, I think
Geomol
28-May-2013
[7964]
I have a hard time figuring out, what Red is. Is there a simple overview 
somewhere?
Kaj
28-May-2013
[7965]
The apps you see in your Applications use all sorts of Unix infrastructure 
underneath, such as the cURL library, Ruby language and Git tool 
you just found
Gregg
28-May-2013
[7966]
Think of Red as REBOL that can be compiled. The main docs are for 
Red/System at this point. 

http://static.red-lang.org/red-system-specs.html#section-19.2
Kaj
28-May-2013
[7967x2]
Red programs are like the Mac Applications: they don't have to be 
installed and don't care where they run
However, my bindings, like Mac Applications, use infrastructure that 
is included in the ancient Unix parts of the system. So a clash appears, 
when that infrastructure is not installed yet
Geomol
28-May-2013
[7969]
Seems like I got brew installed, and it sais:

You should run `brew doctor' *before* you install anything.
Kaj
28-May-2013
[7970]
Interesting
Geomol
28-May-2013
[7971]
Doing that gives me 7 warnings.
Kaj
28-May-2013
[7972]
Anything serious?
Geomol
28-May-2013
[7973x3]
Warning: Some directories in /usr/local/share/man aren't writable.
Warning: You have leftover files from an older version of Xcode.
Warning: Unbrewed dylibs were found in /usr/local/lib.
Warning: Unbrewed .la files were found in /usr/local/lib.

Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
Warning: Unbrewed static libraries were found in /usr/local/lib.
Warning: Your Xcode (4.5.1) is outdated
:)
I have no idea, if it's serious.
at the bottom: Please install Xcode 4.6.2.
Kaj
28-May-2013
[7976]
Doesn't sound serious, except Xcode
Geomol
28-May-2013
[7977x3]
hm, well, maybe that's as fra I get now.
*far*
So Red/System is like a base for Red?
Kaj
28-May-2013
[7980]
Like C is the base for World, yes
Geomol
28-May-2013
[7981x2]
ok
And how far is it developed?
Kaj
28-May-2013
[7983]
Enough to write Red in it :-)
Geomol
28-May-2013
[7984x2]
ok, and how far is Red?
So if I would try install the gtk+ using brew, do I write:
brew install gtk+
?
Kaj
28-May-2013
[7986]
As I said above, best to run GTK-browser to get a feel for the state 
of Red
Geomol
28-May-2013
[7987]
yes, and I needed gtk+ for that, right? And I needed brew to get 
gtk+.
Kaj
28-May-2013
[7988]
Yes, so?