by alixanderwang · 3y ago · 0 comments
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).
I'm tempted to give it a shot, but i don't get what the paid version would actually net me. I'm toying with the Playground now, and in many (most?) cases the TALA version (which i think is the paid version?) seems identical to the Dagre version (Mermaid, i think?)
I'm also having difficulty finding where i'd even buy it. Hmm
edit: Ah https://terrastruct.com/tala/ might have some of my answers
Eg: https://text-to-diagram.com/?example=chess&b=d2&layout_b=dag...
I have an improvement suggestion for the playground: have some pre-defined examples I can open from a menu and mess around with.
Did I understand correctly that, in order to use custom fonts, one has to recompile the code with appropriate .tff files? It's shortly mentioned [1].
[1] https://github.com/terrastruct/d2/tree/master/d2renderers/d2...
Re fonts: that README is for contributing fonts. I'm not sure what the best solution is for custom fonts -- whether to just specify the name of a system font, a google font, point to a directory of local TTFs. Some discussion going on here: https://github.com/terrastruct/d2/discussions/132
D2 is that fake corporate "open-source" intended to sucker programmers into tying their work into proprietary ecosystem.
Can you cite where this is stated? Dagre and ELK can produce preferable diagrams depending on conditions.
You can be mad that something isn't free for you, but again, I don't see how you could be misled, as the non-free part is stated upfront everywhere D2 pops up.
https://binaries.templates.cdn.office.net/support/templates/...
https://play.d2lang.com/?script=VJDNbqswEIX3fopZ3R34J3EuRUqr...
Formatting is completely different. Each box is a picture on the left with text on the right. Text is two lines, bold text above and regular text below. this can be reproduced with HTML labels in Graphviz.
Lines do not look similar too. They are round and not merged. It's concentrate in Graphviz. https://graphviz.org/docs/attrs/concentrate/
I followed the submission link but found no details of pricing on that site.
(apologies for this hidden path. trying to strike the balance of making it findable for those who search for it while hidden to those who just want free.)