r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
28-Mar-2011
[625]
The Io one is likely simplest, and BSD licensed, so you might be 
able to use some code from it
TomBon
28-Mar-2011
[626]
changing currently my serverbackends from rebol to luajit/FFI. what 
a relief and cool experience to just drop some c header inline and 

access the appropiate lib in seconds. the mapping is nice also.  
thought that this feature is quite important for Red.
Dockimbel
28-Mar-2011
[627]
Nice! We will see if we can come up with something even simpler with 
Red.
TomBon
28-Mar-2011
[628]
with the last beta you can detect also a real firework of new and 
planned very usefull bindings there.

a feature like this defines a real 'multipropose language' as I stated 
many times before.
Dockimbel
28-Mar-2011
[629]
I'll make sure that Red won't lag behind on that aspect. But, as 
Kaj says, binding to a library like SWIG might be overkill for Red, 
I'm pretty sure that we can come up with much shorter and better 
integrated solution for Red (remember that we will have PARSE support 
and ability to use dialects).
BrianH
28-Mar-2011
[630]
Objective-C messages can be passed with calls to C functions that 
are built into the runtime. All languages which have a different 
object model use these functions to interact with Objective-C in 
their compatibility layers. Internally, even Objective-C code compiles 
down to calls to these functions.
Dockimbel
28-Mar-2011
[631]
Good to know, seems easier at first look, to interface with than 
C++.
BrianH
28-Mar-2011
[632x3]
Interfacing with C++ functions and objects requires matching the 
name mangling and structure layout conventions, and those are different 
between compilers. There are some attempts to standardize these conventions, 
but their success is limited. This is why the developers of most 
Unix clones tend to hate C++. The best solution on most platforms 
tends to be to use C wrappers or one of the binary object interop 
standards like COM or CORBA.
Note that there is a typo in the manual you linked here: http://www.rebol.com/docs/core23/rebolcore-16.html#section-3.1
- the caret character is listed as #"^" when it should be #"^^".
Actually, almost all of those character literal examples are missing 
their leading ^.
Dockimbel
28-Mar-2011
[635x2]
Bad place for a typo.
Thanks for mentioning it, I've added a note in the specs about that.
BrianH
28-Mar-2011
[637x2]
It's an incomplete list too. Here is a complete list of the control 
characters (not including the keywords or hex in parens):

>> print mold collect [for x 0 255 1 [if 4 < length? mold to-char 
x [keep to-char x]]]

[#"^@" #"^A" #"^B" #"^C" #"^D" #"^E" #"^F" #"^G" #"^H" #"^-" #"^/" 
#"^K" #"^L" #"^M" #"^N" #"^O" #"^P" #"^Q" #"^R" #"^S" #"^T" #"^U" 
#"^V" #"^W" #"^X" #"^Y" #"^Z" #"^[" #"^\" #"^]" #"^!" #"^_" #"^"" 
#"^^" #"^~"]
That's in R2. In R3 it seems to be the same list, but #"^!" molds 
as #"^(1E)".
Kaj
28-Mar-2011
[639]
The new documentation is quite extensive. Is everything described 
(apart from the plans section) implemented, or not everything yet?
NickA
29-Mar-2011
[640]
Doc, the Red project has really sparked my hope for future REBOL 
development.  The following discussion is particularly exciting:


http://translate.google.com/translate?hl=en&sl=fr&tl=en&u=http%3A%2F%2Fwww.digicamsoft.com%2Fcgi-bin%2FrebelBB.cgi
Dockimbel
29-Mar-2011
[641x3]
Kaj: I've implemented 85-90% so far, I'll publish a list of missing 
features today.
Btw, anonymous comments are now allowed on the blog (I've left the 
captcha).
Nick: french talks passed through Google's translation service really 
do look weird...but the meaning seems mostly preserved. About Red, 
the potential is huge: draw a triangle with C, Lua and REBOL on each 
corner and put Red in the middle, you'll get a feeling of the possibilities. 
;-)
Pekr
29-Mar-2011
[644x2]
I want View for drawing triangles, not C or Lua :-)
But maybe you mean the possibility of rather easy usage of different 
targets/backend, and Red being  a glue language? Well, IIRC Reichart 
suggested REBOL being renamed to Glue, in the past. So will we have 
Red Glue? :-)
Rebolek
29-Mar-2011
[646]
But you have it: view [drawing 200x200 [triangle 0x0 200x0 100x200]] 
;)
Pekr
29-Mar-2011
[647]
Rebolek - does it work in Red? :-)
Kaj
29-Mar-2011
[648x2]
Red turns out to be classic:
http://www.programming-languages.co.uk/red.html
Pekr
29-Mar-2011
[650x2]
hmm, a name conflict? Well - we are modern red :-)
it's not here though - http://en.wikipedia.org/wiki/List_of_programming_languages
Dockimbel
29-Mar-2011
[652x2]
But maybe you mean the possibility of rather easy usage of different 
targets/backend, and Red being  a glue language?


