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