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

World: r3wp

[!REBOL3-OLD1]

BrianH
2-Feb-2009
[10354]
Don't worry, we are also focused on the core of R3 :)
Pekr
2-Feb-2009
[10355x2]
R3 plan for February - http://www.rebol.com/article/0389.html
very good summary!
Kaj
2-Feb-2009
[10357x6]
I ported my CMS to R3
The results are not very encouraging
It´s written in a simple style, yet I had to make a series of tweaks
I encountered several bugs and I had to write a series of wrappers 
for READ and WRITE to arrive at functions that act compatible between 
R2 and R3
Eventually, when I built a number of OpenOffice XML files that take 
three seconds on R2, it took twenty seconds
Is there any reason that R3 would be extremely slow under WINE?
BrianH
3-Feb-2009
[10363x2]
Please post any bugs you find in CureCode. There are some changes 
in the way READ and WRITE work though.
I can't test in WINE, so any bug tickets would be appreciated.
Kaj
3-Feb-2009
[10365x3]
Actually, I hit another bug that makes it impossible to port my CMS
In R2, dir? tests the file node to see if it´s a directory or just 
a file. However, in R3, dir? works like file? and only tests whether 
the value ends with a #¨ /¨
This leaves no way to detect an actual directory
Graham
3-Feb-2009
[10368x2]
alpha software is out there to be stressed
One doesn't really expect it to work ....
Kaj
3-Feb-2009
[10370]
Did I say otherwise?
Graham
3-Feb-2009
[10371]
Yes.  You're implying it.
Kaj
3-Feb-2009
[10372]
No, I´m not
Graham
3-Feb-2009
[10373]
Perhaps not consciously... but that's how it appears to me.
Kaj
3-Feb-2009
[10374]
Are you a brain doctor?
Henrik
3-Feb-2009
[10375]
Kaj, can you post some code which breaks DIR?
Graham
3-Feb-2009
[10376]
Just human
Pekr
3-Feb-2009
[10377x2]
Why don't you just port dir? func from r2?
.... it is a mezzanine, you need to port throw-on-error to be compatible 
...
Kaj
3-Feb-2009
[10379]
¨ dir? anything¨
Henrik
3-Feb-2009
[10380]
interesting... dir? works fine here.
Kaj
3-Feb-2009
[10381]
Thanks, Petr, that should work
Henrik
3-Feb-2009
[10382x2]
ah, I get it now
but it does test correctly for existing directories. it's a little 
ambiguous, but testing also for EXISTS? could help
Graham
3-Feb-2009
[10384x2]
You sure??
>> dir? %asdfsdf/
== false
Henrik
3-Feb-2009
[10386]
it seems it will do this:

- it tests FALSE for an existing file
- it tests FALSE for an existing file and adding a /

- it tests TRUE for a non-existing dir with an ending / <-- bogus?
- it tests TRUE for an existing dir with an ending /
- it tests TRUE for an existing dir without an ending /
Graham
3-Feb-2009
[10387]
crap ... had wrong version of rebol up
Henrik
3-Feb-2009
[10388]
the bogus one would be eliminated with an EXISTS?. still it's a simpler 
way to test for non-existing dirs, say in preferences files for paths 
and some basic syntax checking.
Graham
3-Feb-2009
[10389]
but you also have to check the ending / if you want to form paths
Henrik
3-Feb-2009
[10390]
in R2, we have to do the "#"/" = last file" check
Graham
3-Feb-2009
[10391]
annoying ...
Henrik
3-Feb-2009
[10392x2]
so, I think there should be a function for that, but having it in 
DIR? may be ambiguous.
I'm adding a ticket, just to be sure.
Graham
3-Feb-2009
[10394]
So, we need a function that both checks that file exists, and it's 
a directory?
Henrik
3-Feb-2009
[10395]
so... there should not be a need to port the R2 one, just ask like 
this:

all [
	exists? file
	dir? file
]

That shouldn't hurt the R2 version.
Kaj
3-Feb-2009
[10396]
Even info?/type is incompatible. ´directory for R2 and ´dir for R3
Henrik
3-Feb-2009
[10397]
probably related to ports being different in R3. I'll make a ticket.
Kaj
3-Feb-2009
[10398]
The exists? check is insufficient, because it will return true if 
a regular file exists but the value is written in dir form with a 
trailing /
Henrik
3-Feb-2009
[10399x3]
exists? %/c/msdos.sys
== true

exists? %/c/msdos.sys/
== false
or is it R2? checking...
ah, yes. there is an issue in R2.
Kaj
3-Feb-2009
[10402]
The issue is in R3
Henrik
3-Feb-2009
[10403]
The above code was pasted from R3.