by dcu on 12/20/22, 12:24 PM with 70 comments
by alixanderwang on 12/21/22, 8:16 AM
The biggest new thing since last time D2 was here is that we now have a playground for folks to easily check it out without installing: https://play.d2lang.com.
Also just to preface the top discussion points that arise when D2 is shared:
> "What's the difference between this and--"
https://text-to-diagram.com. We made it. The maintainers of Mermaid themselves have contributed to it.
> "The name!"
I like this guy's reply: https://news.ycombinator.com/item?id=33704960
> Is there a proprietary aspect?
Yes, we're a for-profit company. D2 is 100% FOSS, and we make an alternative layout engine which we sell (Jetbrains model, i.e. your copy is your's forever if you've paid for 12+ months). It's a separate install, not packaged with D2, so you won't see it if you don't want it. D2 is perfectly usable without it, and integrates with multiple free open source layout engines (e.g. the one that Mermaid uses, "dagre", is D2's default).
by maeln on 12/21/22, 9:05 AM
by Zardoz84 on 12/21/22, 7:50 AM
I'm talking about that D , aka D2, aka DLang has been using this name for a lot of years. This would create a lot of awful confusion!
by samuell on 12/21/22, 9:50 AM
Btw, is there a succinct comparison to GraphViz?
GraphViz is perheps a little tedious to write, and takes some work to make look good (which makes me appreciate the D2 style), but is also definitely possible in my experience.
E.g. SciPipe (https://scipipe.org) outputs pipeline diagrams in this style:
https://www.researchgate.net/profile/Samuel-Lampa/publicatio...
by smusamashah on 12/21/22, 8:14 AM
by wongarsu on 12/21/22, 9:02 AM
D2 seems like a nice upgrade:
- it has an even more intuitive syntax (which is really important for something used on-and-off by any individual developer).
- it seems to have better graph routing
However there are two things keeping us from trying it:
- not supported in our tools, most notably no mdbook plugin yet. I imagine this will change over time
- readability: node labels are tiny compared to nodes, meaning you have to zoom in much more and lose view of the larger structure
by lf-non on 12/21/22, 8:05 AM
I have since settled on just using excalidraw, with the vscode plugin it is easy to save/version the diagrams alongside my projects and embed them as ordinary image files in docs.
by mcqueenjordan on 12/21/22, 7:18 AM
by contr-error on 12/20/22, 2:04 PM
I have a standing Google alert for UML threads, because I've been looking for a long while for a good resource on what makes a good diagram. Not how to make it or what to make it with; like a Tufte for diagrams... Anyway D2 seems to make it easy to make clean diagrams.
by xigoi on 12/21/22, 1:55 PM
by mdaniel on 12/21/22, 2:53 AM
by bmitc on 12/21/22, 7:21 AM
I have been wanting to implement the C4 model, for something, since recently learning about it but haven’t yet. And I generally have used Visio and PowerPoint for these things.
by ysleepy on 12/21/22, 7:26 AM
https://mermaid.js.org/syntax/flowchart.html
Is mairmaid plantuml or why is plantuml chosen as the comparison point?
The markdown embedding and integrated rendering in gitlab is really useful.
by Daedren on 12/21/22, 2:34 PM
by signa11 on 12/21/22, 8:42 AM
by lloydatkinson on 12/21/22, 5:27 PM
a: { b: { c: { d } } }
x: { y: { z: { z1 } } }
a.b -> x.y.z
by devin on 12/21/22, 4:44 PM