Capitalized the remaining struct name
[tt.git] / TODO
1 # vim:sw=2:sts=2:
2 - [ ] Output formats:
3 - [x] text long
4 - [x] text short
5 - [ ] HTML
6 - [ ] JSON
7 - [ ] Convert to Typed Racket
8 - requires: build executable (otherwise too slow)
9 - [x] Build executable
10 Implies fix of "collection not found" when executing the built executable
11 outside the source directory:
12
13 collection-path: collection not found
14 collection: "tt"
15 in collection directories:
16 context...:
17 /usr/share/racket/collects/racket/private/collect.rkt:11:53: fail
18 /usr/share/racket/collects/setup/getinfo.rkt:17:0: get-info
19 /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3
20 /usr/share/racket/collects/racket/cmdline.rkt:191:51
21 '|#%mzc:p
22
23 - [ ] Support redirects
24 - should permanent redirects update the feed somehow?
25 - [ ] Support time ranges (i.e. reading the timeline between given time points)
26 - [x] Implement rfc3339->epoch
27 - [x] Remove dependency on rfc3339-old
28 - [x] remove dependency on http-client
29 - [ ] optional text wrap
30 - [ ] write
31 - [x] caching (use cache by default, unless explicitly asked for update)
32 - [x] value --> cache
33 - [x] value <-- cache
34 requires: d command
35 - [ ] timeline limits
36 - [ ] feed set operations (perhaps better done externally?)
37 - [ ] timeline as a result of a query (feed set op + filter expressions)
38 - [ ] named timelines
39 - [ ] config files
40 - [ ] parse "following" from feed
41 - following = <nick> <uri>
42 - [x] parse mentions:
43 - [x] @<source.nick source.url>
44 - [x] @<source.url>
45 - [ ] highlight mentions
46 - [ ] filter on mentions
47 - [ ] highlight hashtags
48 - [ ] filter on hashtags
49 - [ ] hashtags as channels? initial hashtag special?
50 - [ ] query language
51 - [ ] console logger colors by level ('error)
52 - [ ] file logger ('debug)
53 - [-] commands:
54 - [x] r | read
55 - see timeline ops above
56 - [ ] w | write
57 - arg or stdin
58 - nick expand to URI
59 - [ ] q | query
60 - see timeline ops above
61 - see hashtag and channels above
62 - [x] d | download
63 - [x] u | upload
64 - calls user-configured command to upload user's own feed file to their server
65 Looks like a better CLI parser than "racket/cmdline": https://docs.racket-lang.org/natural-cli/
66 But it is no longer necessary now that I've figured out how to chain (command-line ..) calls.
67 - [ ] Suport immutable timelines
68 - store individual messages
69 - where?
70 - something like DBM or SQLite - faster
71 - filesystem - transparent, easily published - probably best
72 - [ ] block(chain/tree) of twtxts
73 - distributed twtxt.db
74 - each twtxt.txt is a ledger
75 - peers can verify states of ledgers
76 - peers can publish known nick->url mappings
77 - peers can vote on nick->url mappings
78 - we could break time periods into blocks
79 - how to handle the facts that many(most?) twtxt are unseen by peers
80 - longest X wins?
81 - [ ] Peer discovery
82 requires:
83 - parse mentions
84 - parse following
85 rough sketch from late 2019:
86
87 let read file =
88 ...
89 let write file peers =
90 ...
91 let fetch peer =
92 (* Fetch could mean either or both of:
93 * - fetch peer's we-are-twtxt.txt
94 * - fetch peer's twtxt.txt and extract mentioned peer URIs
95 * *)
96 ...
97 let test peers =
98 ...
99 let rec discover peers_old =
100 let peers_all =
101 Set.fold peers_old ~init:peers_old ~f:(fun peers p ->
102 match fetch p with
103 | Error _ ->
104 (* TODO: Should p be moved to down set here? *)
105 log_warning ...;
106 peers
107 | Ok peers_fetched ->
108 Set.union peers peers_fetched
109 )
110 in
111 if Set.empty (Set.diff peers_old peers_all) then
112 peers_all
113 else
114 discover peers_all
115 let rec loop interval peers_old =
116 let peers_all = discover peers_old in
117 let (peers_up, peers_down) = test peers_all in
118 write "peers-all.txt" peers_all;
119 write "peers-up.txt" peers_up;
120 write "peers-down.txt" peers_down;
121 sleep interval;
122 loop interval peers_all
123 let () =
124 loop (Sys.argv.(1)) (read "peers-all.txt")
This page took 0.070771 seconds and 4 git commands to generate.