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

World: r3wp

[!REBOL3-OLD1]

Henrik
14-Jan-2010
[20845]
Same question as I asked in the Core group. It would be nicer with 
a REBOL function, so we could build a REBOL based diagnostic tool 
around it. Very handy to build into programs, so they can examine 
damaged datafiles themselves.
Graham
14-Jan-2010
[20846x2]
If you've got a 1mb function .. you're in bigger trouble that this 
tool can help you with ....
clean.exe is just a text area that has clean-script running on  a 
button.
Henrik
14-Jan-2010
[20848x2]
Usually this is not functions, but data files. Yesterday, we encountered 
a datafile with an illegal char in it. Took an hour to find the problem.
and it was a data file that had been MOLD/ALL/FLAT from REBOL and 
then attempted to LOAD/ALL again, which failed.
BrianH
14-Jan-2010
[20850]
Be sure to report the problem, and which char in which type caused 
the problem. In theory, MOLD/all generating an illegal char or non-loadable 
syntax at any point is a bug, and should be reported.
PeterWood
14-Jan-2010
[20851]
Robert & Graham: JEdit does a good job of matching [, { & ( and even 
auotmatically indents and de-indents them for you.
Robert
14-Jan-2010
[20852]
I have found out that JEditX (a cocoa editor not related to Jedit) 
has a very good brace matcher as well. But anyway, an in build one 
would be nice.
Sunanda
14-Jan-2010
[20853]
The _Official Guide_ (huge paperback) had a bracket checker as a 
worked example of using REBOL  code as data.

If anyone has easy access to a copy, perhaps they could dig it out.
Robert
14-Jan-2010
[20854]
I have Rebol 1.0 manual. Do you mean this?
Sunanda
14-Jan-2010
[20855]
No, the official guide as listed on this page (the link by the book 
itself no loner works):
   http://www.rebol.com/books.htmlhttp://www.rebol.com/books.html
Gregg
14-Jan-2010
[20856]
I have it here, and found what I think Sunanda is referring to. If 
someone is really interested I'll post it.
Maxim
14-Jan-2010
[20857]
uedit has no brace matching issues.  it works very well with REBOL 
and its fast enough to match braces  on very large parts of code 
in real time.
Graham
14-Jan-2010
[20858x2]
notepad++ does bracket matching ...
So Carl, have you come back with some proposals on the network base 
context ?
Carl
14-Jan-2010
[20860x2]
Sunanda: with the new site, please tell us what to add.  We are very 
interested, and it is easy now, to keep things updated.
Graham: make it a module.
Graham
14-Jan-2010
[20862x2]
Carl, have you seen these new plug computers?  Running Marvel ARM 
processors ...
They're going to make great REBOL appliances !
Carl
14-Jan-2010
[20864]
Robert mentioned it.  Let's do it!
Graham
14-Jan-2010
[20865]
So, R2 first ... 2.7.7 to ARM, and then R3
Carl
14-Jan-2010
[20866]
Probably not.  R3 first... and if that works, then R2.  R3 is built 
for portability.  R2 can be problematic.
Graham
14-Jan-2010
[20867x3]
whatever works ..
though I do want to run Cheyenne on them !
Another entry for rebolweek ... RT is porting R3 to ARM
Cyphre
15-Jan-2010
[20870]
I have one R3 question...is this bug or was it changed intentionaly 
in R3 (don't remember right now):

>> a: [[1 + 2]]
== [[1 + 2]]

this is OK:
>> do a/1
== 3

but this doesn't evaluate in R3:
>> do to-path [a 1]
== a/1

>>
Steeve
15-Jan-2010
[20871x3]
I would say: intentionaly
>> do get to-path [a 1]
to-path return a quoted path
seems...
Cyphre
15-Jan-2010
[20874]
that is possible...I'd like to know the reason why it was changed 
as it is not symetric word! now...

in R2:
>> a: [[1 + 2]]
== [[1 + 2]]
>> b: [a a/1]
== [a a/1]
>> do first b
== [1 + 2]
>> do second b
== [1 + 2]
>> b: ['a 'a/1]
== ['a 'a/1]
>> do first b
== 'a
>> do second b
== 'a/1
>>


but in R3:

>> a: [[1 + 2]]
== [[1 + 2]]
>> b: [a a/1]
== [a a/1]
>> do first b
== [[1 + 2]]
>> do second b
== a/1
>> b: ['a 'a/1]
== ['a 'a/1]
>> do first b
== a
>> do second b
== 'a/1
>>


I think the R2 behaviour is more cleaner but maybe I'm missing something?
Steeve
15-Jan-2010
[20875x4]
Agree now, disturbing disturbing...
a: [[1 + 2]
b: [a/1]
>> do do do do do do b/1
== a/1

really disturbing...
Can't figure if it's good or bad.
i pass...
Rebolek
15-Jan-2010
[20879]
I think it's bad.
Steeve
15-Jan-2010
[20880]
But i'm afraid there are some drawbacks to reverse it to the R2 behavior.
Geomol
15-Jan-2010
[20881]
Notice there is bug involved:

>> do ['a]
== a

>> do do ['a]
>> a
** Script error: a has no value

One bug is, that
do do ['a]
doesn't raise an error, when a has no value.
Cyphre
15-Jan-2010
[20882]
Yes, there is definitely something wrong in this area with R3...so 
now it doesn't look like a intentional change.
Geomol
15-Jan-2010
[20883]
Simplest example, I think:

>> do 'a
>>
Henrik
15-Jan-2010
[20884]
wow, looks quite broken
Graham
16-Jan-2010
[20885x4]
How do you access the arguments when passed in a command line?

r3apha myscript.r argument-list ?
probe system/options/args
probe system/script/args

says system object is protected
eh? no one knows?
no help on decode-cgi either ... 
is anyone using R3 for CGI ?
Gregg
16-Jan-2010
[20889x2]
I thought it was supposed to be system/script/args.
Hmmm, same protected issue here.
Graham
16-Jan-2010
[20891x4]
checking curecode ...
known issue http://www.curecode.org/rebol3/ticket.rsp?id=628&cursor=7
or not ...
can someone with a curecode account log this as an issue pls?