5 ms·
There are also plugins for graphviz, which is a more structured language. I use it for documenting states in my code, e.g. https://marketplace.visualstudio.com/
by tgv 7y ago
There are also plugins for graphviz, which is a more structured language. I use it for documenting states in my code, e.g. https://marketplace.visualstudio.com/items?itemName=tintinweb.graphviz-interactive-preview https://marketplace.visualstudio.com/items?itemName=tintinwe... and https://marketplace.visualstudio.com/items?itemName=joaompinto.vscode-graphviz https://marketplace.visualstudio.com/items?itemName=joaompin.... Since graphviz is old, there are also command line tools to render the output.
For more information about graphviz: https://graphviz.org/ https://graphviz.org/
- rraghur 7y agoI use asciidoc extension by the same author. It works well with kroki.io so you can do a wide variety of diagrams (including graphviz, plant uml and others) https://github.com/asciidoctor/asciidoctor-vscode/blob/master/README.md https://github.com/asciidoctor/asciidoctor-vscode/blob/maste...
- 2mol 7y agoHow do the both of you make graphviz diagrams look decent? I often resign myself to using it for generating the first structure, and then laying it out better in an svg editor. Of course that way I lose some of the maintainability of it.
- minxomat 7y agoYeah really looking for a tool that produces output as nice as e.g. Dat documentation diagrams
- jiveturkey 7y agoYou're looking for a human illustrator, then. :D
- TeMPOraL 7y agoSeconded. I had to brush off Graphviz today; I dumped a dependency graph from CMake into a series of dot diagrams, and now I'm trying to figure out how to force the SVG generated by dot to space itself out - by default, the edges are so densely packed that you can't see anything on the diagram :/.
- thiht 7y agoWhy is it that on HN when somebody posts a link to a cool project, the top comment is systematically something like "here's an alternative"? Can we just talk about the posted link instead of just stealing the light?
- Etheryte 7y agoPersonally I think this isn't a good way to look at it. Nothing exists in a void and to contextualize things, it's often useful to compare it to other similar things. In the startup world, it's often explained in the vein of "Uber for X" type of companies. Since Graphviz is one of the oldest and most widely used pieces of software in this space it makes sense to compare any new developments against it.
- thiht 7y agoOh don't get me wrong, comparisons are good. This is not a comparison though, it's a redirection, and this is very rude.
- pydry 7y agoIt seems more like a comparison to me, although not a very objective one.
- adverbly 7y agoI disagree. Either the OP shared because they found a useful tool and wanted others to be able to know too, in which case sharing another related tool is in the spirit of what OP intended. Or, OP wanted to use HN as a sales platform to pitch their work. In this case, sorry pal but HN is not your personal marketing megaphone. You want to put something out into the public here, you should expect it to be scrutinized and compared against alternatives. IMO, HN as a platform should put readers first, not authors. Edit: Just want to add that in this particular case, I think both the draw.io and graph viz plugins are awesome. Love to see these kinds of tools.
- Terretta 7y agoOn the contrary, if you are looking for ‘diagrams as code’ you likely don’t mean postscript, SVG, or XML of arbitrary lines and shapes. You likely mean something structured and readable, like ‘literate diagramming’. The top comment’s first phrase explained that rationale.
- davidjgraph 7y agoThe draw.io desktop app [0] also a CLI for output rendering. [0] https://github.com/jgraph/drawio-desktop https://github.com/jgraph/drawio-desktop
- seanmcdirmid 7y agoGraphviz has been the old standby forever. I had an internship in 1999 where my mentor used graphviz to debug the compiler he was working on. Everyone should have this tool in their debugging tricks library.
- jjice 7y agoI'm actually doing the same thing right now. I had been using a textual output to make sure my AST was correct, but that is a real pain. Graphviz made it extremely easy it is so much easier to read.
- zoomablemind 7y agoCould you expand on the graphviz use in dbg context (or ref it)? Is it to draw the call graph? How it's actualy done, with printfs or some lib?
- tmh88j 7y agoI use it with kcachegrind for profiling, the source being output from xdebug. https://xdebug.org/docs/profiler https://xdebug.org/docs/profiler http://kcachegrind.sourceforge.net/html/Home.html http://kcachegrind.sourceforge.net/html/Home.html
- seanmcdirmid 7y agoYou can use it for whatever you want. Instead of dumping text to a log file, you can dump out graph nodes and connection info to a dot file instead, to then be laid out and rendered into a graph by dotty or whatever else you want to use. It doesn’t require any extra libraries.
- TeMPOraL 7y agoI googled for "dotty" mentioned downthread (didn't know about this tool) and found this PDF: https://www.graphviz.org/pdf/dottyguide.pdf https://www.graphviz.org/pdf/dottyguide.pdf. Section 3.2.2 ldbx, on page 19, (21 in PDF), gives an example of using graphs for debugging a C application.
- fulldecent2 7y agoIs that a 721 token in there? :blush: