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

World: r3wp

[!REBOL3-OLD1]

Janko
21-Dec-2009
[20352]
it's usefull when you are generating code from data
Ladislav
21-Dec-2009
[20353]
well, the example

    reduce [to-set-word 'a 2]

is not R3-ish, in R3 it could have been:

    reduce [quote a: 2]
Henrik
21-Dec-2009
[20354]
oh, didn't see that one before.
Ladislav
21-Dec-2009
[20355x2]
yes, Quote is a new function. A mezzanine, actually
See the source, Henrik
Henrik
21-Dec-2009
[20357]
doh :-)
Pavel
21-Dec-2009
[20358]
Why to use reduce when you must defend your words by aditional armour 
:o
Ladislav
21-Dec-2009
[20359x3]
as follows: reduce [quote a: 1 + 1]

, i.e. in situations, where you actually do want to compute some 
parts of the block
nevertheless, I do not think, that Reduce (or Compose) is ideal, 
I proposed an alternative
in Reduce you have to "mark" what should be kept, while I prefer 
to mark what should be computed
Pavel
21-Dec-2009
[20362]
Meaning extensions this should be used for some lexical operations 
or code trimming, I've think abour extensions in pure functional 
way before
Ladislav
21-Dec-2009
[20363]
(which is the case of Compose, except for the fact, that it does 
not handle parens good enough for me)
Steeve
21-Dec-2009
[20364]
It is true that there are always new features that it takes a little 
time to understand the usefulness.
I'm caught regularly.

Even if I had noticed the existence of QUOTE, I saw no interest until 
the Ladislav's example.
Ladislav
21-Dec-2009
[20365]
glad to advertise this useful new feature
Henrik
21-Dec-2009
[20366]
I suppose 'build is kind of an opposite to 'reduce.
Ladislav
21-Dec-2009
[20367]
yes, or, stated differently, it is a kind of improved Compose
Steeve
21-Dec-2009
[20368]
Perhaps a shortcul should be defined. Because I feel that it will 
be often used as an alternative to COMPOSE.
Is this name QUOTE not a bit too long ?
Ladislav
21-Dec-2009
[20369]
(i.e. my idea, how Compose should have worked)
Henrik
21-Dec-2009
[20370]
it has a few gotchas though. can they be removed?
Steeve
21-Dec-2009
[20371]
*shortcut
Henrik
21-Dec-2009
[20372]
it = 'build
Ladislav
21-Dec-2009
[20373x2]
please, check http://www.rebol.net/wiki/Replacementand add your 
notes/preferences
(this is where the Quote function appeared, btw)
Steeve
21-Dec-2009
[20375x2]
I didn't knew this page. Shame on me
some proposals for a short  alias of  QUOTE.
ice
lay
sit
Ladislav
21-Dec-2009
[20377]
the biggest advantage of the word 'quote is, that it is somewhat 
"standard"/"understandable"/"self-explanatory"
Steeve
21-Dec-2009
[20378]
i just think about an alias to shorten our code, the standardd word 
QUOTE would stay.
Ladislav
21-Dec-2009
[20379x2]
so, for example the expressions:

    'a

, and

    quote a

have the same effect
, but, certainly, a simple shortcut may be of use
Gregg
21-Dec-2009
[20381]
I have an old quote func as well. Two actually, and they do very 
different things. One prevents evaluation, and one encloses the value 
in double quote chars. I think the latter is the better use of the 
name, and we should come up with a better name for the func that 
prevents evaluation.
Izkata
21-Dec-2009
[20382]
keep
 ?
Gregg
21-Dec-2009
[20383]
KEEP is used inside COLLECT.  Something along the lines of LIT or 
LITERAL clearly says what it does.
Paul
21-Dec-2009
[20384]
One of my problems with R3 is that I get this feeling that an R3 
beta is immenant but feel it is still long way off and have concerns 
about the negative impact that will bring.  There is a great deal 
of expectation for the beta and I feel it is going to be viewed on 
Monday morning as a disappointment when it comes.  I'm hoping that 
the REBOL team makes sure that it hasen't left little things undone 
such as being able to change a date on a directory, etc...
Graham
21-Dec-2009
[20385x2]
That's part of the host code is it ot?
n
Henrik
22-Dec-2009
[20387]
Pavel, about bug #1399, we need to dig deeper to get a more accurate 
report for Carl, so he can fix it quickly. Which file transfer example 
are you talking about here?
Pavel
22-Dec-2009
[20388]
http://www.rebol.net/wiki/Port_Examples-> 4.4 Transfer a large file
Henrik
22-Dec-2009
[20389]
I do get interruptions during transfer here, but they are not reliable 
in size.
Pavel
22-Dec-2009
[20390x2]
In my machine this happen at the same point each time single client, 
but originally I've found this when I run 2 simultaneous clients 
with different large files (my was 50 and 100 MB)
Anyway I'm glad to you acknowledged the bug. Together with bug #1367 
and unsure garbage collection this prevents to build reliable (even 
simple) TCP servers.
Henrik
22-Dec-2009
[20392x2]
I don't think this is the same bug. I get different interruptions 
and no stack overflow.
Anyway, there's a lot to dig through here.
Steeve
22-Dec-2009
[20394]
#1367, why this one ?
Henrik
22-Dec-2009
[20395]
(sorry, forgot to mention that I didn't get a stack overflow)
Pavel
22-Dec-2009
[20396]
Sorry Typo #1369
Steeve
22-Dec-2009
[20397]
Henrik, i guess  your case  is covered by #1369 aswell
Henrik
22-Dec-2009
[20398]
I only use a single client/server.
Pavel
22-Dec-2009
[20399]
The difference is that #1399 breaks even if single client is running, 
I've observed that filetransfer goes parallel even for some time 
(but not finish) when two clients was run. So the difference was 
mutual block happen after some time. (Henrik you are quicker in typing")
Henrik
22-Dec-2009
[20400]
Pavel, what happens for me is that:

1. I start the server and it waits like it should

2. Then I start the client and transfer begins. At some point around 
10-20 MB in, the server just stops and the client returns to console. 
After a few seconds the server also returns to the console.

3. If I then start the server again, the read continues for another 
80000 bytes, like this:

>> do %/c/serve.r
Script: "Untitled" Version: none Date: none
subport read
len: 32000 total: 19192000 of 406258740...read
subport read
len: 32000 total: 19224000 of 406258740...read
subport read
len: 9000 total: 19233000 of 406258740...read
subport read
len: 7000 total: 19240000 of 406258740...read
subport close


And then the port closes and the server quits again, unless I start 
the client.
Pavel
22-Dec-2009
[20401]
Windows platform?