No, it's actually the opposite. I meant capturing the possibilities 
of these tools and merging them in one unique tool: Red.
The old Red mentioned on the page from Kaj's link never made it public 
AFAIK and seems burried six feet under decades of computing history. 
So, no name conflict there ;-)
MikeL
29-Mar-2011
[654]
The ES Red = EN Network name works well (methinks).
Dockimbel
29-Mar-2011
[655x2]
Good to know, I'll spend the next weekend in Spain, so I'll try to 
keep that in mind if I have to present my work. :-)
Specs doc updated with now an additional CSS skin with white background 
(as requested by several ppl): http://sidl.fr/red/red-system-specs.html
AdrianS
29-Mar-2011
[657]
WRT naming, is it's uniqueness as a search term not important? I 
suppose that you could always use "red language", but I would still 
think that a unique name would be the way to go. Maybe Petr's redglue.
Dockimbel
29-Mar-2011
[658]
Uniqueness would be nice, but it's very hard to find a unique language 
name, that is short, doesn't sound bad, have a meaning, etc...Also 
having a common name has never been a problem for Perl, Python, Ruby,...
Kaj
29-Mar-2011
[659]
Thanks Doc, that reads much better
AdrianS
29-Mar-2011
[660x2]
Well, you have to think a little bit if Red is the same as those 
when it comes to searching. Perl is actually unique since pearl is 
the spelling of the oyster product. When it comes to Python, I can 
tell you that in typical English language use, the frequency of the 
word python will be relatively low, so you won't really pollute search 
results for the language which has a relatively large use in the 
IT community. Ruby is somewhat similar in that you won't find too 
many uses of the singular word ruby used by the general population 
- at least not to outweigh its language name frequency. When it comes 
to Red, I can guarantee you that red is quite a common word.
Redd?
Maxim
29-Mar-2011
[662]
well..... if you search red language in google, you already have 
the 3rd entry and several hits on the first results page, so I  guess 
it not that big a deal  :-)
AdrianS
29-Mar-2011
[663x2]
sure, that's what I said above, you need to use "red language" - 
the thing is that "language" needs to be part of the query and I'm 
guessing that there will be lots of pages where this word will not 
be included. I just think that if you are going to be creating a 
new language, uniqueness in naming is only a plus and now would be 
the time to determine that rather than after its use is widespread
really it's not like there is a shortage of unique names out there 
- the only problem is that usually everyone has an opinion as to 
what's a good name - too many points of view
Dockimbel
29-Mar-2011
[665x4]
I think that the language name alone is not the typical query that 
someone would do. Here's two examples:


- Tiobe index relies on "<language> programming" as its search query 
to mesure the popularity of a programming language (see http://www.tiobe.com/index.php/content/paperinfo/tpci/tpci_definition.htm)


- For Cheyenne web server (not a language, but uses a common name), 
people coming to the web site with only "cheyenne" as a search keyword 
are very few. A vast majority use "cheyenne server" or "cheyenne 
web" or "cheyenne rebol". Anyway, after been online for a few months/years, 
Cheyenne's web site appeared on first page if you search for that 
word only (while there's really a *lot* of others resources not related 
to this web server).


There's also another point to consider. If the target name is not 
strongly associated with an existing brand or a popular product, 
you'll see a lot of unrelated results on first page (that's the case 
for "Red"). So, AFAIU page ranking algorithm, once Red language will 
spread larger, I'm ready to bet that the cross-reference links of 
Red-related site (and back-references to Red's home site) will push 
it rapidly on the first page, or even in the top 3 list.
Anyway, I'm not against switching to a better (unique) name, but 
it needs really to fill my criteria:
- short
- sounds ok in english
- doesn't sound bad in french
- have a meaning related to the language
- if possible, not a backronym (they are usually bad)

- has .org / .com / .net free (it's ok if adding "-lang" is needed 
for that)
- I need to like it (or at least be able to get accustomed to it)
The jewel names could have been a good place to pick a programming 
language name, but last time I've checked all the good&short ones 
have been taken already.
(Gabriele took the last good one ;-))
Maxim
29-Mar-2011
[669x2]
zen

 was a good name that Carl once said he would have been willing to 
 rebrand REBOL to.
but I really like Red.  :-)
Dockimbel
29-Mar-2011
[671]
Zen would have been a good choice too for my language. IIRC, when 
I checked that a few months ago, it was taken already. Anyway, same 
lack of uniqueness as Red.
Pekr
29-Mar-2011
[672]
Stay with the name, Doc :-)
GrahamC
29-Mar-2011
[673x2]
You could use ch'an ... that preceded zen :)
Ch'an Buddhism spread to Japan where it became known as Zen