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

World: r4wp

[#Red] Red language group

Pekr
25-May-2013
[7917]
:-)
Henrik
25-May-2013
[7918]
This might solve all IT problems: "Nobody gets more than 640 kb"
Kaj
25-May-2013
[7919]
You can do that with Genode
Pekr
25-May-2013
[7920]
Doc - have you tried new Android Studio instead of Eclipse?
DocKimbel
25-May-2013
[7921x2]
Pekr: nope, but it doesn't matter much which IDE I'm using as it's 
just for prototyping.
640KB sounds like a good upper limit for Red. ;-)
Arnold
25-May-2013
[7923]
:D 
I think there is a world market for maybe five computers.
 -- Thomas Watson, chairman of IBM, 1943. 
(There are at least 5 computers that run Red code nowadays??)
Kaj
25-May-2013
[7924]
Yes, under my desk
DocKimbel
25-May-2013
[7925]
After several hours of fight, I finally got my first non-crashing 
Red apk running on Android. :-) Now let's see how JNI is doing...
Kaj
25-May-2013
[7926]
Cool!
Pekr
25-May-2013
[7927]
cool :-)
GrahamC
25-May-2013
[7928]
Good news
Marco
26-May-2013
[7929]
I have tried "-t Windows" and now it opens the shell twice :(
Kaj
26-May-2013
[7930]
Odd, it works for me. I tested it on Windows 2000. What version are 
you on?
Marco
26-May-2013
[7931x2]
Win 7. I am trying if I can close the console "manually".
I am doing this:

ShowWindow GetConsoleWindow 0


although it is not very "elegant" since the console window still 
flashes.
Kaj
26-May-2013
[7933]
Good to know. It shouldn't be needed, though, for -t Windows. Perhaps 
Doc can shed some light on it
Marco
26-May-2013
[7934]
I have also tried "FreeConsole" and it opens 2 windows in the same 
way as "-t Windows"
DocKimbel
26-May-2013
[7935]
Marco, can you try it with a simple Red/System program that just 
contains a call to Sleep(1000) (needs to be imported from C lib)? 
So we can see if it's related to Red/System or to your program.
james_nak
28-May-2013
[7936]
Kaj, not to interupt your interesting conversation with the other 
"doc" but I was wondering if you could briefly summarize what one 
can do with all the bindings you have created. I specifically am 
interested in what that all means to android.
Kaj
28-May-2013
[7937x7]
For Android, nothing yet, until Doc gets the Android port to work 
:-)
To get a feel for what Red can currently do, it's best to run my 
GTK-browser example, here in the Red/ folder for your platform:
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