Commit Graph

17 Commits

Author SHA1 Message Date
Kartik K. Agaram b56590ddc9 some more reorg of the standard library
Now life.tlv and gemini.tlv are also minimizing how much of the standard
library they pull in, just to be easy to read.
2022-03-27 11:42:19 -07:00
Kartik K. Agaram 14446eefc4 helper: count permutations 2022-03-27 11:24:56 -07:00
Kartik K. Agaram dd7da2c62a helper: count 2022-03-27 10:53:41 -07:00
Kartik K. Agaram c7d3037e9d graphviz: show topology in multiple lines 2022-03-19 21:13:55 -07:00
Kartik K. Agaram fddbe08fc8 graphviz: for basic stats, show all nodes ordered
The ordering is topological; nodes come before their dependencies.

Also some more helpful functions in the template for new apps.
2022-03-19 16:59:30 -07:00
Kartik K. Agaram 7859317ece standardize common helpers across all apps
In particular, I merged take_out in anagrams.tlv with all_but in
graphviz.
2022-03-19 00:19:58 -07:00
Kartik K. Agaram ad0ce8b83e graphviz: second sketch to present the Focus
In the process we fix some bugs in how we compare tables and count nodes
in the graph.
2022-03-19 00:03:26 -07:00
Kartik K. Agaram b94f07e0b5 . 2022-03-18 23:48:39 -07:00
Kartik K. Agaram aed89b8d35 graphviz: draft notion of nodes in 'focus'
Now the REPL isn't about deciding what to calculate, but just what nodes
to calculate it for.
2022-03-18 21:22:18 -07:00
Kartik K. Agaram c21cefa888 idiom: table.insert for appending
Stop using arr[#arr+1].
2022-03-18 20:55:07 -07:00
Kartik K. Agaram a05f713dc1 graphviz: tweak data structure slightly
A node's edges contain an associative array of target nodes rather than
a linear array.

This way we automatically dedup edges when we load multiple graphs.
2022-03-18 18:02:07 -07:00
Kartik K. Agaram 03a3883555 graphviz: read multiple .dot files
It's useful to be able to import dependencies for multiple packages at
once, so that we can see common dependencies.
2022-03-18 17:58:25 -07:00
Kartik K. Agaram 7586b773d9 graphviz: sketch of the dashboard 2022-03-18 17:40:18 -07:00
Kartik K. Agaram 06615231ae graphviz: done parsing directed graphs
This is mostly what I want since I'm interested in parsing the output of
debtree.
2022-03-18 17:09:47 -07:00
Kartik K. Agaram 7dc0928f52 graphviz: show error when lacking permissions 2022-03-18 10:43:48 -07:00
Kartik K. Agaram 29d53c21ac graphviz: don't interpret substrings as regexes 2022-03-18 10:43:48 -07:00
Kartik K. Agaram 6c85513499 beginnings of a parser for .dot files
I'm following https://graphviz.org/doc/info/lang.html. Just tokenization
so far.
2022-03-18 10:39:56 -07:00