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

World: r3wp

[!REBOL2 Releases] Discuss 2.x releases

BrianH
2-Jan-2010
[886]
OK, now that we have 2.7.7 released (even though there is more work 
to do, i.e. platforms and the SDK), it is time to look ahead to 2.7.8 
- which is scheduled for release in one month on February 1. The 
primary goal of this release is to migrate to REBOL's new development 
infrastructure. This means:

- Migrating the RAMBO database to a new CureCode project and retiring 
RAMBO.

- Using Carl's generation code for the manual to regenerate the R2 
manual, so we can start to get to work updating it.

- Porting the chat client to R2 using the new functions and building 
a CHAT function into R2 similar to the R3 version.


The R2 chat client might be limited to the ASCII character set, though 
support for the Latin-1 character set might be possible. Still text 
mode for now, though if anyone wants to write a GUI client (Henrik?) 
we can put it on the official RT reb site accessible from the View 
desktop. The server is accessed through a simple RPC protocol and 
is designed to be easily scriptable.


It turns out that Carl already rewrote the installer for 2.7.something, 
but it was turned off because of a couple minor bugs that we were 
able to fix in 2.7.7. With any luck, only minor fixes to the registry 
usage will be needed and we'll be good to go.


As for the rest, it's up to you. Graham seems to have a good tweak 
to the http protocol, and others may want to contribute their fixes.
Graham
2-Jan-2010
[887]
What's the best way of searching the wiki?
BrianH
2-Jan-2010
[888]
Which one, the manual or DocBase? DocBase: http://www.rebol.net/wiki/Main_Page
- the manual: http://www.rebol.com/r3/docs/
Graham
2-Jan-2010
[889]
looking at the wrong one .. .I was looking at rebol.net
BrianH
2-Jan-2010
[890x4]
Right. The manual is the official docs (which need some work still), 
and the rebol.net wiki is for community stuff.
If you want to contribute to R2 development, get on R3 chat. The 
client is R3-only for now, but the server and message store will 
be the same when accessed from any other R3 or R2 clients, or web 
clients if we really want them.
For simplicity people refer to it as chat, but the server and message 
store is really DevBase 3. CHAT is just the name of the function 
built into R3 (and later R2) that calls a DevBase client script from 
some web server.
I put a full list of my changed and added features in the comments 
here: http://www.rebol.com/cgi-bin/blog.r?view=0447#comments

Once someone tells me where to put it I will put that information 
on the web.
Graham
2-Jan-2010
[894x2]
You could create a hyperlink for each of your new functions to the 
manual pages :)
Only take you a couple of mins to write the code to do that!
BrianH
2-Jan-2010
[896]
The next version should have support for the links to the online 
docs right from the R2 command line, just like R3.
AdrianS
2-Jan-2010
[897]
will the word browser be updated with these for the next version?
Graham
2-Jan-2010
[898x2]
>> cnt
== 2
>> cnt
== 2
>> val: -- cnt
== 2
>> val
== 2
>> cnt
== 1
what's the point of returning the prior value instead of the new 
value?
joannak
2-Jan-2010
[900]
Hmm..  Kinda creepy.. but then there is word   first+ and not first++ 
which would be logical..
BrianH
2-Jan-2010
[901]
FIRST+ was made first, a few years ago. ++ and -- were added months 
later. The prior vale is returned rather than the new value because 
it is the most useful thing to return. We're aware of the difference 
from C, but since postfix operations are impossible in REBOL we rather 
quickly remembered that C compatibility makes no difference to us 
whatsoever :)
joannak
2-Jan-2010
[902]
Well. those aren't as creepy as those math words in  Spin.  That 
one has gone really creative.
BrianH
2-Jan-2010
[903]
Spin?
joannak
2-Jan-2010
[904x2]
It's the programming language specially made for Parallax Propeller.. 
  It's speciality is that the bytecode-runtime fits under 2kbyte..
Runtime? nah. wrong word.. I shoud say bytecode.-running engine..
BrianH
2-Jan-2010
[906]
Those are always fun :)
joannak
2-Jan-2010
[907x2]
Just  a question of Rebol docs.. (at this point Rebol2 preferred), 
If I want to find all necessary (and possible) stuff of Serial port, 
where shoud I look? I woudl like to set various speeds on Serial 
port, also control DTR line manually..  That kind of stuff is needed 
on Propeller Downloader since it uses DTR to toggle microcontrollers 
reset line. And if possible in a way it is portable (no DLLs ?). 


