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

World: r4wp

[#Red] Red language group

Kaj
29-May-2013
[8061]
The viking ship is how I always thought about it :-)
Geomol
29-May-2013
[8062x2]
The license for Red at bottom of
https://github.com/dockimbel/Red/blob/master/README.md

state, that the runtime uses the more permissive BSL license. Why 
this distinction?
:) Yeah, us crazy vikings.
Kaj
29-May-2013
[8064]
Because Red needs to compete with other compilers. Classic compilers 
insert only very small pieces of boilerplate code, so that's free 
of rights. Red inserts the entire runtime and interpreter in compiled 
programs, but it needs to compete with that freedom
Geomol
29-May-2013
[8065]
And Red owner could get into trouble, if not giving permission or 
what?
Kaj
29-May-2013
[8066]
No, but people would complain that when they keep programming in 
C++, their executables are more free
Geomol
29-May-2013
[8067]
Licenses kinda sucks, don't they?


When Mozart visited the sixtin chapel in Rome in 1770, he heard a 
secret piece of music, Allegris "Miserere". From memory, he wrote 
the piece down with all 12 voices or how many, when he was back at 
the hotel. Later he received an order from the Pope. Licenses kinda 
remind me of this. Why show or play something for someone else, and 
then at the same time say, you can't use it? :)
Kaj
29-May-2013
[8068x2]
Yeah, it complicates things a lot
So far I have mostly talked about the ability to write R3 extensions 
in Red and Red/System, because I made a specific bridge for that. 
But with Red's ability to generate shared libraries, you can also 
make generic extensions for other systems, such as R2 and World. 
You can write libraries in Red and then import them with the DLL 
interfaces in World and R2
Geomol
29-May-2013
[8070x2]
nice
If you see any code from me, be it mezzanines or C source or anything, 
use it, if you can! And I don't ask for specific mention. If people 
feel, they got some pieces of gold and wants to mention, where they 
got it from, fine.
Kaj
29-May-2013
[8072x2]
Thanks, that's great!
But a viking deserves a rune stone in his memory, don't you think?
Geomol
29-May-2013
[8074x3]
:) I'll create my own rune stones. (Any someone may create one too, 
but I don't ask for it.)
*And*
I got the red-core interpreter running here btw. That was easy. But 
I miss a HELP function in there.

And I see a lot of functions, so it seems to have come quite a way, 
but no DO of scripts?
Kaj
29-May-2013
[8077x3]
Gregg is working on HELP and WHAT, but it seems to have stalled
I/O is not in Red, only in my extensions. DO is the internal interpreter, 
so it doesn't know about my I/O. It's a good point, I should try 
to override DO
You can start a script when you give its name on the command line, 
even a URL
Geomol
29-May-2013
[8080x2]
I think, it would be a lot easier for e.g. Gregg to create mezzanines, 
if he could do a script with them, like cortex.w and rebol.w in World.
ok
Kaj
29-May-2013
[8082]
Yes, I'll look into it
Geomol
29-May-2013
[8083]
How are Red scripts named? .r or .red or what?
Kaj
29-May-2013
[8084x4]
.red but it doesn't really matter
Note that, even if DO and LOAD currently don't work on files, you 
can still use:
DO READ %file
DO READ "url"
Geomol
29-May-2013
[8088]
ok, good enough for now, I guess.
Gregg
29-May-2013
[8089]
Red HELP func made some decent progress, but I stopped work on it 
because of some issues, and I didn't want to distract Doc until he's 
done with Android.
Geomol
29-May-2013
[8090]
I looked at REBOL WHAT function, Kaj mentioned. I don't think, I've 
ever used it. Is it commonly used by you guys?
Gregg
29-May-2013
[8091x4]
Almost never for me.
BTW, my Red HELP experiment is here, under %Red/mezz/. You can paste 
it into a Red console to test.
Ah, yes. One issue was that calling HELP with no arg crashes the 
interpreter.
I might have stopped until we have errors in Red, because debugging 
by crashing is hard. ;-)
Geomol
29-May-2013
[8095]
yeah :)
Gregg
29-May-2013
[8096]
But also shows that you can still do a lot in Red, even without it. 
Most of the mezz code I did works.
Kaj
29-May-2013
[8097]
WHAT is quite essential on Try REBOL for new users
Gregg
29-May-2013
[8098]
It's never struck me as a great name. I just always use HELP. e.g. 
HELP function!
Kaj
29-May-2013
[8099x3]
It's very introductory, like What, Why, When, Where. You need that 
before you know to do HELP function!
I found a bug in the interpreter that currently prevents me from 
overriding DO:
https://github.com/dockimbel/Red/issues/482
Gregg
29-May-2013
[8102]
Except, we don't have WHY, WHEN, or WHERE. ;-)
Geomol
29-May-2013
[8103]
World should have a WHY??? :)
Kaj
29-May-2013
[8104x2]
I don't see how that devalues WHAT. :-) And R3 has WHY?
I don't remember which, but I think there are old computer systems 
that list available commands with WHAT
Arnold
30-May-2013
[8106]
WHAT is to find out what stuff is attached under an object. I use 
(d) it a lot with VID, finding out which field was filled with what 
value to see how I could go about dynamically change the properties 
like captions and values and colors.
Geomol
30-May-2013
[8107]
Arnold, isn't that what HELP (or the ? short) is used for? WHAT seems 
to "Prints a list of globally-defined functions.".
Arnold
30-May-2013
[8108]
You are completely right, I stand corrected. Sorry, mixed them up, 
not using it as much lately.
Geomol
30-May-2013
[8109]
Would it makes sense to add languages like Verilog as target / code 
backend to Red/System?
Arnold
30-May-2013
[8110]
Probably the WHAT has served an important purpose during development 
of REBOL?