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

World: r3wp

[!REBOL3]

GrahamC
1-Nov-2011
[9758]
I thought Kaj was using R3 for cgi ??
Ladislav
1-Nov-2011
[9759x2]
there is still no official GUI for R3

 - frankly, that is inaccurate. The GUI is "official" in the following 
 senses:

- Carl "delegated" the GUI development to our team
- the GUI is the continuation of the Carl's version
- the GUI is available for everyone
- the documentation is available as well
- the development of the GUI is continuing, for every new version 
of the interpreter, the corresponding GUI version is available
Pekr
1-Nov-2011
[9761]
Ladislav - as due to low public interest the GUI is not going to 
be published so often, I would like to ask, if some work on "nice 
skin" has already started? (I am referring to a blog post :-)
Henrik
1-Nov-2011
[9762]
it hasn't
Ladislav
1-Nov-2011
[9763]
Sorting & Unicode - althought we have Unicode strings available, 
sort is not adapted to that, and the question is, if it can be easily 
done ...

 - this is not a disadvantage of R3, in this case R3 surely is better 
 than R2
Andreas
1-Nov-2011
[9764x2]
weak and underpowered CALL.No /output or /wait parameter IIRC.


I agree with the general notion (that CALL is weak, atm), but: /wait 
is there (albeit not working on Linux, IIRC). /output is missing 
indeed.


But CALL is fully doable as extension or from within the hostkit. 
So if anyone really needs it, it's a matter of either developing 
it yourself or funding the development. (Feel free to contact me, 
if interested in the latter.)
no native CGI support in R3


True, although that "native" support is barely needed. `get-env` 
and `system/ports/input` are basically all you need. I am running 
several R3 CGIs which work just fine.
Claude
2-Nov-2011
[9766]
well................ carl where are you ?????
Singy
2-Nov-2011
[9767]
Ladislav, how do we now access the R3 GUI and the REBOL core on which 
it runs?
Henrik
3-Nov-2011
[9768]
Singy, it should be on saphirion.com, but there are some server problems 
currently.
Robert
3-Nov-2011
[9769]
No server problems: http://www.saphirion.com/development/r3-gui/
Singy
3-Nov-2011
[9770]
Thanks Robert - that works fine - now :) Henrik was correct at the 
time, the server was having problems - it is what prompted my question.
Pekr
8-Nov-2011
[9771]
I just noticed Bohdan Lechnowsky saying following on Facebook: "I 
know for a fact that Carl was working on R3 this past weekend." Any 
insider info on that?
Henrik
8-Nov-2011
[9772x2]
Who is this person?
Found out.
eFishAnt
8-Nov-2011
[9774x2]
Bo did a talk at REBOL/Collaboration 2004 and is quoted in the notes. 
 Oh yeah, here's his bio... http://www.efishantsea.com/devcon2004/bios.html
a quote from there ... http://www.efishantsea.com/devcon2004/bloopers.html
GrahamC
8-Nov-2011
[9776]
Bo lives in Ukiah as well.
BrianH
8-Nov-2011
[9777]
Bo used to work for RT, afaik.
GrahamC
8-Nov-2011
[9778]
Yeah, he was in quality assurance and testing
Geomol
10-Nov-2011
[9779]
In R3, upper- and lowercase chars are equal, which leads to:

>> #"a" = #"A"
== true
>> #"a" > #"A" 
== true

Isn't that a mistake?
Oldes
10-Nov-2011
[9780x3]
no...
no...
>> #"a" == #"A"
== false

>> #"a" == #"a"
== true
Geomol
10-Nov-2011
[9783x2]
But how can something both be equal and larger than something else 
(using normal equal)? Think about it! Look at strings:

>> "a" = "A"
== true
>> "a" > "A" 
== false

