14 - [-] Convert to Typed Racket
15 - [x] build executable (otherwise too-slow)
22 - see timeline ops above
27 - see timeline ops above
28 - see hashtag and channels above
31 - [ ] all - use all known peers
32 - [ ] fast - all except peers known to be slow or unavailable
35 - calls user-configured command to upload user's own timeline file to their server
36 Looks like a better CLI parser than "racket/cmdline": https://docs.racket-lang.org/natural-cli/
37 But it is no longer necessary now that I've figured out how to chain (command-line ..) calls.
44 - [-] parse peer refs from peer timelines
45 - [x] mentions from timeline messages
46 - [x] @<source.nick source.url>
48 - [x] "following" from timeline comments: # following = <nick> <uri>
49 - [ ] Parse User-Agent web access logs.
51 Rough sketch from late 2019:
55 let write file peers =
58 (* Fetch could mean either or both of:
59 * - fetch peer's we-are-twtxt.txt
60 * - fetch peer's twtxt.txt and extract mentioned peer URIs
65 let rec discover peers_old =
67 Set.fold peers_old ~init:peers_old ~f:(fun peers p ->
70 (* TODO: Should p be moved to down set here? *)
74 Set.union peers peers_fetched
77 if Set.empty (Set.diff peers_old peers_all) then
81 let rec loop interval peers_old =
82 let peers_all = discover peers_old in
83 let (peers_up, peers_down) = test peers_all in
84 write "peers-all.txt" peers_all;
85 write "peers-up.txt" peers_up;
86 write "peers-down.txt" peers_down;
88 loop interval peers_all
90 loop (Sys.argv.(1)) (read "peers-all.txt")
94 - [ ] nick tiebreaker(s)
95 - [ ] some sort of a hash of URI?
96 - [ ] angry-purple-tiger kind if thingie?
97 - [ ] P2P nick registration?
98 - [ ] Peers vote by claiming to have seen a nick->uri mapping?
99 The inherent race condition would be a feature, since all user name
100 registrations are races.
103 - [ ] download times per peer
104 - [ ] Support redirects
105 - should permanent redirects update the peer ref somehow?
106 - [ ] Support time ranges (i.e. reading the timeline between given time points)
107 - [ ] optional text wrap
109 - [ ] timeline limits
110 - [ ] peer refs set operations (perhaps better done externally?)
111 - [ ] timeline as a result of a query (peer ref set op + filter expressions)
113 - [ ] highlight mentions
114 - [ ] filter on mentions
115 - [ ] highlight hashtags
116 - [ ] filter on hashtags
117 - [ ] hashtags as channels? initial hashtag special?
119 - [ ] console logger colors by level ('error)
120 - [ ] file logger ('debug)
121 - [ ] Suport immutable timelines
122 - store individual messages
124 - something like DBM or SQLite - faster
125 - filesystem - transparent, easily published - probably best
126 - [ ] block(chain/tree) of twtxts
127 - distributed twtxt.db
128 - each twtxt.txt is a ledger
129 - peers can verify states of ledgers
130 - peers can publish known nick->url mappings
131 - peers can vote on nick->url mappings
132 - we could break time periods into blocks
133 - how to handle the facts that many(most?) twtxt are unseen by peers
138 - [x] caching (use cache by default, unless explicitly asked for update)
139 - [x] value --> cache
140 - [x] value <-- cache
142 - [x] Logger sync before exit.
143 - [x] Implement rfc3339->epoch
144 - [x] Remove dependency on rfc3339-old
145 - [x] remove dependency on http-client
146 - [x] Build executable
147 Implies fix of "collection not found" when executing the built executable
148 outside the source directory:
150 collection-path: collection not found
152 in collection directories:
154 /usr/share/racket/collects/racket/private/collect.rkt:11:53: fail
155 /usr/share/racket/collects/setup/getinfo.rkt:17:0: get-info
156 /usr/share/racket/collects/racket/contract/private/arrow-val-first.rkt:555:3
157 /usr/share/racket/collects/racket/cmdline.rkt:191:51
163 - [~] named timelines/peer-sets
164 REASON: That is basically files of peers, which we already support.