Fix missing return type
[tt.git] / TODO
CommitLineData
a78e83b8 1# vim:sw=2:sts=2:
f2ecd14e
SK
2- [ ] Output formats:
3 - [x] text long
4 - [x] text short
5 - [ ] HTML
6 - [ ] JSON
33cf2848
SK
7- [ ] Convert to Typed Racket
8 - requires: build executable (otherwise too slow)
3c9c8266
SK
9- [x] Build executable
10 Implies fix of "collection not found" when executing the built executable
33cf2848
SK
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
d8b0e8b4
SK
23- [ ] Support redirects
24 - should permanent redirects update the feed somehow?
c3d5dd06 25- [ ] Support time ranges (i.e. reading the timeline between given time points)
3877a0c4 26- [x] Implement rfc3339->epoch
c2a29873 27- [x] Remove dependency on rfc3339-old
9c464d95 28- [x] remove dependency on http-client
d96fa613
SK
29- [ ] optional text wrap
30- [ ] write
4214c0f3 31- [x] caching (use cache by default, unless explicitly asked for update)
d96fa613
SK
32 - [x] value --> cache
33 - [x] value <-- cache
24f1f64b 34 requires: d command
d96fa613
SK
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>
13c11724
SK
42- [x] parse mentions:
43 - [x] @<source.nick source.url>
44 - [x] @<source.url>
d96fa613
SK
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)
24f1f64b
SK
53- [-] commands:
54 - [x] r | read
d96fa613 55 - see timeline ops above
24f1f64b 56 - [ ] w | write
d96fa613
SK
57 - arg or stdin
58 - nick expand to URI
24f1f64b 59 - [ ] q | query
d96fa613
SK
60 - see timeline ops above
61 - see hashtag and channels above
4214c0f3 62 - [x] d | download
3a4b2233 63 - [x] u | upload
d96fa613 64 - calls user-configured command to upload user's own feed file to their server
24f1f64b
SK
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.
3c3cd6cc 67- [ ] Suport immutable timelines
8a2d166a
SK
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?
c91a1ca9
SK
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.043734 seconds and 4 git commands to generate.