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

World: r4wp

[#Red] Red language group

GrahamC
10-Dec-2012
[4673]
No case sensitivity in chinese as there is no case
Kaj
10-Dec-2012
[4674]
The issue is to keep them separate, instead of merging them into 
lowercase; but Doc has fixed it so far
BrianH
10-Dec-2012
[4675x2]
For compiled code does it really matter? I thought it would only 
matter for words-as-data, and that compilation of case-insensitive 
code would make most words go away. For words-as-data, having some 
duplicate data when appropriate should be OK.
Are you going to have case-sensitive objects, or just case-preserving?
DocKimbel
10-Dec-2012
[4677x2]
What about to convert all the words into lowercase in compile time?


Words values are not "compilable", they are data (words used as variables 
can be "compiled" to some extents). Converting all words into lowercase 
during compilation (including JIT-compilation for words constructed 
at runtime) would make you loose the ability to distinguish lower/upper-cased 
letters, leading to big issues and pitfalls in the language. For 
example: (form 'A) = "a" (beause 'A would get converted to 'a). Not 
an option.
Are you going to have case-sensitive objects, or just case-preserving?


Are you referring to words defined in the object's context? Probably 
just case-preserving.
BrianH
10-Dec-2012
[4679x3]
Yes, that's what I meant. I phrased it that way because there was 
a big discussion where people were requesting that an option be added 
to objects to have them be case-sensitive, to distinguish based on 
case when mapping words to value slots, rather than the case-preserving 
default. We had to reject that proposal because there was no way 
to specify that option in the make object! syntax. The only way to 
do that in Rebol is to have a separate object-like datatype that 
has case-sensitive word mapping. The same proposal was made for maps, 
with the same results: a case-sensitive alternate type would be required. 
For both of those types, SELECT vs. SELECT/case could have some meaningful 
distinction, though we didn't get far enough for that to be an issue 
yet.
This is all old Rebol discussions, but Red would have similar issues 
with proposing such options because it was a matter of syntax.
Back to an older topic, hex syntax. If you had 16#abcdabcd translate 
to an integer!, it wouldn't have to be considered to be a conflict 
with #abcdabcd being an issue! value. It's just like {abcdabcd}, 
#{abcdabcd} and #abcdabcd are different now. There would be no reason 
to keep the hex syntax once the value is loaded, it could just be 
a regular integer. You could even keep the issue! type as a word 
type with some extra series-like operations supported, the way tuple! 
supports series-like operations without being a series.
DocKimbel
10-Dec-2012
[4682x2]
I don't see any advantages in having case-sensitive objects (but 
I see potential issues allowing that). Have I missed something?
Hex: your proposition is acceptable, but it makes hex literals writing 
still a bit more verbose than needed. We should be able to come up 
with a better solution that leads to just one additional character 
in order to write and identify hex literals (hence my # suffix proposition, 
with a base-16 default value).
BrianH
10-Dec-2012
[4684x2]
(For comparison again, sorry) In R3, objects are in many ways like 
the tables in Lua, used for data purposes as well as for contexts, 
underlying several other datatypes or operations as well. Most contexts 
are declared using these other datatypes or functions that wrap objects; 
raw objects are more often used as data structures than as contexts. 
It might make sense to support case-sensitive objects as data structures. 
Nonetheless, I wasn't the one making the suggestion, and I'd have 
to do a bit of research to dig up who was requesting this.
Most people would prefer case-preserving behavior though, despite 
how difficult that is for multi-language Unicode words.
DocKimbel
10-Dec-2012
[4686x2]
I will answer in Language group.
FIND on string! implemented (only tested with no refinements).
Jerry
11-Dec-2012
[4688]
Red is making progress fast :-)
Pekr
11-Dec-2012
[4689]
Jerry: yes, it is. I just hope, that some I/O and later parse comes 
in next 2 months, to be really usefull in real life :-)
DocKimbel
11-Dec-2012
[4690]
SELECT full support implemented for all series datatypes (including 
path access syntactic sugar).
Gregg
11-Dec-2012
[4691]
Wow! You are making great progress Doc!

