Home My Page Projects Code Snippets Project Openings diderot

# SCM Repository

[diderot] Diff of /branches/pure-cfg/TODO
 [diderot] / branches / pure-cfg / TODO

# Diff of /branches/pure-cfg/TODO

revision 763, Thu Apr 7 19:57:56 2011 UTC revision 846, Mon Apr 18 18:38:03 2011 UTC
# Line 1  Line 1
1  Outer products  ========================
2      syntax [DONE]  SHORT TERM =============  (for curvature-based VR)
3      typechecking  ========================
4      IL and codegen
5    For RGB color output of 2D transfer function (indexed by
6    kappa1,kappa2), or for a 1D transfer function, will need
7    something akin to convolution on vector images
8
9  Add M dot v, v dot M, and M dot N  IL support for higher-order tensor values (matrices, etc).
10        tensor construction [DONE]
11        tensor indexing [DONE]
12        tensor slicing
13        verify that hessians work correctly
14
15  Identity matrix [DONE up to code generation]  Outer products [DONE]
16
17  trace [DONE]  Add M dot v, v dot M, and M dot N [DONE]
18
19  expand trace in mid to low translation  Identity matrix [DONE]
20
21  extend norm (|exp|) to all tensor types  Zero tensor [DONE]
22
23  Infix dot product and cross product [DONE]  trace [DONE]
24
25  lerp on scalars and vectors [DONE]  extend norm (|exp|) to tensor[3,3] [DONE]
26
27  Use ∇⊗ etc syntax  Matrix addition, subtraction, and scaling  [DONE]
28
29    Use ∇⊗ etc. syntax
30      syntax [DONE]      syntax [DONE]
31      typechecking      typechecking
32      IL and codegen      IL and codegen
# Line 28  Line 37
37          value construction: '{' e1 ',' … ',' en '}'          value construction: '{' e1 ',' … ',' en '}'
38          indexing: e '{' e '}'          indexing: e '{' e '}'
39
40  IL support for higher-order tensor values (matrices, etc).  Infix dot product and cross product [DONE]
41      tensor construction
42      tensor indexing and slicing  lerp on scalars and vectors [DONE]
43
44    Infix "^" operator for pow() [DONE]
45
46    ==============================
47    other SHORT TERM =============  (including needed for LIC)
48    ==============================
49
50    determinant ("det") for tensor[3,3]
51
52    Decide if we want to allow redefinitions of variables
53      (as in vr-lite-cam.diderot)
54
55    extend norm (|exp|) to all tensor types
56
57    extend normalize to all tensor types
58
59    vector fields: convolution on vector images
60
61    expand trace in mid to low translation
62
63    value-numbering optimization
64
65  Add type aliases for color types  Add type aliases for color types
66      rgb = real{3}      rgb = real{3}
67      rgba = real{4}      rgba = real{4}
68
69    ==============================
70    MEDIUM TERM ================== (needed for streamlines & tractography)
71    ==============================
72
73    ability to emit/track/record variables into dynamically re-sized
74    runtime buffer
75
76    evals & evecs for symmetric tensor[3,3]
77
78    tensor fields: convolution on general tensor images
79
80    ==============================
81    other MEDIUM TERM ============ (needed for particles)
82    ==============================
83
84    run-time birth and death of strands
85
86    "initially" supports lists
87
88    "initially" supports lists of positions output from
89    different initalization Diderot program
90
91    spatial data structure that permits strands' queries of neighbors
92
93    proper handling of stabilize method
94
95    Add support for code like
96
97            (F1 if x else F2)@pos
98
99    This will require duplication of the continuation of the conditional (but we should only
100    duplicate over the live-range of the result of the conditional.
101
102    ==============================
103    other MEDIUM TERM ============
104    ==============================
105
106    want: warnings when D (and likely I) is declared as a
107    variable name (now get confusing error messages now)
108
109    support for Python interop and GUI
110
111    ==============================
112    LONG TERM ====================
113    ==============================
114
115    Better handling of variables that determines the scope of a variable based on its actual use,
116    instead of where the user defined it.  So, for example, we should lift strand-invariant variables
117    to global scope.  Also prune out useless variables, which should include field variables after the
118    translation to mid-il.
119
120    co- vs contra- index distinction
121
122    add ":" for tensor dot product (contracts out two indices
123    instead of one like •), valid for all pairs of tensors with
124    at least two indices
125
126    some indication of tensor symmetry
127    (have to identify the group of index permutations that are symmetries)
128
129    dot works on all tensors
130
131    outer works on all tensors
132
133    Einstein summation notation
134
135    "tensor comprehension" (like list comprehension)
136
137    Python/ctypes interface to run-timez
138
139    ======================
140    BUGS =================
141    ======================
142
143    test/mip-cam.diderot:
144        // generated C code looks like "(float)p_ui_0--0.5e0f"
145        //real rayU = 2.0*camUmax*(real(ui) - -0.5)/real(imgResU) - camUmax;
146
147    test/vr-kcomp.diderot:
148        // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...
149
150    test/zslice2.diderot:
151    // but is this not valid syntax for creating field in one shot?
152    //field#2(3)[] F = (load("../data/zimg112.nrrd")) ⊛ bspln3;
153    // It is valid syntax, but there is a bug in the conversion from HighIL to MidIL
154
155    test/zslice2.diderot:
156    // HEY (bug) bspln5 leads to problems ...
157    //  uncaught exception Size [size]
158    //    raised at c-target/c-target.sml:47.15-47.19
159    //field#4(3)[] F = img ⊛ bspln5;
160
161

Legend:
 Removed from v.763 changed lines Added in v.846