AltME: REBOL3

Messages

Gregg
R3 changed to support non-integer values for loops, so the result is usable, but I don't remember why that change was made.
Pekr
IIRC, Ladislav implemented it for Carl, so if he is around, most probably he's the one who knows the answer?
Gregg
I think you're right Petr. He and I did the mezz version, so that makes sense.

Bo
How does one write data into a port in Rebol3? 'insert, 'append, etc. do not work.
Bo
I found this example, but it makes r3-view from Atronix crash:
client: open tcp://localhost:8080
client/awake: func [event /local port] [
    port: event/port
    switch event/type [
        lookup  [open port]
        connect [write port to-binary request]
        read [
           result: to-string port/data
           close port
           return true
        ]
        wrote [read event/port]
    ]
    false
]
wait [client 30] ;the number is a timeout in seconds
close client
(at least when using "client: open clipboard://" instead of a TCP port.

Endo
This works for me:
write clipboard:// "test"
Version:   3.0.91.3.3
Rebolek
Bo, take a look at https://github.com/rebolek/prot-redis/blob/master/prot-redis.reb#L335 . I don't know what version of R3 I am using, because there's no official version, I have something different installed on different machines, but I use it everyday and it works. With limitations, thanks to many R3 bugs.
Rest of the text, obfuscated by long time AltME bug: "I don't know what version of R3 I am using, because there's no official version, I have something different installed on different machines, but I use it everyday and it works. With limitations, thanks to many R3 bugs."
Bo
To get around that bug, I just copy the entire message and paste it in the message field of AltME. ;-)
Rebolek
Thanks, I just haven't posted a link on AltME for some time, so I forgot about it's limitations ;)
Anyway, there's write and read support and it also properly handles writes longer than 32000 bytes.
Gregg
You can patch R2 to handle longer writes as well, thanks to Max. I doubt this affects too much at this point though.
Maxim
yes the simple R2 fix allows to POST any size.

Ashley
Anyone else notice this strange behaviour (Atronix R3 on Windows):
>> b: read %test.csv ; 50MB ASCII file
>> b: none
>> recycle
>> stats ; ~ 2MB
>> s: to string! read %test.csv
>> s: none
>> recycle
>> stats ; ~ 130MB
Looks like a memory leak with converting from binary to string. Same thing happens with read/string as well.
Oddly enough, the following is OK:
>> b: parse read %test.csv rule ; parse entire file into strings
>> b: none
>> recycle
>> stats ; ~ 2MB

Bo
Is there a way to change this:
>> to-money 3
== $3
to this:
>> to-money 3
== $3.00
The bottom is the way Rebol2 behaved, and the top is the way that Rebol3 seems to behave.

Chris
One possibility:
>> round/to to money! 3 $.01
== $3.00

Last message posted 164 weeks ago.