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
[893]
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.
Gregg
3-Jan-2010
[936]
Joanna, there aren't a lot of docs on serial ports, but the basics 
are easy enough.


; port speed data-bits parity stop-bit (order is not significant 
IIRC)
port-spec: serial://port2/38400/8/none/1

p: open/no-wait port-spec

p/rts-cts: off  ; THIS IS REQUIRED TO TURN OFF HARDWARE HANDSHAKING!
update p

Then you can just INSERT and COPY on the port.
amacleod
3-Jan-2010
[937]
Graham, what are some of the "tweaks" you made to Http that BrianH 
has mentioned for inclusion in the next R2 release?
Steeve
3-Jan-2010
[938]
http://rebol.wik.is/Protocols/Http
Graham
3-Jan-2010
[939]
You can confirm that it does what it is supposed to do by looking 
at the http traces.
BrianH
3-Jan-2010
[940x2]
Doc in the Core group: "this could be a really great addition to 
R3 (or even R2)"


Policy: Additions of new globally defined functions to new R2 releases 
almost always must get put in R3 first, go through consensus, testing 
and the REBOL optimizer, then be backported to R2 (usually through 
R2/Forward). Enhancements of existing functions in comparable areas 
of the code (not ports, View or library) also go through the R3 gauntlet 
first. If you want R2 /Core enhanced, get to work on R3.


Change to the semantic model of R2 isn't going to happen: No new 
port model, no new View, no extensions or host code - use R3 if you 
need those. New (real) R2 datatypes are unlikely, though faked backports 
of R3 datatypes are OK and have already made it into 2.7.7, with 
more to come. Natives that can be fixed without changing the semantic 
model or adding new datatypes are fair game though.


Bug fixes will be done though as long as code (that we can't fix) 
doesn't depend on the bug (no fix to PICK, POKE and AT's off-by-one 
error, for instance), as will backwards-compatible enhancements to 
R2-specific areas, like the port model, View/VID and library support. 
Backwards-compatible means we also test it against existing code, 
so if you want to test it against your favorite code, please do so 
and tell us what you find.


These fixes are coming, at least in theory - someone has to do the 
work. If you have a favorite bug you need fixed or enhancement you 
need, do the work yourself or pay someone to do the work (REBOL Consulting, 
perhaps). Changes go in as they are made, and they are made by people 
with priorities. If you have priorities too, act on them :)
If anything we do breaks your code, *please tell us*. We really don't 
want that to happen. Backwards compatibility is a top priority.
Graham
3-Jan-2010
[942]
This is my attempt to link to the wiki docs

http://rebol.wik.is/Man