[PD-cvs] abstractions/pureunity README, 1.6, 1.7 TODO, 1.2, 1.3 ChangeLog, 1.2, 1.3 main.pd, 1.3, 1.4

Mathieu Bouchard matju at users.sourceforge.net
Wed Jan 4 03:59:24 CET 2006


Update of /cvsroot/pure-data/abstractions/pureunity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22044

Modified Files:
	README TODO ChangeLog main.pd 
Log Message:
.


Index: main.pd
===================================================================
RCS file: /cvsroot/pure-data/abstractions/pureunity/main.pd,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** main.pd	31 Dec 2005 22:41:03 -0000	1.3
--- main.pd	4 Jan 2006 02:59:22 -0000	1.4
***************
*** 1,8 ****
! #N canvas 385 232 448 442 10;
! #X obj 41 85 arith-test f;
! #X obj 19 20 loadbang;
! #X obj 28 42 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  -1;
! #X obj 41 180 print;
  #N canvas 509 382 450 300 other 0;
  #X obj 20 38 twice symbol foo bar;
--- 1,8 ----
! #N canvas 841 0 408 486 10;
! #X obj 63 169 arith-test f;
! #X obj 19 65 loadbang;
! #X obj 28 87 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
  -1;
! #X obj 41 373 print;
  #N canvas 509 382 450 300 other 0;
  #X obj 20 38 twice symbol foo bar;
***************
*** 24,51 ****
  #X connect 6 0 8 0;
  #X connect 8 0 7 0;
! #X restore 218 29 pd other;
! #X obj 19 66 t b b b;
! #X obj 71 161 +;
! #X msg 121 161 0;
! #X msg 71 123 float \$1;
! #X obj 41 104 t a a;
! #X obj 96 161 t f;
! #X obj 19 153 f;
! #X obj 71 142 == 0;
! #X obj 19 199 print total_failures;
! #X obj 30 219 sel 0;
! #X obj 38 280 bng 100 250 50 0 empty empty empty 0 -6 0 8 -24198 -1
! -262144;
! #X msg 38 261 color \$1 \, bang;
! #X msg 30 238 16;
! #X msg 60 238 13;
! #X text 24 392 This does not count errors not reported by the tests
  ;
! #X text 25 406 Consult the console for more information;
  #X connect 0 0 9 0;
  #X connect 1 0 5 0;
  #X connect 2 0 5 0;
  #X connect 5 0 11 0;
! #X connect 5 1 0 0;
  #X connect 5 2 7 0;
  #X connect 6 0 10 0;
--- 24,67 ----
  #X connect 6 0 8 0;
  #X connect 8 0 7 0;
! #X restore 323 80 pd other;
! #X obj 19 111 t b b b;
! #X obj 71 354 +;
! #X msg 121 354 0;
! #X msg 71 316 float \$1;
! #X obj 41 297 t a a;
! #X obj 96 354 t f;
! #X obj 19 346 f;
! #X obj 71 335 == 0;
! #X obj 19 392 print total_failures;
! #X obj 226 251 sel 0;
! #X obj 234 312 bng 100 250 50 0 empty empty empty 0 -6 0 8 -258699
! -1 -262144;
! #X msg 234 293 color \$1 \, bang;
! #X msg 226 270 16;
! #X msg 256 270 13;
! #X text 24 437 This does not count errors not reported by the tests
  ;
! #X text 25 464 Consult the console for more information;
! #X obj 41 188 comparators-test f;
! #X obj 4 6 cnv 15 400 40 empty empty PureUnity 8 20 1 18 -34345 -68160
! 0;
! #X text 130 7 TM;
! #X obj 15 35 cnv 1 380 1 empty empty Copyright_2006_by_Mathieu_Bouchard
! 150 -4 1 9 -258699 -262144 0;
! #X text 25 450 Such as Syntax Error \, Class Not Found \, etc.;
! #X text 297 253 Green: PASS;
! #X text 311 265 Red: FAIL;
! #X obj 85 150 glue-test;
! #X obj 41 131 t b b b;
! #X text 6 48 from the bit rot prevention department;
! #X obj 284 149 protocols-tree;
! #X obj 284 168 print;
! #X symbolatom 284 133 10 0 0 0 - - -;
! #X msg 284 114 symbol field;
  #X connect 0 0 9 0;
  #X connect 1 0 5 0;
  #X connect 2 0 5 0;
  #X connect 5 0 11 0;
! #X connect 5 1 29 0;
  #X connect 5 2 7 0;
  #X connect 6 0 10 0;
***************
*** 64,65 ****
--- 80,89 ----
  #X connect 17 0 16 0;
  #X connect 18 0 16 0;
+ #X connect 21 0 9 0;
+ #X connect 28 0 9 0;
+ #X connect 29 0 21 0;
+ #X connect 29 1 0 0;
+ #X connect 29 2 28 0;
+ #X connect 31 0 32 0;
+ #X connect 33 0 31 0;
+ #X connect 34 0 33 0;

