News for hackers. Stuff that matters.
Re:Looking at your program’s structure in Go 1.7 by chewxy on Wednesday August 17, 2016 @08:13AM (#12304052)
Because you will end up with unwieldly graphs like these:

https://twitter.com/chewxy/status/433807908875145216

https://twitter.com/chewxy/status/433811541373116416

This is from an old JITting Javascript engine I wrote in Go... a simple program like this:

    function clamp(x, min, max) {
 	y = 2
 	if (x < min) {
 		x = min
 	} else if (x > max) {
 		x = max
 	}
 	return x
    }
can generate pngs that are thousands of pixels wide and high (depending on what the nodesep and ranksep were set).

I wish I did think of the visualization that Go uses. That's fantastic compared to graphs

Re:Looking at your program’s structure in Go 1.7 by qznc on Friday August 19, 2016 @07:19AM (#12319263)
Graphviz/dot sucks. Here is yComp for the same function: https://imgur.com/a/5eP9k

The blocks and red edges represent the control flow graph and I can easily see the two if structures.

It lets you zoom. Mouseover nodes to get more details.