News for hackers. Stuff that matters.
Re:Ripgrep code review by alschwalm on Saturday December 03, 2016 @09:32PM (#13098514)
I'm a fan of the graphics as well. Does anyone know what they were made with? I see the org-mode reference at the bottom of the page, but I assume that doesn't include the images.
Re:Ripgrep code review by quodlibetor on Saturday December 03, 2016 @09:58PM (#13098583)
Darn, I was hoping that they were created with some custom [plantuml] theme that I could steal, but it seems like they're [manually created] with inkscape.

[plantuml]: http://plantuml.com/

[manually created]: view-source:http://blog.mbrt.it/2016-12-01-ripgrep-code-review/crates.sv...

Re:Ripgrep code review by jjm on Sunday December 04, 2016 @12:11AM (#13098874)
You could get close with graphiz.

  digraph G {
    "Ripgrep" -> "ignore"
    "ignore" -> "globset"
    "Ripgrep" -> "globset"
    "Ripgrep" -> "grep"
  }
http://www.webgraphviz.com

You could also set color, note I didn't do that in this example.

Re:Ripgrep code review by quodlibetor on Sunday December 04, 2016 @02:29AM (#13099166)
Plantuml is (I think) built on top of graphviz. In any case the syntax is extraordinarily similar. This[1] is similar to the first example:

  @startuml
  component ripgrep
  component ignore
  component globset
  component grep

  ripgrep --> ignore
  ignore --> globset
  ripgrep --> globset
  ripgrep --> grep
  @enduml
You can get the structure right, and easily, but those beautiful icons are not something that I know how to create, and the 90-degree turns are I think actually impossible.

The fact that it is so elegantly expressed in plantuml but it's still so ugly (by default) makes me really wish for a theme that's as nice as the hand-created diagram the author wrote.

[1]: http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuU9ApiyjoCz...

Re:Ripgrep code review by mbrt on Monday December 05, 2016 @01:30PM (#13107870)
Yes, I used Inkscape, but I'm not a designer, so I bet you can do something similar with a little bit of effort :) I'm not a fan of high level tools... they usually give a correct result, but a crappy look and feel...