Index: README
===================================================================
RCS file: /cvsroot/pure-data/abstractions/pureunity/README,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** README	31 Dec 2005 21:29:37 -0000	1.6
--- README	4 Jan 2006 02:59:22 -0000	1.7
***************
*** 50,65 ****
    outlet 0:
      test results. a sequence of lists like:
!       list $name $passed? $accuracy $elapsed
  
      where:
-       $name is a symbol
        $passed? is either 0 for failure or 1 for success
        $accuracy is a float proportional to relative error on math
           (if not applicable, use 0)
!       $elapsed is a float, the time elapsed in milliseconds
!          or it is the symbol "-" if not measured.
  
      for example:
!       list commutative1 1 0 -
  
      Which means that the 1st test about commutativity passed ($2=1) because it
--- 50,65 ----
    outlet 0:
      test results. a sequence of lists like:
!       list $passed? $accuracy $elapsed $name1 ...
  
      where:
        $passed? is either 0 for failure or 1 for success
        $accuracy is a float proportional to relative error on math
           (if not applicable, use 0)
!       $elapsed is a nonnegative float, the time elapsed in milliseconds
!          or it is any negative float meaning the time hasn't been measured.
!       $name1 and the rest are symbols and/or floats identifying the test
  
      for example:
!       list 1 0 -1 commutative f + *
  
      Which means that the 1st test about commutativity passed ($2=1) because it
***************
*** 174,180 ****
  CURRENT:
    f   float
  
  FUTURE (from PureData):
-   ~   signal
    s   symbol
    p   gpointer
--- 174,180 ----
  CURRENT:
    f   float
+   ~   signal
  
  FUTURE (from PureData):
    s   symbol
    p   gpointer
***************
*** 200,203 ****
--- 200,239 ----
    #r  grid of rubies (VALUE*)
  
+ for a type prefix to be considered implemented, it has to
+ have the following class set:
+ 
+   metaabstraction   for floats   for signals   for grids
+   [$1.inlet]         [inlet]      [inlet~]      [inlet]
+   [$1.outlet]       [outlet]     [outlet~]     [outlet]
+   [$1.do $2 $3]     [$2 $3]      [$2~ $3]      [# $2 $3]
+   [$1.taa]          [t a a]      noop          [t a a]
+   [$1.swap]         [swap]       noop          TODO
+   [$1.norm]         [abs]        [env~]        [# sq]->[#ravel]->[#fold +]->[#export]->[sqrt]
+   [$1.packunpack3]  pack,unpack  noop          TODO
+   
+ The first two cannot be implemented as abstractions and instead must be
+ defined as aliases in pureunity.c.
+ 
+ +-+-+--+---+-----+--------+-------------+---------------------+
+ OTHER PROTOCOLS
+ 
+ Those four classes are operators that give verify algebraic properties
+ of other operators. The more their outputs are close to zero, the more
+ those other operators are faithful to an algebraic property.
+ 
+ (here, supported $types are f and ~)
+ 
+ [commutator  $type $class]          (2 inlets)     ab-ba
+ [associator  $type $class]          (2 inlets)  (ab)c-a(bc)
+ [distributor $type $class1 $class2] (3 inlets) a(b+c)-(ab+ac)
+ [invertor    $type $class1 $class2] (2 inlets)   ab/b-a
+ 
+ +-+-+--+---+-----+--------+-------------+---------------------+
+ TESTS AND RULES
+ 
+ For each class, a test file's name is the class name followed by "-test.pd",
+ and a rule file's name is the class name followed by "-rule.pd",
+ in the same way as it is for help files.
+ 
  +-+-+--+---+-----+--------+-------------+---------------------+
  ETC

Index: TODO
===================================================================
RCS file: /cvsroot/pure-data/abstractions/pureunity/TODO,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** TODO	31 Dec 2005 18:44:54 -0000	1.2
--- TODO	4 Jan 2006 02:59:22 -0000	1.3
***************
*** 5,7 ****
   * signals
   * grids
!  * norms
\ No newline at end of file
--- 5,11 ----
   * signals
   * grids
! 
!  * transitive, antisymmetric, predicate
!  * contracts : *-rule.pd
! 
!  * tests for the frameworks' own components?

Index: ChangeLog
===================================================================
RCS file: /cvsroot/pure-data/abstractions/pureunity/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ChangeLog	31 Dec 2005 18:44:54 -0000	1.2
--- ChangeLog	4 Jan 2006 02:59:22 -0000	1.3
***************
*** 4,9 ****
   * LICENSE is GPL
   * README
!  * [commutator],  [commutative-test]
!  * [associator],  [associative-test]
!  * [invertor],    [invertible-test]
!  * [distributor], [distributive-test]
--- 4,16 ----
   * LICENSE is GPL
   * README
!  * new object classes:
!    * [commutator],   [commutative-test]
!    * [associator],   [associative-test]
!    * [invertor],      [invertible-test]
!    * [distributor], [distributive-test]
!    * [twice], [3times], [4times], [^]
!    * [tree], [protocol-tree]
!    * [rtimer]
!    * for $1 in f,~,#:
!      [$1.norm], [$1.taa], [$1.do], [$1.packunpack3], [$1.swap]
!      [$1.inlet], [$1.outlet]





More information about the Pd-cvs mailing list