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

World: r4wp

[#Red] Red language group

Henrik
1-May-2013
[7508x2]
Does Red attempt to answer Carl's old question of passing big options? 
Carl wrote a document on this once, but I can't find it.
Essentially it was the idea of doing something else, when a function 
grows to have too many refinements, as this is both not very user 
friendly and reduces performance.
DocKimbel
1-May-2013
[7510]
APPLY is there for that (not yet implemented in Red though).
Henrik
1-May-2013
[7511]
ok
DocKimbel
1-May-2013
[7512]
There's also the special /options (IIRC) refinement in Topaz that 
allows use to pass a block with set-words/value for each arguments 
(including refinements). That should be also a solution to consider.
Gregg
1-May-2013
[7513]
I've sometimes thought /WITH would be a good name for the arg block 
idea, though it would conflict with a few existing cases.
Kaj
1-May-2013
[7514]
Agreed, I'm using that when marshalling Red to Red/System parameters
PeterWood
4-May-2013
[7515]
I have consolidated the current Red/System V2 wish list  on the Github 
wiki - https://github.com/dockimbel/Red/wiki/Red-System-v2-Wish-List
DocKimbel
5-May-2013
[7516x3]
Thanks Peter. Could you please add a message like "Wish moved to 
v2 wish list on wiki" to each related tickets and close them?
Also, having details for #27 and #28 would helpful. As is, I don't 
understand them.
Also each wish has to be motivated by some need, else it will be 
likely rejected if the need is not obvious to me.
Pekr
5-May-2013
[7519]
Quite extensive list. If there are no show-stoppers, I would proceed 
with Red first, e.g. getting us onto IOS, Android, bindings to native 
APIs, I/O, parse, etc. :-)
Kaj
5-May-2013
[7520]
A lot of that needs to go through Red/System, so it's hard setting 
priorities
PeterWood
5-May-2013
[7521]
I've closed the issues and will write up #27 and #28 (as I understand 
them) and add to the needs as I understand them.
Kaj
5-May-2013
[7522]
Nice list, Peter
PeterWood
5-May-2013
[7523]
Quite a few are youre Kaj :-)
Kaj
5-May-2013
[7524]
Yes, but it's important to have them in a more structured form
DocKimbel
5-May-2013
[7525x3]
Right, having a more formal specification like Python's PEP would 
be nice.
Pekr: it's for Red/System 2.0, so it's not a short-term task.
Also, probably half of them will be rejected, or superseded by other 
features.
Arnold
6-May-2013
[7528x3]
No rejected items yet, looking good! Point 5 and 17 both have a wish 
for a BREAK.
What do we need GOTO for in Red? GOTO END-PROGRAM ;)
Array type +1
DocKimbel
7-May-2013
[7531]
Arnold: I haven't processed the list yet.
Pekr
7-May-2013
[7532]
Array type + 2, no matter if you processed it :-)
DocKimbel
7-May-2013
[7533]
Having an array type is probably not as useful as you might think. 
The only real advantage I see is the ability to add optional bound-checking, 
which should protect from a whole class of errors.
PeterWood
7-May-2013
[7534]
Array syntax is a little more "average" programmer friendly than 
allocating memory and user pointers though :-)
Arnold
7-May-2013
[7535]
But only just a little! :D


@Doc I guessed that! It looks other way for outsider(s) (undecided)
DocKimbel
7-May-2013
[7536x3]
Peter, it is possible to add literal array notation support without 
adding an array type.
Also, even if you can statically allocate memory, you still need 
dynamic allocations too.
Peter, what kind of "array syntax" do you have in mind?
Arnold
7-May-2013
[7539]
For other purposes arrays are not a replacement for pointers. But 
for the majority of small uses of arrays they take away the need 
for the administration overhead. It is handy and easy.
Gregg
7-May-2013
[7540]
Is there a Red/System page that states its goals? e.g., Is Red/System 
meant to be bare bones, or do you see adding some higher level elements, 
like D. I ask because D has various array types, and didn't know 
if you planned to implment a few core elements at the lowest level, 
so they can be used in Red/System, and then just exposed to Red.
DocKimbel
7-May-2013
[7541x3]
Goals are stated since the beginning here: http://static.red-lang.org/red-system-specs.html#section-1
Red/System is supposed to remain small in order to be usable as a 
Red dialect for low-level programming. I don't have any plans to 
add higher-level features, because they will overlap or collide with 
Red's own features.
So, it's fine to add Red/System features as long as it helps Red 
language construction or extends the low-level accessing abilitites.
Gregg
7-May-2013
[7544]
Thanks Doc.
PeterWood
7-May-2013
[7545x2]
I''ll add an idealistic  array wish page to the Github Wiki.
It's here https://github.com/dockimbel/Red/wiki/Ideal-array-capabilities

Comments appreciated.
Gregg
7-May-2013
[7547]
Re #7, while I understand the reasoning behind the op names, I prefer 
remove/append/take/insert. I'm OK with other terms, though REBOL's 
choices are nice. I used to write OO stuff with ops named based on 
the data structure, e.g. push/pop for stacks, but Bertrand Meyer's 
argument for Linnaean naming conventions swayed me a long time ago.
Arnold
8-May-2013
[7548]
@arrayproposal: I really like the index to run from 1 to 10 and not 
from 0 to 9. I suspect this is because I happen to be a human-being 
not a computer. Maybe I could live with this different in Red (1 
- 10) and Red/System (0 - 9), because Red is higher level and Red/System 
being low level, but that might be confusing too.
GrahamC
8-May-2013
[7549]
where does I/O appear in the list of priorities and timetable?
MaxV
8-May-2013
[7550]
+1 Arnold
PeterWood
8-May-2013
[7551x7]
For Red or Red/System Graham?
I/O for Red/System is likely to be a library rather than in the language 
itself. If I remember correctly Kaj's C lib provides I/O support.
I/O support for Red is very high on the Red todo list  - basic I/O 
support is essential for Nenad for Nenad to write Red/System V2 (which 
itself is essential for "production ready" Red.
I believe that object! datatype and an improved 'LOAD function are 
pre-cursors to I/O in Red and the reason that i/O isn't top of the 
priority list. (Of ocurse, I may be wrong)
Gregg I will note your suggestion in the wiki.
(Though I suspect that my initial wish is very much a "wish to far").
Arnold, MaxV - The array wish includes the ability for the programmer 
to choose between zero-based and one-based indeces as it allows the 
user to specific the array range.