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

World: r3wp

[!REBOL3]

BrianH
22-Oct-2010
[5675]
We should consider this to be a requirement for the multitasking 
project, since using the modifying functions can be tricky when multitasking.
Izkata
22-Oct-2010
[5676]
Is there a reason MAP-EACH copies?  Wouldn't it be faster if it modified?
Andreas
22-Oct-2010
[5677]
Certainly an option. But that are not the semantics one usually associates 
with "map". In that case, "change-each" would be a much better name.
BrianH
22-Oct-2010
[5678]
MAP-EACH that modifies would be FOREACH. Generating a new block is 
the entire reason for MAP-EACH.
Andreas
22-Oct-2010
[5679]
FORALL rather than FOREACH.
BrianH
22-Oct-2010
[5680]
Right, but in some way already covered by an efficient function or 
code pattern.
Andreas
22-Oct-2010
[5681x2]
(If anything.)
Anyone still happens to have R3 A30 binaries? If so, please send 
me a private message.
Carl
23-Oct-2010
[5683x2]
A109 for Linux has been uploaded.  There was an odd glitch in the 
build that delayed it.
Andreas, A30?
Maxim
23-Oct-2010
[5685x3]
do you have an ETA for A109 host-kit?
I'm about to prepare a package which has a working version of openGL 
in view...
wondering if Its better to wait for A109
Carl
23-Oct-2010
[5688]
I uploaded it for the RMA guys to test out.
Maxim
23-Oct-2010
[5689]
ok, so its already done... cool.
Carl
23-Oct-2010
[5690]
The A109 did not focus on host-kit, but on other things... so not 
sure it works. I can give you a copy to try if you want.
Maxim
23-Oct-2010
[5691x2]
yeah, it would be nice, I'll try to update the Custom Gob Rendering 
API to it.
btw have fun at amiwest tomorrow... wish I where there  :-)
Carl
23-Oct-2010
[5693]
www.rebol.com/r3/downloads/r3-host-kit-a109.zip
Maxim
23-Oct-2010
[5694]
thx !
Carl
23-Oct-2010
[5695x3]
so... give it a try, but no promises on this one, not tested
(and perhaps some of the files not quite right either... so, it's 
not official.)
Thanks on AmiWest... my truck is full of really old Amiga stuff to 
take over. Cleaned the basement.
Maxim
23-Oct-2010
[5698]
no problem on testing, I'll be diffing it against my modified A107.
Carl
23-Oct-2010
[5699]
Well... hopefully it works. CU later, must go get some sleep.
Maxim
23-Oct-2010
[5700x2]
I can't wait to share the 3d enabled version or R3.... btw, I just 
named my 3d model format...    .R3D    :-)
ciao!
Carl
23-Oct-2010
[5702]
I'm looking forward to it, as I'm sure many others are!
Maxim
23-Oct-2010
[5703]
full-screen animation at 10% cpu  ;-)
Andreas
23-Oct-2010
[5704x3]
Carl, a minor glitch in the A109 hostkit, which prevents it from 
compiling with AGG: in reb-lib.h the #ifdef __cplusplus definition 
of RXIEXT is borked.
Should be
#define RXIEXT extern "C" __declspec(dllexport)
instead of
#define extern "C" RXIEXT __declspec(dllexport)
(reb-lib.h, line 68).
Other than that, the hostkit works fine (and hostkit-built binarries 
pass the same number of tests as the RT binaries).
Sunanda
25-Oct-2010
[5707x2]
Is this a bug or an expected/justifiable result:
  1x.00000000000000000000000000000000000001
 == 1x9.999999e-39
I thint it may be a specific case of this -- unexpected by me, anyway:
    (second 1x.1) = 0.1
    == false
BrianH
25-Oct-2010
[5709]
Ah yes, floating point not being able to represent 0.1 exactly. But 
with the default digits that should work.
Ladislav
26-Oct-2010
[5710]
The (second 1x.1) <> 0.1 result is caused by:


1) the fact, that binary floating point cannot exactly represent 
1 / 10

2) the fact, that 64-bit IEEE754 (REBOL decimal!) is more accurate 
than 32-bit IEEE754 (REBOL pair coordinate)

Thus, the result is both justifiable, as well as expected.
Sunanda
26-Oct-2010
[5711]
Thanks, Ladislav.

There are several anomalies, which at least could be noted in the 
documentation under the pair! data type.


Another [anomaly]/[undocumented change from R2 behaviour] is when 
a pair overflows:

....R2 throws an error, or replacee the large number with 0 (itself 
an odd behaviour).

....R3 can generate +/-infinity. As far as I know this is the only 
way in R3 to get a -/-INF; and the value is not usably serialisable:
    xx: as-pair -1e44 1e44
    == -1.#INFx1.#INF
    type? first xx
    == decimal!
    load mold first xx
    ** Syntax error: invalid "integer" -- "-1.#INF"
Ladislav
26-Oct-2010
[5712x2]
Thanks, Ladislav.
There are several anomalies, which at least could 
be noted in the documentation under the pair! data type.

Another 
[anomaly]/[undocumented change from R2 behaviour] is when a pair 
overflows:


....or replacee the large number with 0" - which expression do you 
mean?
The infinity may be a problem, but, it looks like a low priority 
issue to me.
Sunanda
26-Oct-2010
[5714]
I mean sometimes one, sometimes the other:
R2:
>> as-pair 1 1e308
== 1x0
as-pair 1 1e309
** Math Error: Math or number overflow
Ladislav
26-Oct-2010
[5715x4]
Thanks, did not notice that
aha, but this behaviour does not have anything in common with pairs, 
in fact
The 1e309 value causes the overflow when loaded
Otherwise, the R2 pairs never overflow, instead they "wrap around"
Sunanda
26-Oct-2010
[5719x2]
Thanks for the analysis. I kinda know the reason, but the documentation 
should make the limits clear ro those who do not know (or have not 
thought through the implcations of) the internal representations.
INFs are a low priority.....But they are also an interesting REBOL 
phenomena...Unserialisable values that do not always equal other 
same-sized INFs :)

    xx: array/initial 100 as-pair 1e44  -1e44
    length? unique xx

    == 100   ;; 100 separate infinities ... Cantor would be proud!

    (first xx/1) = (first xx/1)
    == true
    (first xx/1) = (first xx/2)

    == true           ;; or perhaps its just UNIQUE having a bad day

    xx/1 = xx/2     ;; or perhaps not
    == false
Oldes
26-Oct-2010
[5721]
To have infinity values would be good, but the current behaviour 
is a bug of course. The positive/negative infinity must be loadable 
as a normal number, not just in pairs.
Sunanda
26-Oct-2010
[5722]
Thanks Oldes. I've curecoded the inconsistencies I've noticed:
   http://www.curecode.org/rebol3/ticket.rsp?id=1717
Ladislav
26-Oct-2010
[5723]
Sunanda, you wrote, that INF support was good, not mentioning why. 
Can you explain, why do you want to have it?
Sunanda
26-Oct-2010
[5724]
INFs (and NANs) are part of the standards REBOL is coded to. It's 
good to match as much of the standard as possible.