Live data from Hacker News

D2: A new declarative language to turn text into diagrams

d2-lang.com

11–20 of 130 posts

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

#11

Looks cool. Any inherent limitations or performance issues with graphs that are very large? (20M+ elements)

Why uh. Would you expect that to work?

How much of your life were you planning to dedicate to scrolling from one side of the image to another?

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

#12

Looks cool. Any inherent limitations or performance issues with graphs that are very large? (20M+ elements)

Why uh. Would you expect that to work? How much of your life were you planning to dedicate to scrolling from one side of the image to another?

I think he expects to be able to zoom out.

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

#13
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Agree. To be honest, I'd find it useful if it were closed source but native installable tool that can convert text to diagram which then could be exported to image/pdf etc.

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

#14
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Would you believe me if I said this was just an ad and you wasted time on it?

Just because HN isn't Reddit doesn't mean ads aren't thrown in with all the curated "content"

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

#16
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Also, to me this was a reminder of the importance of context and assumptions in good communication. Never having heard of this org, I clicked the link for this post, saw the top-level blurb describing the project and assumed that a 'language' which generates diagrams from declarations would be something I could _run_. I clicked on the 'Getting Started' section and was annoyed that there was no 'Installation' section. I started from a context that inclined me to think of this as a stand-alone project which ought to have certain characteristics.

I think the author of this page started with the assumption that of _course_ given their business and product, a 'language' for diagrams is only giving users access to something that maps on to whatever internal representation their tool already uses, and allows technically inclined users to work with text and fewer clicks. To them, the assumption seems to have been that readers will already be users of their product, and the assumption that the 'language' is built into their tool _and nowhere else_ is so far in the background that it's only somewhat obliquely addressed as the last question in a FAQ.

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

#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.

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

#18
post #8

See also: https://structurizr.com/ - diagrams as code https://c4model.com/ - C4 model for visualising software architecture The consistency of structurizr + c4 is great for sharing information across scaled teams of teams.

also:

https://pikchr.org/

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

#19
post #4

The last question in the FAQ makes it clear that this can only be used in the context of their account-based online tool. Their free offering literally says "3 diagrams". Above this, the FAQ tries to compare their tool to Mermaid, Graphviz, PlantUML which are all open source, locally runnable, etc. Their comparison totally skips the fact that, because D2 can only be used in their service, a broad number of use cases…

Services as a software substitute...

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

#20

Time for someone to copy the good parts and implement them as FOSS. Good luck getting enterprises to pay for diagrams.

At the end of the video the presenter mentions that they plan to open source the language when it reaches a greater stage of maturity.
Post reply on HN