Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/pure-cfg/TODO
ViewVC logotype

Annotation of /branches/pure-cfg/TODO

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1001 - (view) (download)

1 : glk 1001 NOTE: GLK's approximate ranking of 5 most imporant tagged with
2 : glk 962 [GLK:1], [GLK:2], ...
3 :    
4 : glk 781 ========================
5 :     SHORT TERM ============= (for curvature-based VR)
6 :     ========================
7 :    
8 : jhr 788 IL support for higher-order tensor values (matrices, etc).
9 : jhr 803 tensor construction [DONE]
10 :     tensor indexing [DONE]
11 :     tensor slicing
12 : jhr 853 verify that hessians work correctly [DONE]
13 : jhr 788
14 : jhr 821 Outer products [DONE]
15 : jhr 763
16 : jhr 813 Add M dot v, v dot M, and M dot N [DONE]
17 : jhr 763
18 : jhr 846 Identity matrix [DONE]
19 : jhr 763
20 : jhr 846 Zero tensor [DONE]
21 : jhr 822
22 : jhr 763 trace [DONE]
23 :    
24 : jhr 846 extend norm (|exp|) to tensor[3,3] [DONE]
25 : jhr 763
26 : jhr 846 Matrix addition, subtraction, and scaling [DONE]
27 : jhr 824
28 : jhr 788 Use ∇⊗ etc. syntax
29 : jhr 763 syntax [DONE]
30 :     typechecking
31 :     IL and codegen
32 :    
33 :     Add sequence types
34 :     syntax
35 :     types: ty '{' INT '}'
36 :     value construction: '{' e1 ',' … ',' en '}'
37 :     indexing: e '{' e '}'
38 :    
39 : jhr 784 Infix dot product and cross product [DONE]
40 : glk 781
41 : jhr 784 lerp on scalars and vectors [DONE]
42 :    
43 : jhr 824 Infix "^" operator for pow() [DONE]
44 :    
45 : jhr 897 Code generation support for 1D image data, such as RGBA transfer functions [DONE]
46 : jhr 853
47 : glk 781 ==============================
48 : glk 785 other SHORT TERM ============= (including needed for LIC)
49 : glk 781 ==============================
50 :    
51 : glk 927 test/uninit.diderot:
52 : glk 941 documents need for better compiler error messages when output variables
53 : glk 927 are not initialized; the current messages are very cryptic
54 :    
55 : glk 785 determinant ("det") for tensor[3,3]
56 :    
57 : jhr 897 extend norm (|exp|) to all tensor types [DONE for vectors and matrices]
58 : glk 785
59 : jhr 788 expand trace in mid to low translation
60 :    
61 :     value-numbering optimization
62 :    
63 :     Add type aliases for color types
64 :     rgb = real{3}
65 :     rgba = real{4}
66 :    
67 : glk 781 ==============================
68 : glk 891 MEDIUM TERM ================== (including needed for streamlines & tractography)
69 : glk 781 ==============================
70 :    
71 : glk 1001 [GLK:2] evals & evecs for symmetric tensor[3,3] (requires sequences)
72 : glk 962
73 : glk 1001 [GLK:3] Save Diderot output to nrrd, instead of "mip.txt"
74 : glk 962 For grid of strands, save to similarly-shaped array
75 :     For list of strands, save to long 1-D (or 2-D for non-scalar output) list
76 :     For ragged things (like tractography output), will need to save both
77 :     complete list of values, as well as list of start indices and lengths
78 :     to index into complete list
79 :    
80 : glk 1001 [GLK:4] Use of Teem's "hest" command-line parser for getting
81 : glk 962 any input variables that are not defined in the source file
82 :    
83 : glk 1001 [GLK:5] ability to declare a field in such a way so that probe
84 : glk 962 positions are *always* clamped to the support of "inside";
85 :     there are many cases where this is the sensible behavior.
86 :     (More generally, we could also have "repeat" declaration,
87 :     copying action of GL_REPEAT in texturing)
88 :    
89 :     ability to emit/track/record variables into dynamically re-sized
90 :     runtime buffer
91 :    
92 : glk 945 Want: allow X *= Y, X /= Y, X += Y, X -= Y to mean what they do in C,
93 :     provided that X*Y, X/Y, X+Y, X-Y are already supported.
94 :     Nearly every Diderot program would be simplified by this.
95 :    
96 : glk 962 Want: non-trivial field expressions & functions:
97 : glk 948 image(2)[2] Vimg = load(...);
98 : glk 950 field#0(2)[] Vlen = |Vimg ⊛ bspln3|;
99 : glk 948 to get a scalar field of vector length, or
100 : glk 950 field#2(2)[] F = Fimg ⊛ bspln3;
101 :     field#0(2)[] Gmag = |∇F|;
102 : glk 948 to get a scalar field of gradient magnitude, or
103 : glk 950 field#2(2)[] F = Fimg ⊛ bspln3;
104 :     field#0(2)[] Gmsq = ∇F•∇F;
105 :     to get a scalar field of squared gradient magnitude, which is simpler
106 : glk 962 to differentiate. However, there is value in having these, even if
107 :     the differentiation of them is not supported (hence the indication
108 :     of "field#0" for these above)
109 : glk 945
110 : glk 962 Want: ability to apply "normalize" to a field itself, e.g.
111 :     field#0(2)[2] V = normalize(Vimg ⊛ ctmr);
112 :     so that V(x) = normalize((Vimg ⊛ ctmr)(x)).
113 :     Having this would simplify expression of standard LIC method, and
114 :     would also help express other vector field expressions that arise
115 :     in vector field feature exraction.
116 : glk 941
117 : glk 781 tensor fields: convolution on general tensor images
118 :    
119 :     ==============================
120 :     other MEDIUM TERM ============ (needed for particles)
121 :     ==============================
122 :    
123 :     run-time birth and death of strands
124 :    
125 :     "initially" supports lists
126 :    
127 :     "initially" supports lists of positions output from
128 :     different initalization Diderot program
129 :    
130 :     spatial data structure that permits strands' queries of neighbors
131 :    
132 : jhr 784 proper handling of stabilize method
133 :    
134 : glk 891 test/vr-kcomp2.diderot: Add support for code like
135 : jhr 796
136 :     (F1 if x else F2)@pos
137 :    
138 : glk 962 This will require duplication of the continuation of the conditional
139 :     (but we should only duplicate over the live-range of the result of the
140 :     conditional.
141 : jhr 796
142 : glk 781 ==============================
143 : jhr 797 other MEDIUM TERM ============
144 :     ==============================
145 :    
146 : glk 927 want: warnings when "D" (reserved for differentiation) is declared as
147 :     a variable name (get confusing error messages now)
148 : jhr 797
149 : jhr 824 support for Python interop and GUI
150 :    
151 : jhr 797 ==============================
152 : glk 781 LONG TERM ====================
153 :     ==============================
154 :    
155 : glk 927 Better handling of variables that determines the scope of a variable
156 :     based on its actual use, instead of where the user defined it. So,
157 :     for example, we should lift strand-invariant variables to global
158 :     scope. Also prune out useless variables, which should include field
159 :     variables after the translation to mid-il.
160 : jhr 796
161 : glk 781 co- vs contra- index distinction
162 :    
163 : glk 783 add ":" for tensor dot product (contracts out two indices
164 :     instead of one like •), valid for all pairs of tensors with
165 :     at least two indices
166 :    
167 : glk 781 some indication of tensor symmetry
168 :     (have to identify the group of index permutations that are symmetries)
169 :    
170 :     dot works on all tensors
171 :    
172 :     outer works on all tensors
173 :    
174 :     Einstein summation notation
175 :    
176 :     "tensor comprehension" (like list comprehension)
177 : jhr 784
178 : jhr 966 Python/ctypes interface to run-time
179 : glk 818
180 : jhr 784 ======================
181 :     BUGS =================
182 :     ======================
183 :    
184 : glk 1001 [GLK:1] test/fields.diderot:
185 : glk 962 documents various bugs/questions associated with simple field expressions
186 :     (negation, addition, scalar multiplication)
187 :    
188 :     test/read2vecs.diderot:
189 :     // HEY (BUG?) shouldn't it be a type error to load this 2-D array of
190 :     // 2-vectors into a 2-D *scalar* field? Instead, get:
191 :     // uncaught exception Fail [Fail: Error in compiling lic.diderot]
192 :     // raised at driver/main.sml:31.39-31.76
193 :     image(2)[] Vimg = load("../data/vorttest.nrrd");
194 :    
195 : jhr 784 test/vr-kcomp.diderot:
196 :     // HEY (scoping BUG): the strand parameters (e.g. ui, vi) ...
197 :    
198 :     test/zslice2.diderot:
199 :     // but is this not valid syntax for creating field in one shot?
200 :     //field#2(3)[] F = (load("../data/zimg112.nrrd")) ⊛ bspln3;
201 :     // It is valid syntax, but there is a bug in the conversion from HighIL to MidIL
202 :    
203 :     test/zslice2.diderot:
204 :     // HEY (bug) bspln5 leads to problems ...
205 :     // uncaught exception Size [size]
206 :     // raised at c-target/c-target.sml:47.15-47.19
207 :     //field#4(3)[] F = img ⊛ bspln5;

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0