Live data from Hacker News

D2 (text to diagram tool) now supports ASCII renders

d2lang.com

51–60 of 74 posts

Re: D2 (text to diagram tool) now supports ASCII renders

#51
post #47

1. how does this add value over mermaid? I like how it looks and works, but is there any real reason to switch over. 2. in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

It's a diagramming tool

> I like how it looks and works

Those are "real reasons".

Re: D2 (text to diagram tool) now supports ASCII renders

#52
post #47

1. how does this add value over mermaid? I like how it looks and works, but is there any real reason to switch over. 2. in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

> 2. in my opinion, what all these tools are missing is the ability to add a manual „corrective“ layer, meaning to be able to adjust the automatically created output by moving and resizing boxes by a certain x/y amount.

Something like Struturizr? https://structurizr.com/

Re: D2 (text to diagram tool) now supports ASCII renders

#53

Earlier quoted context omitted.

Unfortunately not, I've tried reaching out to GH folks but no dice. However it should be noted that d2.js, which enables client-side renders, didn't really become usable until this month and still isn't really officially released (kind of hidden). So, we'll see if the official release (soon™) changes things. If any D2-enjoyers reading this knows anyone on the GH frontend team, plz bend their ear =)

Good luck, it would be fantastic if you can get it accepted as a mermaid alternative; it's much, much niceer than mermaid, both the visual result, and the language. I've used D2 heavily for a couple of years or so now. It's really fantastic. I hope you're paid product is healthy. Sequence diagrams are my most common diagram type by some way I think. And I seem to always use the sketch rendering over the last year. Wh…

The linking you can do already if I understand the request correctly: https://play.d2lang.com/?script=Ks5ILEi1UihOLSxNzUtOjU_JTEwv...

Okay, we'll put those sequence diagram improvements in our sprint for next release.

Re: D2 (text to diagram tool) now supports ASCII renders

#54
I dont think I've come across this one.

I have experimented with other text-based diagrams - but this certainly looks interesting.

While I am always forced (at workplace) to use a GUI-based diagram like Visio... I see more merit to this one.

Definitely worth a play with my home-based or own business setups.

Re: D2 (text to diagram tool) now supports ASCII renders

#55

I dont think I've come across this one. I have experimented with other text-based diagrams - but this certainly looks interesting. While I am always forced (at workplace) to use a GUI-based diagram like Visio... I see more merit to this one. Definitely worth a play with my home-based or own business setups.

Further update -- I see an emacs plugin. :-)

I am happy. Something to play with tonight.

Re: D2 (text to diagram tool) now supports ASCII renders

#56

I maintain a list of browser based text to diagram tools (which I have shared a number of times here). I recently realised that the online version of D2 does NOT work solely in browser, diagram's are generated by backend servers. Can D2 work in browser by itself? Does the extension mentioned in the post work offline? (lots of tools do)

Clearly things have changed a bit recently but since a long time I use D2 exclusively locally. The binary has a watch mode that starts a web server and pushes changes on save so you can interactively develop your diagrams and e.g. share the web browser over a video conference or such.

I don't know about that Mermaid thing others are talking about in the thread so I can't compare but D2 is very easy to learn the basics of and get started with. Like a few minutes from install to your first diagram kind of easy.

Re: D2 (text to diagram tool) now supports ASCII renders

#57
post #6

Not to be confused with The D Programming Language, which has a similar domain (dlang.org), and is currently on version 2.

I will admit, I thought this was originally about D lang - I am still glad I clicked as I also have an interest in text-based diagrams.

I dont really using Dlang now - but still interested in the language. This click was a win-win either way!

Re: D2 (text to diagram tool) now supports ASCII renders

#59
post #27

Earlier quoted context omitted.

How on earth can it be weird that a vim extension is written in vimscript?!

Well imagine a Java extension being written in Javascript...

Don't have to imagine, it's been a thing since Java 8.

https://www.baeldung.com/java-nashorn

Re: D2 (text to diagram tool) now supports ASCII renders

#60

I dont think I've come across this one. I have experimented with other text-based diagrams - but this certainly looks interesting. While I am always forced (at workplace) to use a GUI-based diagram like Visio... I see more merit to this one. Definitely worth a play with my home-based or own business setups.

Further update -- I see an emacs plugin. :-) I am happy. Something to play with tonight.

Using it - better: used it. It's outdated, doesn't understand key words of recent D2 - versions and doesn't integrate well with emacs, i.e. default key bindings are IMHO not very emacsish.
Post reply on HN