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

World: r3wp

[!REBOL3-OLD1]

Paul
18-Jun-2009
[15642]
maybe a better name would be numerize.
BrianH
18-Jun-2009
[15643x2]
Specific formatting is always a bit of a problem, because everyone 
needs it, they need it to be fast, they need it to be consistent, 
and they need it to be completely different from what other people 
need. Personal preferences, industry standards, local standards, 
none agree. Fortunately in R3 native doesn't have to mean built-in 
or standardized.
Remember, "human-readable" depends on the human doing the reading.
Sunanda
19-Jun-2009
[15645]
Some notes on my first attempts to run R3-alpha against existing, 
published R2 scripts:
   http://www.rebol.org/art-display-article.r?article=j26z
Steeve
19-Jun-2009
[15646]
Hmmm...

we don't use anymore "to-pair reduce [x y]" since a while, but "as-pair 
x y".
Sunanda
19-Jun-2009
[15647]
The script was written back in 2003, when as-pair was not availabe.


Oddly, R3-a58 does support to-pair, but not for integers, suggesting 
the problem is just a glitch:
    >> to-pair [1 2]
    ** Script error: cannot MAKE/TO pair! from: [1 2]
    >> to-pair [1.0 2.0]
    == 1x2
Steeve
19-Jun-2009
[15648]
Interesting conversion in R3.
>>to-pair 2.8
==2x2
Sunanda
19-Jun-2009
[15649]
That's an R2 feature too. It kind of makes sense:
    to-pair 2
    == 2x2    ;; duplicates the 2 to create the missing value
    to-pair 2.8
    == 2x2   coerce to integer!, then as above.
BrianH
19-Jun-2009
[15650]
to-pair [1 2] not working is a bug, btw. Has a ticket and everything.
Maxim
19-Jun-2009
[15651]
pairs are very usefull in R2 I hope their functionality doesn't change.
BrianH
19-Jun-2009
[15652]
Aside from that bug, I've seen no changes. AS-PAIR might go native 
though.
Maxim
19-Jun-2009
[15653]
so when will the plugin interface be documented?
BrianH
19-Jun-2009
[15654]
It's not even done yet. After this month I guess.
Maxim
19-Jun-2009
[15655]
I just can't wait  :-)
Sunanda
20-Jun-2009
[15656]
is binary a string?
Carl wants opinions to help him decide:
http://www.rebol.net/r3blogs/0209.html
Sunanda
22-Jun-2009
[15657]
No twitter or other announcement, but alpha 58 is out -- over 25 
curecode issues addressed:

http://www.rebol.net/wiki/R3_Releases#View.exe_2.100.58_21-June-2009
Pekr
22-Jun-2009
[15658]
yeah, I am really satisfied with last few months of developments, 
and I think that the community in overall is, as Carl is doing mostly 
Core stuff, and not GUI. R3 is getting more and more robust and consistent, 
although there is still some way to go. I can feel that we are getting 
more R3 fixes per month, than we get for R2 in last decade :-)
Sunanda
22-Jun-2009
[15659]
Yes -- I am hitting bugs, reporting them on curecode and often seeing 
them fixed in just a few days. It's a good time to be evaluating 
R3.
BrianH
22-Jun-2009
[15660]
New operator !== for STRICT-NOT-EQUAL? - that was the last comparison 
action without an operator :)
Ladislav
22-Jun-2009
[15661x2]
Carl asked: wouldn't it be best to have same? to check for bit-by-bit 
equality? - this would "doom" same? :a 'a to yield False, requaring 
a new comparison operator to compare for "the same variable" case
requiring, sorry
BrianH
22-Jun-2009
[15663]
So SAME? is less strict than STRICT-EQUAL? for words?
Ladislav
22-Jun-2009
[15664x2]
not just for words, for numbers,...
but, certainly not "completely less strict":

>> same? 'a use [a] ['a]
== false

>> strict-equal? 'a use [a] ['a]
== true
BrianH
22-Jun-2009
[15666x2]
Weird - I thought it was a strict hierarchy of increasing equality. 
Never wrote code that would be tripped up by that.
new comparison operator
 - why not = or EQUAL?
Ladislav
22-Jun-2009
[15668x3]
this hierarchy never existed, AFAICT.
since equal? 'a use [a] ['a] should yield True IMO
The only thing I am sure about is, that the IDENTICAL? function ( 
http://www.rebol.net/wiki/Identity) is the finest possible (except 
for my bugs).
BrianH
22-Jun-2009
[15671]
For SAME? I am more concerned about word binding equality than datatype 
equality. If the datatypes differing would make the return value 
false, we can always convert to the same datatype.
Ladislav
22-Jun-2009
[15672x2]
the "usual equality" is the coarsest equality we have - so the coarsest 
side of the hierarchy exists
it is so coarse, that it even isn't transitive (e.g. approximate 
equality for decimals)
BrianH
22-Jun-2009
[15674]
After reading that wiki about identity, almost all of those criticisms 
of SAME? sound like CureCode tickets you haven't written yet. Carl's 
proposed bit-for-bit equality should solve most of those criticisms.
Ladislav
22-Jun-2009
[15675]
all, but I am not sure they are criticisms, they are just difference 
points
BrianH
22-Jun-2009
[15676x2]
SAME? should mean "the same thing". Those difference points are bugs.
In R2, where as-binary is an alias:
>> a: "aa" same? a as-binary a
== false

Differing word types should behave the same, even when bound to the 
same context.
Ladislav
22-Jun-2009
[15678x2]
if we want the hierarchy to be linearly ordered by fineness, then 
the equality should compare just spelling of words, the second one 
- finer and non-existent yet, should compare spelling and binding, 
the third one should compare spelling + binding + datatype (can be 
strict-equal?), the fourth one is not that necessary in this case
my IDENTICAL? may be considered a "quirk", taking into account even 
such thing as the New-line bit
Pekr
22-Jun-2009
[15680]
BrianH: if binary and string types are more divorced, what do we 
gain in particular?
BrianH
22-Jun-2009
[15681x2]
We gain a host of potential new abilities to work with binaries. 
Right now the half-assed way that binaries sometimes act like strings 
is making it difficult to process binaries like binaries. Getting 
rid of the false equivalency will make all sorts off improvements 
possible.
Including proper, powerful support for binaries in PARSE.
Tomc
22-Jun-2009
[15683]
better bit twitteling would be good
BrianH
22-Jun-2009
[15684x2]
Ladislav, just checked your SAME? criticisms from the wiki against 
R3, and only the date! transitivity thing still applies.
Struct! is not implemented, nor is denomination in money!. Closed 
ports are not errors and decimals are fixed. Unset and error are 
still not values. The only thing left is the date! zones and the 
type-ignorant any-word comparisons.
Ladislav
22-Jun-2009
[15686]
how about my last comment to r3blog?
BrianH
22-Jun-2009
[15687]
I hadn't noticed the new blog post. Replied there.
Ladislav
22-Jun-2009
[15688]
yet another posted
BrianH
22-Jun-2009
[15689]
SAME? meaning same bits should include the type flags too - otherwise 
same bits is meaningless or cooincidental.
Pekr
23-Jun-2009
[15690x2]
Maxim, now you can defend your copy deep on object issue - http://www.rebol.net/r3blogs/0212.html
BrainH: btw - Meijeru's identity confirmed - http://users.telenet.be/rwmeijer/
, he now mentions REBOL - http://users.telenet.be/rwmeijer/proglang/