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

World: r3wp

[!REBOL3-OLD1]

BrianH
1-Jun-2009
[14815]
DO of string not working is a worse buug than CATCH/quit messing 
up a TRY block.
Carl
1-Jun-2009
[14816x2]
Yes, but there's DO file! and there is DO string!  And one is good 
and healthy, the other nasty and perlish.
Anyway, will do.
BrianH
1-Jun-2009
[14818]
Yes, and both disable TRY because the real problem is CATCH/quit.
Carl
1-Jun-2009
[14819]
CATCH/quit is rather special.
BrianH
1-Jun-2009
[14820]
I was a little surprised that it cased the problem. I thought catch-or-try 
blocks were nested, their contexts stacked.
Carl
1-Jun-2009
[14821]
CATCH and TRY are actually quite different mechanisms. The problem 
is how best to combine them. They both have advantages.
BrianH
1-Jun-2009
[14822]
The TYPE? THROW or RETURN issue was interesting. I'm not sure how 
important it is to fix, but it was an interesting insight into how 
those two functions work in R3. Apparently they don't throw until 
their return values are evaluated?
shadwolf
1-Jun-2009
[14823x3]
OMG CAAAAAAAAARL  !!! the real CAAAAAAAAARL !!! OOOOOOOOOO MY  GOD 
 ^^
welcome back in rebol3  world  Carl nice to see you here  ^^
pekr nope  the os futur is rebol 3 :P
Ladislav
2-Jun-2009
[14826]
TomC: what is your favourite RANDOM for R3?
Janko
2-Jun-2009
[14827]
Each time I see someone mention Erlang model I want to post my last 
"actor-ish" rebol samples I made like 3 weeks ago and still haven't 
found time to post .. it's nothing special, but it can give a little 
feeling and future ideas how it would look in rebol
Maxim
2-Jun-2009
[14828]
does rebol 3 have a fast function which converts  [[1][2][3]]  into 
[ 1 2 3] ?
BrianH
2-Jun-2009
[14829x2]
No, you'll have to write your own flatten function.
We discussed adding one, but everyone wanted the function to do something 
different. No consensus.
Henrik
2-Jun-2009
[14831]
I think it should be simple. But then again, that's in the same territory 
as "parse string none". What should it do?
BrianH
2-Jun-2009
[14832]
What types do you want to flatten? Just blocks, or other block types?
Maxim
2-Jun-2009
[14833x3]
just blocks... cause its a recurring "problem" thru the years.
well, any block, list, hash but not things like objects.
obviously, I know how to write one... but its a pretty recurring 
need for inclusion in the /plus pack... no?
BrianH
2-Jun-2009
[14836]
Yeah, it's a good candidate for /Plus. The problem is that whenever 
the need occurs, what it needs to do is slightly different. Flexible 
semantics like that lead to a slow function - which is a bad thing 
for a mezzanine or library func.
Pekr
2-Jun-2009
[14837]
June - we need updated R3 Plan :-)
BrianH
2-Jun-2009
[14838]
Already mentioned it to Carl here yesterday.
sqlab
2-Jun-2009
[14839]
load form  [[1][2][3]]
== [1 2 3
]
Carl
2-Jun-2009
[14840x2]
That is so true: "everyone wanted the function to do something [a 
little] different".


So, the question always becomes: what is the most common pattern, 
and how common is it really?  Difficult to know, especially when 
you start thinking about adding reduce or compose into it.
R3 Chat #4395:
  

Re #1890: Question on DO/next: currently, it returns a block as a 
result. That means it must allocate a new block each time. An alternative 
would be to provide a variable name as an argument, and it would 
not need to allocate a new block each time.

   result: do/next block1 'block2

It would also be possible to:

   result: do/next block 'block

Something to think about.
Ladislav
2-Jun-2009
[14842]
OK with me
Carl
2-Jun-2009
[14843]
(I don't know how many people use DO/next - I don't use it myself.)
Ladislav
2-Jun-2009
[14844x2]
can you check bug#879?
Tomc needs it for a homework assignment, unknown due date.
Carl
2-Jun-2009
[14846x2]
Ok, where best to post the answer?
I will post it in the bug report.
Ladislav
2-Jun-2009
[14848x4]
Do/next I defined my %build.r dialect with it
...and later %spider.r dialect, %xyplot.r dialect, using %build.r
I am using %build.r instead of Compose as I advertised many times
BTW, BrianH is a co-author of it
Carl
2-Jun-2009
[14852]
Ladislav: random ticket updated with code
BrianH
2-Jun-2009
[14853]
Carl, there are at least a half-dozen mezzanine/library function 
requests that are waiting for DO/next. Your continuation word idea 
is good though :)
Carl
2-Jun-2009
[14854x2]
For compat, it could be different refinement name.
The difference in overhead is large, but not sure how much it matters 
to anyone.
Ladislav
2-Jun-2009
[14856x2]
no prob with me even with the same name
overhead: yes, I found a test showing really huge diff when not generating 
blocks every now and then
BrianH
2-Jun-2009
[14858x2]
It would matter to me. If DO/next were more efficient, I would not 
consider use of it to be a sign of a bad function :)
I'm not that worried about compatibility here - see bug#666 :)

It would be simple to search for, like copy/deep which is also improved 
in R3.
Ladislav
2-Jun-2009
[14860x2]
thanks, Carl. BTW, I am using www.rebol.org as a truly random source, 
since it is so easy in REBOL
errata: www.random.org
Pekr
2-Jun-2009
[14862]
I just read bug #666. Cool number and cool ticket at once :-)
BrianH
2-Jun-2009
[14863]
When I saw that number coming up, I had to do something appropriate 
there :)
Carl
2-Jun-2009
[14864]
I just lost my connection to rebol.net -- quite odd -- as if a router 
along the way just stopped working.