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

World: r3wp

[!REBOL3 Extensions] REBOL 3 Extensions discussions

Robert
18-Jul-2010
[1057x3]
I will release our test-framework, which should be used as base or 
as resulting format.
This is a simple to use test environment that can automatically run 
thousands of tests.
And, of course the host-kit that needs to be tested needs to be released. 
IMO we will release a RC to get feedback on the extension part.
Graham
18-Jul-2010
[1060x3]
Don't you release and then test?  Isn't this back to front?
What's the reason that the Linux host-kit has not been released yet?
I'm guessing most people are not on windows but other platforms
Robert
18-Jul-2010
[1063x3]
Really? I think let's first get the Windows version done, than the 
Linux.
Windows is there, so no reason not to use it for testing.
Published the test-framework on www.rm-asset.com
Maxim
19-Jul-2010
[1066]
Carl thanks.
Pekr
19-Jul-2010
[1067]
Wasn't there one RT's test framework in the past too?
Carl
19-Jul-2010
[1068x3]
Pekr, yes... RT uses a simple testing framework.
Graham: no, you don't release then test. That's insanity.
The concept of "just upload it" does not work.  Here's why:


1. Parts of the API may not work at all, because of course, they 
are not tested!


2. Parts may work incorrectly... and therefore are just going to 
confuse most developers, and they'll get frustrated.


3. Because the code is not tested, it floods CureCode with tickets, 
most of which should not even be posted there.


4. Without a testing methodology, there will be no consistent test 
suite over time... just a bunch of hacked together code pieces from 
various developers.
Maxim
19-Jul-2010
[1071]
btw, I have volunteered with robert, but have not gotten reply yet.


I have client work which deals with extensions and have started some 
extension building automation... 

since this testing goes hand in hand with actual work I'm doing so 
I guess Its logical for me to step up and take the task.
Carl
19-Jul-2010
[1072]
Sold! PS: Robert has another project today.
Maxim
19-Jul-2010
[1073]
also posted a private msg to you on R3 re this
Carl
19-Jul-2010
[1074]
Maxim, let me find a direct private channel to you.
Maxim
19-Jul-2010
[1075]
ok.
Carl
19-Jul-2010
[1076x2]
Check R3 Chat. I'll be sending you a few notes.
Check your email.
Maxim
19-Jul-2010
[1078x2]
ok
know what they say....  "carefull what you wish for... you just might 
get it"   :-)

I asked for it  ;-)
Graham
19-Jul-2010
[1080x2]
@Carl ... I don't think the three or so people testing extensions 
are going to flood anything.
And surely the testing argument applies to R3 ... so where is the 
test suite?
Pekr
19-Jul-2010
[1082]
Wasn't testing suite publicly available? http://www.rebol.net/r3blogs/0125.html
Graham
19-Jul-2010
[1083x2]
I don't recall seeing it ... but in April 2008 I wasn't playing with 
R3
The method seems sound, but I think there could be a problem with 
the quantity of tests generated. Currently, with only five (of 56) 
datatypes tested, there are more than 22'000 test vectors, and they 
build exponentially. We may end up with more than a million test 
vectors for the final suite.
Gregg
19-Jul-2010
[1085]
Yup. But that's OK if it's all automated.
Maxim
19-Jul-2010
[1086x2]
yes, let it run for two days... do we really care?
it might even provide other insight on running such a heavy script
Gregg
19-Jul-2010
[1088]
Or give Carl the impetus to build a grid/ipc/distribution infrastructure.
Robert
20-Jul-2010
[1089]
Graham, SQLite uses over 2 Billion tests before doing a release.
Graham
20-Jul-2010
[1090]
for i 1 1000'000'000 1 [  insert db {select * from test where id 
= (?)} i ]
BrianH
20-Jul-2010
[1091]
The point is that 22'000 test vectors isn't much, and can be generated 
for the most part. We don't have to write them by hand.
Graham
20-Jul-2010
[1092]
Guys .. I didn't write that .. it's a quote from Carls blog
BrianH
20-Jul-2010
[1093]
OK, cool. So the point goes to Carl :)
Robert
20-Jul-2010
[1094x2]
Yep :-)
And, it's all about test-coverage, not about high number of tests 
triggering always the same code.
Graham
20-Jul-2010
[1096x3]
write %qt2.dll read http://www.compkarori.com/r3extend/qt2.dll
secure [ extension allow]
test


and this brings up a Qt window with a push button .. says "hello 
world"
Better than nothing :)
Looks like Nokia sponsored the development of PySide, the Python 
bindings for Qt4 .. some 300 odd functions etc.  Wonder if they might 
sponsor a R3 binding!
BrianH
20-Jul-2010
[1099]
There is a Python port to at least two of Nokia's cellphone operating 
systems.
Maxim
20-Jul-2010
[1100x2]
** R3 EXTENSIONS MILESTONE **
I have successfully mechanically generated  a complete r3 extension 
and test script, by simply parsing a C language .h file.
  

if you have a makefile ready for your extension, it will even compile 
the extension for you and launch the test script in a single pass 
of the engine.

this is based on the latest r3 A101 build.
TomBon
20-Jul-2010
[1102]
congrats maxim, THIS is a real milestone.
Gregg
20-Jul-2010
[1103]
Cool Max!
TomBon
20-Jul-2010
[1104]
open the door to prebuilt (logic condensensed) C libs will enhance 
rebol straight to the commercial 
software development.
Maxim
20-Jul-2010
[1105]
capacity of the parser will be the main focus for on-going development.


I already have the complete C language parse rules from an older 
project, so I'll be slowing importing the rules into this engine.
Gregg
20-Jul-2010
[1106]
Some good SWIG-like tools will helpe people a lot.