From 5e8683ac22a1a7fca8003d06587b0b402a680b2a Mon Sep 17 00:00:00 2001 From: s-ol Date: Fri, 25 Oct 2019 17:10:36 +0200 Subject: rename diagrams in mmmfs/mmmfs --- .../mmmfs/ba_log/2019-10-24/text$markdown.md | 2 +- .../mmmfs/mmmfs/mainstream_fs/text$mermaid-graph | 11 -------- .../mmmfs/mmmfs/schematic/text$mermaid-graph | 21 --------------- root/articles/mmmfs/mmmfs/text$markdown.md | 30 +++------------------- .../mmmfs/mmmfs/tree_mainstream/text$mermaid-graph | 11 ++++++++ .../mmmfs/mmmfs/tree_mmmfs/text$mermaid-graph | 21 +++++++++++++++ .../mmmfs/type_coercion_graph/text$mermaid-graph | 22 ++++++++++++++++ 7 files changed, 58 insertions(+), 60 deletions(-) delete mode 100644 root/articles/mmmfs/mmmfs/mainstream_fs/text$mermaid-graph delete mode 100644 root/articles/mmmfs/mmmfs/schematic/text$mermaid-graph create mode 100644 root/articles/mmmfs/mmmfs/tree_mainstream/text$mermaid-graph create mode 100644 root/articles/mmmfs/mmmfs/tree_mmmfs/text$mermaid-graph create mode 100644 root/articles/mmmfs/mmmfs/type_coercion_graph/text$mermaid-graph (limited to 'root') diff --git a/root/articles/mmmfs/ba_log/2019-10-24/text$markdown.md b/root/articles/mmmfs/ba_log/2019-10-24/text$markdown.md index 516b18d..dbb838a 100644 --- a/root/articles/mmmfs/ba_log/2019-10-24/text$markdown.md +++ b/root/articles/mmmfs/ba_log/2019-10-24/text$markdown.md @@ -26,7 +26,7 @@ Once mermaid.js is done, the rendered content is added in the container element. Here is one of the two diagrams that I implemented the feature for, you can also follow the link through to the source and view the textual representation using the 'inspect' button. - + [mermaid]: https://mermaidjs.github.io/mermaid-live-editor/ [2ff6f90]: https://git.s-ol.nu/mmm/commit/2ff6f906c498c1b742dd8437a09c97ebe29a652a/ diff --git a/root/articles/mmmfs/mmmfs/mainstream_fs/text$mermaid-graph b/root/articles/mmmfs/mmmfs/mainstream_fs/text$mermaid-graph deleted file mode 100644 index 3227e47..0000000 --- a/root/articles/mmmfs/mmmfs/mainstream_fs/text$mermaid-graph +++ /dev/null @@ -1,11 +0,0 @@ -graph TD - Documents --> Movies --> m1{{A Movie.mp4}} - Documents --> Pictures --> vacation[Summer Vacation] - vacation --> v1{{1.jpg}} - vacation --> v2{{2.jpg}} - Pictures --> Projects - Projects --> p1{{1.jpg}} - Projects --> p2{{2.jpg}} - - classDef file fill:#f9f; - class m1,v1,v2,p1,p2 file; diff --git a/root/articles/mmmfs/mmmfs/schematic/text$mermaid-graph b/root/articles/mmmfs/mmmfs/schematic/text$mermaid-graph deleted file mode 100644 index 7b4f6f4..0000000 --- a/root/articles/mmmfs/mmmfs/schematic/text$mermaid-graph +++ /dev/null @@ -1,21 +0,0 @@ -graph TD - Documents --> Movies --> m1[A Movie.mp4] - m1 --> m1.f{{video/mp4}} - - Documents --> Pictures --> vacation[Summer Vacation] - vacation --> slideshow{{slideshow: script -> UI}} - vacation --> gallery{{gallery: script -> UI}} - vacation --> v1[1.jpg] - vacation --> v2[2.jpg] - v1 --> v1.f{{image/jpeg}} - v2 --> v2.f{{image/jpeg}} - - Pictures --> Projects - Projects --> p1[1.jpg] - Projects --> p2[2.jpg] - p1 --> p1.f{{image/jpeg}} - p2 --> p2.f{{image/jpeg}} - - classDef default fill:#f00,stroke:#333,stroke-width:4px; - classDef file fill:#f9f; - class slideshow,gallery,m1.f,v1.f,v2.f,p1.f,p2.f file; diff --git a/root/articles/mmmfs/mmmfs/text$markdown.md b/root/articles/mmmfs/mmmfs/text$markdown.md index f98f0fb..3ab6dee 100644 --- a/root/articles/mmmfs/mmmfs/text$markdown.md +++ b/root/articles/mmmfs/mmmfs/text$markdown.md @@ -7,7 +7,7 @@ This is accomplished using two major components, the *Type System and Coercion E The Fileder Model is the underlying unified data storage model. Like almost all current data storage and access models it is based fundamentally on the concept of a hierarchical tree-structure. -schematic view of an example tree in a mainstream filesystem +schematic view of an example tree in a mainstream filesystem In common filesystems as pictured, data can be organized hierarchically into *folders* (or *directories*), which serve only as containers of *files*, in which data is actually stored. @@ -36,7 +36,7 @@ Users renaming extensions: https://www.quora.com/What-happens-when-you-rename-a-jpg-to-a-png-file In mmmfs, the example above might look like this instead: -schematic view of an example mmmfs tree +schematic view of an example mmmfs tree Superficially, this may look quite similar: there is still only two types of nodes (referred to as *fileders* and *facets*), @@ -167,28 +167,4 @@ it continues search until it either completely exhausts the result space, or until all non-exhaustively searched paths are already higher than the maximum allowed path. This ensures that the optimal path is found, even if a more expensive path is found more quickly initially. -``` -graph LR -graph LR - md_lua[text/lua -> text/markdown] - md[text/markdown] - moon[text/moonscript -> fn -> mmm/dom] - lua[text/lua -> fn -> mmm/dom] - fn[fn -> mmm/dom] - dom[mmm/dom] - moon_url[URL -> text/moonscript -> fn -> mmm/dom] - lua_url[URL -> text/lua -> fn -> mmm/dom] - - md_lua -- cost: 1 --> md -- cost: 2 --> dom - moon -- cost: 5 --> moon_url - moon -- cost: 1 --> fn -- cost: 2 --> dom - moon -- cost: 2 --> lua -- cost: 5 --> lua_url - lua -- cost: 1 --> fn - moon_url -- cost: 10 --> dom - lua_url -- cost: 10 -->dom - - classDef given fill:#ada; - classDef path stroke:#ada; - linkStyle 3,1,0,4 stroke:#8d8,stroke-width:2px - class md_lua,moon given -``` +excerpt of the graph of conversion paths from two starting facets to mmm/dom diff --git a/root/articles/mmmfs/mmmfs/tree_mainstream/text$mermaid-graph b/root/articles/mmmfs/mmmfs/tree_mainstream/text$mermaid-graph new file mode 100644 index 0000000..3227e47 --- /dev/null +++ b/root/articles/mmmfs/mmmfs/tree_mainstream/text$mermaid-graph @@ -0,0 +1,11 @@ +graph TD + Documents --> Movies --> m1{{A Movie.mp4}} + Documents --> Pictures --> vacation[Summer Vacation] + vacation --> v1{{1.jpg}} + vacation --> v2{{2.jpg}} + Pictures --> Projects + Projects --> p1{{1.jpg}} + Projects --> p2{{2.jpg}} + + classDef file fill:#f9f; + class m1,v1,v2,p1,p2 file; diff --git a/root/articles/mmmfs/mmmfs/tree_mmmfs/text$mermaid-graph b/root/articles/mmmfs/mmmfs/tree_mmmfs/text$mermaid-graph new file mode 100644 index 0000000..7b4f6f4 --- /dev/null +++ b/root/articles/mmmfs/mmmfs/tree_mmmfs/text$mermaid-graph @@ -0,0 +1,21 @@ +graph TD + Documents --> Movies --> m1[A Movie.mp4] + m1 --> m1.f{{video/mp4}} + + Documents --> Pictures --> vacation[Summer Vacation] + vacation --> slideshow{{slideshow: script -> UI}} + vacation --> gallery{{gallery: script -> UI}} + vacation --> v1[1.jpg] + vacation --> v2[2.jpg] + v1 --> v1.f{{image/jpeg}} + v2 --> v2.f{{image/jpeg}} + + Pictures --> Projects + Projects --> p1[1.jpg] + Projects --> p2[2.jpg] + p1 --> p1.f{{image/jpeg}} + p2 --> p2.f{{image/jpeg}} + + classDef default fill:#f00,stroke:#333,stroke-width:4px; + classDef file fill:#f9f; + class slideshow,gallery,m1.f,v1.f,v2.f,p1.f,p2.f file; diff --git a/root/articles/mmmfs/mmmfs/type_coercion_graph/text$mermaid-graph b/root/articles/mmmfs/mmmfs/type_coercion_graph/text$mermaid-graph new file mode 100644 index 0000000..cf2cf1e --- /dev/null +++ b/root/articles/mmmfs/mmmfs/type_coercion_graph/text$mermaid-graph @@ -0,0 +1,22 @@ +graph LR + md_lua[text/lua -> text/markdown] + md[text/markdown] + moon[text/moonscript -> fn -> mmm/dom] + lua[text/lua -> fn -> mmm/dom] + fn[fn -> mmm/dom] + dom[mmm/dom] + moon_url[URL -> text/moonscript -> fn -> mmm/dom] + lua_url[URL -> text/lua -> fn -> mmm/dom] + + md_lua -- cost: 1 --> md -- cost: 2 --> dom + moon -- cost: 5 --> moon_url + moon -- cost: 1 --> fn -- cost: 2 --> dom + moon -- cost: 2 --> lua -- cost: 5 --> lua_url + lua -- cost: 1 --> fn + moon_url -- cost: 10 --> dom + lua_url -- cost: 10 -->dom + + classDef given fill:#ada; + classDef path stroke:#ada; + linkStyle 3,1,0,4 stroke:#8d8,stroke-width:2px + class md_lua,moon given -- cgit v1.2.3