Go Doc Go!
Pekr
11-Dec-2012
[4692x2]
Doc: "FIX: now FIND/match will return the tail of the match. " - 
aren't /match and /tail two distinctive refinements in REBOL's find? 
Why implicit /tail here?
ah, different thing, REBOL returns tail for match too, at least according 
to help string ...
DocKimbel
12-Dec-2012
[4694x2]
Thanks Gregg! More to come...;-)
COPY on any-block! series implemented, /part and /deep supported 
(/types has not been implemented yet).
Jerry
12-Dec-2012
[4696]
Never used /types before. There are so many refinements that I don't 
notice their existance.
Arnold
12-Dec-2012
[4697]
Red development is on the Jazz. Don't get distracted by the release 
of R3 sources. Keep rolling the Red dice :)
Henrik
12-Dec-2012
[4698]
Stay on target.
DocKimbel
12-Dec-2012
[4699]
More than ever. ;-)
GrahamC
12-Dec-2012
[4700]
Hopefully we will see some synergies with the two projects.
DocKimbel
13-Dec-2012
[4701]
I just had a very short look on R3 code yesterday's night, what striked 
me the most at first look is how both R3 and Red are struggling (in 
different ways) to avoid writing C code as much as possible. :-)
Pekr
13-Dec-2012
[4702]
in what way is R3 struggling to write C code? Isn't it written purely 
in C?
DocKimbel
13-Dec-2012
[4703]
It seems that is uses some REBOL templates to generate some additional 
C code during the building process, like this one:

https://github.com/rebol/r3/blob/master/src/boot/types.r
Endo
13-Dec-2012
[4704]
r3 / src / tools section is great :) I especially like make-make.r
BrianH
13-Dec-2012
[4705]
R3's source also avoids direct C code by doing a lot of the work 
in macros. With the macros, the C source of a native doesn't look 
that much different than mezzanine code.
Arnold
13-Dec-2012
[4706]
I noticed some similarities too in actions
Pekr
13-Dec-2012
[4707]
Doc, as R3 got released on 12.12.2012, you should prepare some release 
or nice Red surprise for 21.12.2012, to be on pair :-)
Cyphre
14-Dec-2012
[4708]
Pekr, something like "The end of World and Red"?(no offense,  just 
a  joke Doc and John) :-)
Pekr
14-Dec-2012
[4709]
Actually old stuff will die off - Mayans thought about the date as 
of the new fresh era, new oportunities, so quite the opposite :-)
Rebolek
14-Dec-2012
[4710]
World has already ended with its closed-source nature :)
DocKimbel
14-Dec-2012
[4711]
Cyphre: don't count on that (at least for Red)! ;-)
Geomol
14-Dec-2012
[4712]
I don't agree. (of course) World is on hold because of lack of finances 
to bring the development forward.
Arnold
14-Dec-2012
[4713]
The World has ended the Maya's before the Maya's could end the World.
Pekr
15-Dec-2012
[4714]
Donated 50 EUR so that Nick has at least something to match :-)
DocKimbel
15-Dec-2012
[4715]
Thanks! :-)
Gregg
15-Dec-2012
[4716]
Other donations have been made as well, but it's great to remind 
people that we need to support Doc so he can focus and keep making 
great progress. Thanks Petr.
Pekr
15-Dec-2012
[4717]
Ah, glad to hear that :-)
Janko
15-Dec-2012
[4718]
I yesterday donated just 15EUR (just for a pizza, and didn't intend 
to mention it here), but if Nick will match it will be 2 pizzas :P
Pekr
15-Dec-2012
[4719]
:-)
DocKimbel
15-Dec-2012
[4720x2]
If I cut each pizza in four parts, that's almost 8 lunches! :-)
Actually, good decent pizza in restaurant is about 3-5€ here, so, 
15€ is at least 3 pizzas!
Gregg
15-Dec-2012
[4722]
Janko, every bit counts. I've donated this month, but I will match 
December donations in a January donation, up to USD$200. So, donations 
in December get double matching up to USD$200, if Nick matches as 
well.