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

World: r3wp

[!REBOL3 Schemes] Implementors guide

Graham
12-Jan-2010
[1360x2]
I note rebol.com has frontpage extensions enabled ..
Carl should use it to save time
BrianH
12-Jan-2010
[1362]
I doubt that would save him time - all of rebol.com is generated 
from scripts, mostly WIP in the new site.
Graham
13-Jan-2010
[1363x2]
Brian .. I wuz kidding ....
but he needs a web master ... doing all of this by himself is not 
very efficient
BrianH
13-Jan-2010
[1365]
Whew, I was worried about you for a second - was about to call the 
psychiatrist...
Graham
13-Jan-2010
[1366]
And he asked for volunteers, got some and then ignored them ... so 
if you're still calling the psychiatrist ... you know where to send 
him.
BrianH
13-Jan-2010
[1367]
Right now the project is just migrating the data to the new format. 
That's a programming problem.
Graham
13-Jan-2010
[1368]
now my ftp scheme is doing what I need .. I can move onto my fax:// 
scheme which uses the ftp protocol but on port 4559
Maxim
13-Jan-2010
[1369]
btw, thank you Graham for spearheading this scheme initiative  :-)
Graham
13-Jan-2010
[1370x3]
DELE, MKD etc are all done now.
Someone had to step forward ...
and as I'm the oldest here ... lol
Maxim
13-Jan-2010
[1373]
hhehe
Graham
13-Jan-2010
[1374x8]
of course couldn't have got far without Andreas' and Steeve's help
Just finished installing virtualbox, and now going to install hyalfax 
... but no modem so not sure how I can test it
installed ubuntu server .. downloaded that using the ftp:// scheme 
:)
There's such a thing as a software modem .. IAXmodem ... but not 
sure if I need Asterisk as well :(
This is pretty cool ... I can talk the hylafax server running in 
virtualbox using the ftp scheme.
Do we need imap:// ??
It's a poorly specified protocol that is a lot of work to implement 
...
never used finger://, whois:// nntp:// ....
BrianH
13-Jan-2010
[1382]
I use nntp all the time. It's also called Usenet.
Graham
13-Jan-2010
[1383]
from REBOL ?
BrianH
13-Jan-2010
[1384]
Not as often lately, but if it were available in R3 I would use it.
Graham
13-Jan-2010
[1385]
I wonder what's required to write a torrent client ...
BrianH
13-Jan-2010
[1386x3]
MD5 checksums, a parser for the files (easy), and whatever they use 
for encryption.
And TCP and/or UDP.
And HTTP for tracker communication, and whatever DHT is if you want 
to support that.
Graham
14-Jan-2010
[1389x3]
http://wiki.theory.org/BitTorrentSpecification
looks like a holiday project vs a spare afternoon one!
Sometimes you want to write to the port, and then continue to write 
... so your awake handler returns false.

But sometimes for the same command, you want it to return on completion 
.. so your awake handler returns true instead.

So, .. .what is the best approach?  Pass a flag to the write?
Use a dialect for the write data block?
BrianH
14-Jan-2010
[1392]
Isn't the return value three-state, true false and none?
Graham
14-Jan-2010
[1393x4]
I read you can only exit from the awake handler by returning true
And just for reference http://www.imapwiki.org/FrontPage
Great progress ... was able to submit a fax using my new fax:// protocol.
The fax protocol is similar to ftp but uses port 4559, and uses additional 
commands
Andreas
14-Jan-2010
[1397x3]
basic IMAP4 is not much more difficult than POP3
bittorrent would be interesting indeed, as you can easily get _tons_ 
of network activity wh
which would be nice to exercise the R3 networking stack
Gregg
14-Jan-2010
[1400]
Graham, Andreas, Steeve, et al, this is great stuff you're doing. 
Thanks for your efforts.
Andreas
14-Jan-2010
[1401x3]
well, now onto the final pop3 rewrite
i've finally come up with a clean (imho) low-level interface:
mbox: open pop3://
until [empty? msg: read mbox]
close mbox
i.e. read on the pop3 port iterates thru all available messages, 
returning an empty series after the last message was read
Steeve
14-Jan-2010
[1404x2]
Andreas, normaly it's the behavior of COPY to iterate thru a port 
result
i mean it is like that in R2
Gregg
14-Jan-2010
[1406x2]
So 'msg is returned as a block?
I was thinking of that too Steeve. COPY versus READ versus TAKE.
Steeve
14-Jan-2010
[1408]
Nice idea Gregg, READ could return the whole block (an COPY  or TAKE 
just one line at time)
Gregg
14-Jan-2010
[1409]
In this case, READ seems OK, and COPY would work as well, but not 
delete the mail on the server.