Live data from Hacker News

D2: A new declarative language to turn text into diagrams

d2-lang.com

111–120 of 130 posts

Re: D2: A new declarative language to turn text into diagrams

#111
post #101

Earlier quoted context omitted.

Yikes. This looks like an amazing idea, but the online limitation kneecaps it. When I want to make diagrams graphically, I use diagrams.net. when I want to make diagrams from code, I use PIC. What else do people use? PIC works pretty well, but it has its limits and it's ancient.

could you share a link to PIC ?

https://pikchr.org/home/doc/trunk/homepage.md

An alternative implementation with good docs.

Re: D2: A new declarative language to turn text into diagrams

#115
post #17

I am taken a little aback by the name. There is, of course, already the D programming language, which has even had a major version number of 2 for quite some time. It also brings to mind the JavaScript library d3, which, while not strictly for making diagrams, can easily lend itself to the purpose. Calling this thing "D2" seems potentially confusing.

I wish developers would stop with the one or two letter names for their products. In most cases there is already another product with the same name and you just cannot do a websearch for it without a hassle.

Re: D2: A new declarative language to turn text into diagrams

#116
post #29

https://plantuml.com/ is free and nice. Plays well with Markdown and C4 diagrams. The only UML-specific diagram type I use is the sequence diagram but that is very useful IMHO.

Here is a github repo embedding PlantUML in the Markdown: https://github.com/jonashackt/plantuml-markdown

Re: D2: A new declarative language to turn text into diagrams

#117

I've used Plantuml extensively, and still use it a bit, now and then. I don't remember ever needing or even wanting bi-directional editing. There's a lot of interesting things in terms of syntax and semantics here, but I really do not see WHY they are tackling a very hard problem on top of an already not easy one.

a low-hanging motivation: how do you choose colors for nodes?

I don't. I just care about boxes and lines, most of the time. When I need to differentiate between types of boxes, I use shapes or stereotypes.

Re: D2: A new declarative language to turn text into diagrams

#118
post #40

Earlier quoted context omitted.

This is a complete non starter for any regulated industry. Shame. Mermaid works almost okay and often looks like garbage. I wish there was an open source effort somewhere to do better, or even a paid locally runnable tool that has no service connections.

It's why I keep falling back to excalidraw over tools like mermaid with auto-layout. When I need to communicate an idea, often I really need to fuss with layout in order to get my point across, and having the control to drag things around is the only way to get there.

Problem with non automated tools is that editing becomes a big issue since you have to reflow big parts of the diagram to make an addition. This is always my biggest issue with any diagram, the fact that they are evolving.

Re: D2: A new declarative language to turn text into diagrams

#119
post #68

Earlier quoted context omitted.

> I posted this on Reddit to get some feedback > This reveal caught us off guard Hmmm

hah, so the line of logic was: "let's post on reddit to get some low stakes feedback in preparation for a HN launch"

I can buy this reasoning. This crowd gives solid, tough, but highly constructive feedback.

I, like others, will keep an eye out for when it becomes open source mainly to see which license.

Re: D2: A new declarative language to turn text into diagrams

#120

Earlier quoted context omitted.

actually the effective limit seems to be around 50 nodes

Limit of what exactly? I've made much bigger than 50 nodes SVG-graphs using GV, and styled them with probably 50+ CSS styles and animated more than 50 nodes. So, could you please elaborate?

50 nodes may be close the limit of what a human can understand.
Post reply on HN