(page 4 ) http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/PropellerDatasheet-v1.2.pdf
I know that the Source code is the most obvious place to look, but... 
  Luckily this ain't anything I'd mandatorly need to do since there 
are some (allmost) ok tools for the chip, but it would be good to 
know where to look.
Graham
2-Jan-2010
[909x3]
google ... http://www.rebol.com/docs/changes.html#section-6.3
There are two additional port fields that can't be set with a URL, 
but can be set in a port specification block or by manually changing 
them. The RTS-CTS field specifies whether hardware handshaking should 
be used on the port. The default is ON. To change the default, do:

ser-port/rts-cts: off
update ser-port
dunno if that means you can toggle DTR or not.
joannak
2-Jan-2010
[912]
yep.. I noticed that page too.. And based on that one, it looks like 
that level of control is not at Rebol.  


I did that port: open  thingy and then  ? port ... it gives a huge 
list of  parameters, but most of them seem to be more Ethernet/tcp 
related than Serial port..
Graham
2-Jan-2010
[913]
ask Brian if it can be added to Rebol 2.7.8 :)
BrianH
2-Jan-2010
[914]
Post the request on CureCode once we have a R2 project for it.
Graham
2-Jan-2010
[915]
definitive answer is here http://www.mail-archive.com/[rebol-list-:-rebol-:-com]/msg11178.html
joannak
2-Jan-2010
[916]
Well.. If I had money on it, (or even dream of money) I would.. But 
that's not the case so it can be,,     Holder Kruse? sounds awfully 
familiar..
Graham
2-Jan-2010
[917]
He used to work for Rebol Tech, and did the SSL implementation ... 
and prior to that was an Amiga networking guy
joannak
2-Jan-2010
[918]
Ah.. Now I remember.. Some (many?) years ago people were trying to 
reach him so that they could register his net stack and get keyocdes.. 
(or ask him to release it free if he's not willing to sell it anymore).. 
AFIK neither happened.. Luckily there are some new (PPC) native stacks 
available.
Graham
2-Jan-2010
[919]
Yep , that was him.
joannak
2-Jan-2010
[920]
Btw.. he was wrong about using Xon/Xoff instead or HW handshake.. 
 those are used even today  and If I had to choose one Id' definitley 
go hardware. keeps the serial line pure 8.bit, and workd more reliable 
on multitasking PC:s...
Graham
2-Jan-2010
[921]
Looks like we do have TLS after all ... :)
joannak
2-Jan-2010
[922]
Did you test the code?
Graham
2-Jan-2010
[923x2]
>> rebol/version
== 2.7.7.3.1
>> smtp: open/lines tls://smtp.gmail.com:587
>> set-modes smtp [ secure: true ]
** Script Error: Feature not available in this REBOL
** Near: set-modes smtp [secure: true]

Hmm... not working.
I'll post a comment to his blog ...
joannak
2-Jan-2010
[925]
Hmm.. Where those SSL and TSL should be?  When I look:      ? system/schemes 
   it does not show those at all..  there is HTTPS though?
Graham
2-Jan-2010
[926x2]
this works though 

>> smtp: open/lines ssl://smtp.gmail.com:465
>> set-modes smtp [ secure: true ]
>> close smtp
>> pick smtp 1
== "220 mx.google.com ESMTP 39sm6677160yxd.27"
BrianH
2-Jan-2010
[928]
Are you using /Core or /View?
Graham
2-Jan-2010
[929x2]
rebview
Same failure under R/command
BrianH
2-Jan-2010
[931]
Well, CureCode it when you get the chance, or if you are impatient 
RAMBO it and it will get migrated to CureCode later.
Graham
2-Jan-2010
[932]
http://rebol.wik.is/Protocols


I made the two - three line changes to prot-smtp.r and prot-send.r 
and uploaded them here.

And using 'ssend was able to send email thru gmail using ssl .... 
for those that asked.
Graham
3-Jan-2010
[933x2]
Probably better to use a refinement ... like send/secure .. or something.
But that will get people going who want to use gmail to send their 
email ...
BrianH
3-Jan-2010
[935]
Thanks for the link, we'll look into it.