(I wouldn't go for this solution for chars though.)
Because chars can be used as numbers, this rule leads to strange 
things like:

>> a: #"a"
== #"a"
>> b: #"A"
== #"A"
>> a = b
== true
>> (1 * a) = (1 * b)
== false
Henrik
10-Nov-2011
[9785]
How would you otherwise compare single upper and lowercase chars, 
then?
Geomol
10-Nov-2011
[9786]
Like in R2, I guess.


You could convert them to strings. And some functions, like PARSE, 
deal with it. I'm not 100% sure, it's the best way, but it's better 
than this, I think.
Henrik
10-Nov-2011
[9787x2]
I don't necessarily agree. In fact, when there is already a case 
sensitive solution (==), this seems meaningful enough, if you want 
a fast and memory efficient case-insensitive comparison.
Already documented:

http://curecode.org/rebol3/ticket.rsp?id=1497&cursor=13
Oldes
10-Nov-2011
[9789x2]
I'm pretty sure the current behaviour is the better one.... and why 
something can be larger?
>> to-integer #"a"
== 97
>> to-integer #"A"
== 65
>> (1 * #"a") = (1 * to integer! #"a")
== true
BrianH
10-Nov-2011
[9791x2]
Consistency between the behavior of = between characters and strings 
is really important. R3 is better than R2 in that regard.
= isn't "normal equal", it's approximate equal. All four of the equivalences 
are "normal", for different circumstances.
Geomol
10-Nov-2011
[9793]
I guess, the question is, whether chars should be more number-like 
or more string-like. In R2, chars are number-like except in maybe 
PARSE, where they are string-like:

>> parse "a" [#"A"]
== true

even if:

>> #"a" = #"A"
== false


In R3, chars are somewhere in between being number-like and string-like, 
as I see it. We can still do much calculations with chars, but not 
all:

>> 2 * #"a"
== 194
>> 2 ** #"a"

** Script error: ** does not allow char! for its exponent argument


The last is possible in R2. If chars should be more string-like, 
then make them so, Carl! This is really confusing:

>> "a" > "A"
== false
>> #"a" > #"A"
== true
BrianH
10-Nov-2011
[9794]
There was a big debate about this before we hammered down the current 
equivalence hierarchy, including the operators. There was even a 
suggestion to have ~= refer to EQUAL?, making = refer to EQUIV?, 
but we finally decided that the paying attention to binding and exact 
IEEE754 equivalence was too advanced for most uses, so = was assigned 
to the most forgiving form of equality. Many other languages with 
an equivalence hierarchy have made a similar choice, so it shouldn't 
be too surprising.
Geomol
10-Nov-2011
[9795]
The last is only confusing, if chars are considered string-like, 
as in R3. In R2, #"a" being greater than #"A" makes good sense.
BrianH
10-Nov-2011
[9796x7]
In general, doing math with char! values without explicitly converting 
them is kind of bad form; it leads to developer confusion. The main 
reason you'd do this is because of the awkwardness of combining operator 
and prefix expressions without parentheses. It's interesting that 
it still works in some cases, but not in others. Considering characters 
to be number-like is a bit weird, a bit too C-like for my tastes.
For instance:
>> 1 + #"a"
== 98
>> #"a" + 1
== #"b"


The latter looks alright to me, the former looks weird, like a to-integer 
is missing. Can't say why though. I know why the result is an integer! 
(the left side sets the datatype returned most of the time), but 
any math that treats a char! as a number rather than as a non-numeric 
ordinal value just seems weird to me.
Alright, not "most of the time", just in this case. For others:
>> 1 + 1.0
== 2.0
>> 1 + $1
== $2
>> 1 + 100%
== 2.0


Maybe that's why it seems weird. I guess that since R3 char! values 
are currently limited to the codepoints in the BMP they are 16 bits, 
so converting back to char! would be a potential loss of range. It 
could go either way, so I guess the datatype-on-the-left rule is 
a way for the developer to specify which they want. And that rule 
applies to string types too (for INSERT and APPEND), so it's not 
completely weird.
Now this looks completely weird:
>> #"a" + #"b"
== #"A"


Having ordinal values that you wouldn't think of being numbers act 
like numbers seems really weird to me. I can accept that #"a" > #"A", 
but treating them like numbers without explicit conversion seems 
strange to me. I get similarly creeped out by multiplying one money! 
by another; I have to remember that despite the "$", and "money!" 
name, they aren't really money (a measure of quantity), they are 
just another numeric encoding that enables more precise decimal math 
than decimal! (another name that seems off to me, since its values 
are floating-point binary, not decimal).
I don't like this inconsistency though:
>> "a" > "A"
== false
>> #"a" > #"A"
== true
Too bad we don't have a hierarchy of inequalities. Only two levels 
would be needed. Maybe a /case option to the functions that the the 
operators map to? Is it even possible to map an op! to a function 
that can take an option?
Perhaps the relative comparison functions could be made to all be 
case-insensitive (for datatypes that have case defined as a concept), 
and have additional STRICT-* case-sensitive functions which would 
combine the functions and STRICT-NOT-EQUAL?.
Andreas
10-Nov-2011
[9803x3]
We have a ticket for an improved equality comparison hierarchy:
http://www.curecode.org/rebol3/ticket.rsp?id=1834
I think that would nicely fit with a inequality comperison hierarchy 
as well (strict vs non-strict).
Nicely fit with an inequality comparison hierarchy
, of course. Bad typing day, I guess.
BrianH
10-Nov-2011
[9806x2]
The term "relative comparison hierarchy" may be better, since it 
wouldn't include NOT-EQUAL? and such.
The STRICT-* relative comparison functions wouldn't have operators, 
unless we could come up with some that don't look like line noise 
(or worse: Perl).