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

World: r3wp

[Core] Discuss core issues

Pekr
23-Feb-2006
[3532]
rebdb is very easy too ... we now have even sqlite drivers ...
Geomol
23-Feb-2006
[3533]
If anyone else wanna see the website powered by REBOL and running 
my NicomDB, write me privately.
Anton
23-Feb-2006
[3534]
Looks ok, nothing broke while I was fiddling with the website. :-) 
That's encouraging but not conclusive of how well it can really perform.
Geomol
23-Feb-2006
[3535]
It's running on a FreeBSD server, so it's pretty robust. It hasn't 
been rebooted since July last summer.
Pekr
23-Feb-2006
[3536]
is it on-disk db or memory based as rebdb is?
Geomol
23-Feb-2006
[3537x2]
We had some problems with Netcraft sending strange HTTP headers, 
that sometimes made our REBOL application hiccup, but that should 
be solved.
Pekr, data is on-disk, multi-user locking is in memory.
Pekr
23-Feb-2006
[3539]
interesting ... binary or plain text based? sql interface? :-)
Geomol
23-Feb-2006
[3540x2]
Pekr, REBOL datatype based (so text, but you can store binary data).
Pekr, no SQL interface yet. I started to do a SQL interface doing 
my education, but didn't finish it. SQL is crap. ;)
Pekr
23-Feb-2006
[3542]
why we did not know about this interesting project earlier? :-) was 
it private?
Geomol
23-Feb-2006
[3543x2]
hehe, well. My problem is, I have so many things to do and so little 
time.
Pekr, I'll write you privately, so you can see the NicomDB in action 
in a real application.
Pekr
23-Feb-2006
[3545]
ok, thanks ...
Anton
23-Feb-2006
[3546x3]
Example



PRINT  (global)

In the most recent Rebol/Core 2.6 (date)
First appeared in Rebol/Core 0.005 alpha (date)
[History]



Passed all 12 unit tests on [30 versions of rebol]. (See [unit tests])


---------------------------

PARSE  (global)

In the most recent Rebol/Core 2.6 (date)
First appeared ...
[History]



Passed all 34 unit tests on [14 versions of rebol]. (See [unit tests])
Ok, created a new Qtask Rebol SIG task, with many notes extracted 
from this discussion in its description. Sitll pretty messy, but 
it's a start.
http://www.qtask.com/details.cgi?project=198&id=38061
Having done that, I can't spend much time on it now ! :-(  But it's 
good to get some of these ideas written down, and a few things worked 
out.
Geomol
23-Feb-2006
[3549]
It's been a while, since I last used Qtask. Do I need special permission 
to see that project?
Anton
23-Feb-2006
[3550x2]
I think you just need to login before you visit that url. Did you 
have trouble accessing it ?
(Or maybe a Lead such as Reichart needs to approve the task first 
? That might take some time...)
Geomol
23-Feb-2006
[3552x2]
Yes, I don't have permission.
Reeeeiiiichart! It's Anton and John caaaalling! ;)
yeksoon
23-Feb-2006
[3554]
u don't?

I think you are on REBOL SIG.
JaimeVargas
23-Feb-2006
[3555x4]
Look at the regression tests implemented in Orca they already cover 
a lot of behaviour.
http://trac.geekisp.com/orca
They can serve as a base to implement the full unit test for Rebol, 
and save time.
If you download the src code the paths is user-path/orca/trunk/orca/tests/
Robert
23-Feb-2006
[3559x2]
Isn't there a regression test "suite" for Rebol programs? IIRC someone 
made something like this.
Or was it unit-testing...
JaimeVargas
23-Feb-2006
[3561]
I believe there is a Unit Test framework. But no rebol specific regression 
tests have been written. At least not publicly.
Anton
23-Feb-2006
[3562x2]
Geomol, are you able to login to Qtask still ?

Reichart has approved/released the task, so all I need to do is add 
interested people as watchers.
I see "John" in qtask and added him as a watcher. (I assume that's 
you Geomol). I can add anybody else in qtask who is interested as 
watchers too.

(Geomol, you will need to accept becoming a watcher first, then you 
should be able to see the page.)
PeterWood
23-Feb-2006
[3564]
Carl used to wax lyrically about the automated Rebol test suite that 
Jeff (Kreis) wrote when he was at RT. As far as I know it was never 
publicly available.
Geomol
24-Feb-2006
[3565x2]
Anton, I have access to the project on Qtask now.
and yes, I'm John in Qtask.
Anton
25-Feb-2006
[3567]
Ah, very good.
Graham
25-Feb-2006
[3568x2]
>> foreach f read %synapse-chat/ [ ?? f either dir? f [ print [ "directory: 
" f ]][print ["file: " f] ]]
f: %April/
file:  April/
f: %Compkarori/
file:  Compkarori/
this has me somewhat confused.
Volker
25-Feb-2006
[3570x2]
Does still?
read returns pathless filenames.
Graham
25-Feb-2006
[3572]
but you can see that the trailing slash is preserved ...
Volker
25-Feb-2006
[3573x2]
it checks by os-call, not filename.
missing things count as as non-dirs too.
Graham
25-Feb-2006
[3575x2]
foreach f read %./ [ print [ "directory? " dir? f ]]

So, why does this work?
because it's in the current directory ?
Volker
25-Feb-2006
[3577x2]
yes. "dir? %synapse-chat/April/" would work too.
foreach f read dir: %synapse-chat/ [ ?? f either dir? dir/:f [ print 
[ "directory: " f ]][print ["file: " f] ]]
Graham
25-Feb-2006
[3579]
I guess the lesson is that you need to remember where you are when 
doing these things.
Anton
26-Feb-2006
[3580]
It's faster to check for final slash than to use DIR?, which, as 
Volker pointed out, makes an OS call.
Graham
26-Feb-2006
[3581]
Yeah, I moved to doing that.