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

World: r3wp

[!REBOL3-OLD1]

BrianH
2-Feb-2009
[10346]
If you want to help now I can get you an account on the current DevBase 
- be warned that the GUI is not great yet (because it's R2).
[unknown: 5]
2-Feb-2009
[10347]
BrianH, I would love to help out where I can.
Janko
2-Feb-2009
[10348]
just want to express my oppinion that I am happy of the core things 
beeing in focus (language, runtime, core libs (tcp...)...) not the 
"addons" like gui
BrianH
2-Feb-2009
[10349x2]
I sort of agree, but most of the core bugs were discovered and fixed 
during the course of writing the "addons" like the GUI or non-core 
mezzanine functions. Most of the core language enhancements came 
from the GUI work too. I expect the work on higher-level port schemes 
will help debug the low-level port code. You need to write the high-level 
stuff to help refine the low-level stuff.
I found two bugs, one issue and a potential language enhancement, 
all about the map! type, all during the writing of one function (REWORD) 
that many people may not use - it might be one of those functions 
put in a module that isn't loaded by default. Still, time well spent 
if it makes map! better for all of us.
Janko
2-Feb-2009
[10351x2]
most of the core bugs were discovered and fixed during the course 
of writing the 

addons" like the GUI or non-core mezzanine functions" yes, I fully 
agree with this and understand that higher level code tests and helps 
design (reiterate) the low level that it's build upon...
but I still take decision to make chat in CLI first and not focus 
on GUI etc too quickly very highly. Because having a good core on 
which gui (or many gui-s) and all things are built seems 100x more 
important than having *something to show* .. a nice gui on a patched 
core... I appreciate the priorities and focus, and this tells me 
that I can rely on R3 being good.
BrianH
2-Feb-2009
[10353x2]
You caught onto a good principle there, Janko. We are really focused 
on the core now with chat. Admittedly, it is the core of chat rather 
than the core of R3 but the principle is the same: We need the communications 
infrastructure there so we can communicate now, and that will make 
it easier to make it pretty later :)
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.