2f5c2d3f0f5728680b6d160ad163ad49f3d3db54
[sgt/agedu] / TODO
1 TODO list for agedu
2 ===================
3
4 Before it's non-embarrassingly releasable:
5
6 - now we have a configure framework, actually use it to:
7 * configure use of stat64
8 * configure use of Linux syscall magic replacing readdir
9 + later glibcs have fdopendir, hooray! So we can use that
10 too, if it's available and O_NOATIME is too.
11
12 Future possibilities:
13
14 - IPv6 support in the HTTP server
15 * of course, Linux magic auth can still work in this context; we
16 merely have to be prepared to open one of /proc/net/tcp or
17 /proc/net/tcp6 as appropriate.
18
19 - run-time configuration in the HTTP server
20 * I think this probably works by having a configuration form, or
21 a link pointing to one, somewhere on the report page. If you
22 want to reconfigure anything, you fill in and submit the form;
23 the web server receives HTTP GET with parameters and a
24 referer, adjusts its internal configuration, and returns an
25 HTTP redirect back to the referring page - which it then
26 re-renders in accordance with the change.
27 * All the same options should have their starting states
28 configurable on the command line too.
29
30 - curses-ish equivalent of the web output
31 + try using xterm 256-colour mode. Can (n)curses handle that? If
32 not, try doing it manually.
33 + I think my current best idea is to bypass ncurses and go
34 straight to terminfo: generate lines of attribute-interleaved
35 text and display them, so we only really need the sequences
36 "go here and display stuff", "scroll up", "scroll down".
37 + Infrastructure work before doing any of this would be to split
38 html.c into two: one part to prepare an abstract data
39 structure describing an HTML-like report (in particular, all
40 the index lookups, percentage calculation, vector arithmetic
41 and line sorting), and another part to generate the literal
42 HTML. Then the former can be reused to produce very similar
43 reports in coloured plain text.
44
45 - http://msdn.microsoft.com/en-us/library/ms724290.aspx suggest
46 modern Windowses support atime-equivalents, so a Windows port is
47 possible in principle.
48 + For a full Windows port, would need to modify the current
49 structure a lot, to abstract away (at least) memory-mapping of
50 files, details of disk scan procedure, networking for httpd.
51 Unclear what the right UI would be on Windows, too;
52 command-line exactly as now might be considered just a
53 _little_ unfriendly. Or perhaps not.
54 + Alternatively, a much easier approach would be to write a
55 Windows version of just the --scan-dump mode, which does a
56 filesystem scan via the Windows API and generates a valid
57 agedu dump file on standard output. Then one would simply feed
58 that over the network connection of one's choice to the rest
59 of agedu running on Unix as usual.