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

World: r3wp

[Core] Discuss core issues

Graham
8-Sep-2009
[14687]
doesn't work well when your gui code is about 10k long
BrianH
8-Sep-2009
[14688]
I use bracket matching in Notepad++, and a little patience. Still 
slow, but not that slow.
Anton
8-Sep-2009
[14689]
Hmm. I find it hard to visualize how it could take so long.
Graham
8-Sep-2009
[14690x2]
shall I send you a picture of me tearing my hair out??
help the visualization process a little
Anton
8-Sep-2009
[14692x2]
That would be definitive.
:)
Henrik
8-Sep-2009
[14694]
this is where dividing code in smaller bits helps as well as an easy 
to debug startup procedure :-)
BrianH
8-Sep-2009
[14695]
%synapse.r is large by REBZOL standards.
Graham
8-Sep-2009
[14696]
I am using notepad++ at present to do the binary chop
BrianH
8-Sep-2009
[14697]
(sorry, I'm having a typo day)
Graham
8-Sep-2009
[14698x3]
Actually Henrik, it is composed of 1000s of nodes of small amounts 
of code .. which is reassembled to the final source.  But I don't 
have a way of syntax checking each node.
finally found it!
One of the reasons I don't like code being mixed with GUI display 
elements.
Anton
8-Sep-2009
[14701]
Is your code in strings? Because otherwise you can just use LOAD 
to syntax check your program..
Graham
8-Sep-2009
[14702x2]
I get a stack overflow when I run the source from the interpreter
so I can't use that method.
Anton
8-Sep-2009
[14704]
You mean, from the rebol console, you

	>> do %synapse.r


and you always get a stack overflow (not just when you have a bug 
like this)?
Graham
8-Sep-2009
[14705]
Yes... but it's caused by my redefining 'now
Anton
8-Sep-2009
[14706]
..so I suppose you have to encap and run the executable after every 
change when debugging - I can see how that would be slow.
Graham
8-Sep-2009
[14707]
encap picks up the syntax error
Anton
8-Sep-2009
[14708x2]
Really? How does that cause a stack overflow?
Infinite recursion, I suppose.
Graham
8-Sep-2009
[14710x2]
Yeah ....
I redefine 'now to use real time taken from a NIST server
Anton
8-Sep-2009
[14712]
How fast is encap with a file that large? Does it deliver the error 
message immediately?
Graham
8-Sep-2009
[14713x2]
yes pretty immediate
My practice is usually make one change and then encap.  If I make 
two changes I'm in trouble.  Worse if I make changes while watchingTV 
:(
Anton
8-Sep-2009
[14715]
Ahh.. :) the real source of the trouble comes out :)
Graham
8-Sep-2009
[14716x3]
haha
First episode of NCIS NY
I don't know what other people do to manage code of this size ....
Sunanda
8-Sep-2009
[14719]
<What I need is a utility that will take a rebol script, and parse 
it out by function, attempting to intepret it until it reaches an 
error.>
I think there was one in the Official Guide (the book).
Graham
8-Sep-2009
[14720]
heh... I never got past the first chapter.  After that I used it 
as a bookend.
Ashley
10-Sep-2009
[14721x2]
Looking at to-rebol-file and wondering what advantage it has over 
to file! ... they seem functionally equivalent to me.
Also, the help text for as-string says "Coerces any type of string 
...". Should that read "any type of series"?
Graham
10-Sep-2009
[14723x3]
>> to-file "c:\rebol\rebol.exe"
== %c:\rebol\rebol.exe
>> to-rebol-file "c:\rebol\rebol.exe"
== %/c/rebol/rebol.exe
>> exists? to-file "c:\rebol\rebgui\enfacecmd.exe"
== false
>> exists? to-rebol-file "c:\rebol\rebgui\enfacecmd.exe"
== true
Seems to be big functional differences on windows at least.
Ashley
10-Sep-2009
[14726]
Mostly around driver letter and slash direction handling. I suppose 
the question then is, why doesn't to file! do what to-rebol-file 
does ... I don't see the point in using to-file to create an "invalid" 
file ... a bit like having both a to-decimal and to-rebol-decimal 
for example.
Graham
10-Sep-2009
[14727]
>> to-file "test.exe"
== %test.exe
>> to-local-file "test.exe"
== "test.exe"
Ashley
10-Sep-2009
[14728]
to-local-file makes sense to me, it's the need for both to-file and 
to-rebol-file I'm curious about.
BrianH
10-Sep-2009
[14729]
TO-FILE is only for datatype coersion. It makes sense to have both.
Ashley
10-Sep-2009
[14730]
Uh? All the to-* datatype conversion functions are implicitly to-rebol-* 
... why the need for a to-file that can produce "invalid" rebol file 
types and to-rebol-file that produces "valid" rebol file types? I'm 
looking for the reason/case where you would want to use to-file in 
preference to to-rebol-file.
BrianH
10-Sep-2009
[14731]
The file! type is just a datatype. There's no guarantee that the 
file! refers to anything, or is even the right syntax.
Izkata
10-Sep-2009
[14732]
to-rebol-file and to-local-file are more like a pair, too.  The other 
to-* are their own set.  For a new user, it seems more obvious that 
to-rebol-file and to-local-file would go together, I think.
Anton
11-Sep-2009
[14733]
I think the way things are with TO-FILE and TO-REBOL-FILE is just 
fine. I would be annoyed if TO-FILE took had the more complex functionality 
of TO-REBOL-FILE. I agree with BrianH.
RobertS
16-Sep-2009
[14734]
Could I ask why rebzip.r will only unzip a gzip if the console is 
launched from rebview ( in this case 2.7.6) but not from rebcore? 
thanks
Dockimbel
16-Sep-2009
[14735x2]
I guess it's because it relies on the PNG decoder for decompression 
which comes only with /View engine.
Btw, congratulation to the author, Vincent Ecuyer for this great 
library!