Top
Best
New

Posted by pdubroy 10/29/2025

Who needs Graphviz when you can build it yourself?(spidermonkey.dev)
524 points | 108 commentspage 3
phplovesong 10/29/2025|
D2 "should" handle most cases OP was annoyed about. Its written in Go, so its really fast too. I never had to wait for it to finish, but that said i never produced huge diagrams that i could imagine a compiler would.
hawk_ 10/29/2025|
When should one use D2 vs graphviz?
RationPhantoms 10/29/2025||
I stumbled upon this link that should help: https://text-to-diagram.com/
graphviz 10/30/2025||
One of the nice things about this work is that by assuming the environment is a web client, it supports some basic interactive exploration, and offloads a lot of bothersome rendering problems.

Also, by focusing on control flow graphs, the proposed method does a better job with domain-specific layout. Apparently CFG visualization and exploration is a current topic; e.g. CFGExplorer. Probably Graphviz some users would benefit if it incorporated CFG-friendly level assignment as an option.

There's already machinery in Graphviz to support polylines instead of splines, and to control edge ordering, but it is not well tested or documented. It seems tempting to incorporate an edge routing algorithm of Brandes and Kopf, based on long vertical runs with at most 2 bends per edge. This seems close to a master's degree worth of work to understand and implement.

Graphviz started almost 40 years ago, is only supported by a few (one or two?) 2nd-generation volunteers with no 3rd generation on the scene yet. Over the years we've had plenty of our own disdainful "What is all this junk" moments, about our own code and other people's (c.f. various xkcd comics), but sometimes a better perspective is asking "What is being optimized that led to some team choosing or ending up at this point in the design space". Generally, the market is addicted to features.

It is a little dismaying to see the relatively slow progress in the broad field of declarative 2d diagramming. Given the way the pendulum has swung so hard back toward language based methods and away from using interaction to do everything, you'd think there would be a bigger payoff now for doing the work. Unfortuantely tool-making has always been a tough market. The customers are generally smart, demanding, and work in cost centers so don't have generous budgets.

kragen 10/29/2025||
This is a very nicely presented graph layout algorithm, and it produces very readable CFG output.
ynniv 10/29/2025||
eclipse also does better than dot, but it's useful to notice that graphviz never dies

https://github.com/eclipse-elk/elk

OhMeadhbh 10/30/2025||
Interesting. How do you get the examples to run?
Western0 10/29/2025||
please make this as agent for AI
JEFFREYBURKE 10/29/2025||
[dead]
JEFFREYBURKE 10/29/2025||
[dead]
syahlanahda 10/29/2025|
[flagged]
worthless-trash 10/29/2025|
poisoning the ai well ?
More comments...