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

World: r3wp

[!REBOL3-OLD1]

Graham
12-Jan-2010
[20770x2]
I've added a REBOL forum to my new vbulletin forum .. since reboltalk 
seems to be done 
http://synapse-ehr.com/forums/forumdisplay.php?3-Rebol
done => down.
Maxim
13-Jan-2010
[20772]
the disarmed state of error objects in R3 is REALLY cool... simplifies 
code and switches them to usefull data, which is an alien concept 
to most other languages.

success?: all [
	done: try [parse data rules]
	not error? done
	not string? done
]


here strings are the return type for parse block created (syntax?) 
errors in the source data
BrianH
13-Jan-2010
[20773x2]
Use :done so the error doesn't trip.
Not always needed, but good for bulletproof code :)
Maxim
13-Jan-2010
[20775]
in R3 it doesn't trip anymore which is what my post is about, the 
only place where :get-words have been usefull for me are for passing 
functions as values or to handle unset values.
Henrik
13-Jan-2010
[20776]
by tripping, I assume it means, if the parse somehow returns a function, 
that when run would cause an error, hence the get-word!.
BrianH
13-Jan-2010
[20777]
Yeah, I picked up on that later Maxim :)
Henrik
13-Jan-2010
[20778]
also serves as a security measure
Carl
13-Jan-2010
[20779]
How are things going on adding a few schemes?  


I mentioned that I would review the docs and add more examples; however, 
if someone has implemented a simple scheme example, like finger or 
such, then let's use that as the starting point, clean it up (if 
necessary), and put it on the wiki for others to learn from.
Graham
13-Jan-2010
[20780x3]
As mentioned in chat, most of the common schemes are now "done"
Most need sync wrappers around them, and some actors to provide the 
previous way of doing things
http://rebol.wik.is/Rebol3/Schemes
Carl
13-Jan-2010
[20783x2]
Ok, that's great.  So, by "sync wrappers" you mean some kind of internal 
utility to deal with the sync/async differences when called from 
the user level?
As related to:

http://www.rebol.net/wiki/Ports:_Synchronous_and_Asynchronous_Operations
Pekr
13-Jan-2010
[20785x2]
there is one very usefull doc describing device communication (don't 
remember the name now), but stil some things are going to be missing 
...
current implementation is not what I thought is going to happen - 
the rehaul of aproach we are taking for schemes. Some ppl are also 
confused by read/write function names vs read, write event names, 
and IIRC Graham also noticed few other issues ...
Graham
13-Jan-2010
[20787]
eg. write ftp://ftp.rebol.com/uploads%matrix.mov
Pekr
13-Jan-2010
[20788]
UDP implementation? (Needed for dns:// scheme to work?)
Graham
13-Jan-2010
[20789]
Still need a place for set-net, network timeouts, email object .... 
commonly used parse rules and bitsets, network error handlers
Carl
13-Jan-2010
[20790x2]
Pekr, there is no "overhaul" of the approach.  I spent several months 
on the new design, and it's much better than R2.  There may be a 
few small tweaks to make and a few issues to consider, but other 
than that, it's quite good.
The first thing people need to know is that THIS IS NOT R2!  The 
first mistake is to approach ports the same as R2. That will not 
work here.
Pekr
13-Jan-2010
[20792]
not overhaul of ports, but schemes. Ppl were thinking about FSM etc.
Carl
13-Jan-2010
[20793x4]
Graham is corrrect.  We need to finalize a base context for networking.
I would propose a Networking Module that can hold misc functions 
and variables, debugging modes, etc.
In R3, you can create a module inline with one line of code.  That's 
where to start.
Once we understand the exports, we can then formally define the module, 
title, export list, etc.
BrianH
13-Jan-2010
[20797]
The model is good, but most of the wrapper and helper code needs 
work, or revamping.
Carl
13-Jan-2010
[20798]
Also, for testing purposes... if you need to add a system/standard 
object, just unprotect and append to the object. I think the kernel 
will accept that. (But, do not reMAKE the standard object!)
Pekr
13-Jan-2010
[20799]
btw - were exports "finalized? Remember you posted blog about it. 
Ditto read/write topic (Prunning down the read/write blog ... and 
following talking about read/string)
Carl
13-Jan-2010
[20800x2]
Man this system is slow.... help!  Let's move this puppy!... I mean 
world.
I really think we need an EXPORT word that make exports easier to 
manage. Simple I think.
Pekr
13-Jan-2010
[20802x2]
You were supposed to do the rewamp, no? :-) Now as Graham produces 
schemes, we will be lazy to redo it :-)
I thought it is slow because I run it from USB flash ... I am in 
Hungary on business trip for 3 days .... :-)
BrianH
13-Jan-2010
[20804]
Carl, the design od that was finalized and the work will be done 
this week.
Carl
13-Jan-2010
[20805x4]
Pekr, do you mean rewamp? Are you sure you're not visiting Transylvania?
(Romania)
B: sounds good.
Pekr, seems too slow for USB flash. I think it's on floppy or R/W 
CDROM.
Pekr
13-Jan-2010
[20809]
What do you know about those countries btw? ;-) You were supposed 
to - was to BrianH ... I have some 10-15 sec lag here ...
Carl
13-Jan-2010
[20810]
For those countries, maybe next DevCon?
Pekr
13-Jan-2010
[20811]
both altme and IOS are not designed for USB. Strange, as altme does 
not have much files to read from (in comparison to IOS chat, where 
one msg = 1 file), but slow anyway  ...
BrianH
13-Jan-2010
[20812]
Pekr, I was going to work on the network scheme revamp after that. 
I have to put things I already know how to do first, and there are 
a few LOAD and module changes that have accumulated that I know how 
to do already.
Carl
13-Jan-2010
[20813]
Because they write state variable files constantly for the apps.
Pekr
13-Jan-2010
[20814]
eh, I am out from net in something like 30 minutes. The four star 
hotel charges 15 EUR for 100 minutes of wifi. That is stupid :-) 
When we do wifi, we suggest hotels to provide such service for free.
BrianH
13-Jan-2010
[20815]
I have AltME running on an SD card, so it's even slower, but the 
big problem is the sending lockups and network dropouts. Chat works 
so much better - AltME 3 can't come quickly enough for me.
Graham
13-Jan-2010
[20816]
off topic guys
BrianH
13-Jan-2010
[20817]
Right, thanks.
Graham
13-Jan-2010
[20818x2]
My issue with the r2 schemes is that too much was abstracted so that 
you could not easily do stuff without rewriting the scheme
having simple port abstractions helps the early user but is very 
limiting to experienced users