3 ms·
Because you will end up with unwieldly graphs like these: https://twitter.com/chewxy/status/433807908875145216 https://twitter.com/chewxy/status/43380790887514
by chewxy 10y ago
Because you will end up with unwieldly graphs like these:
https://twitter.com/chewxy/status/433807908875145216 https://twitter.com/chewxy/status/433807908875145216
https://twitter.com/chewxy/status/433811541373116416 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
- qznc 10y agoGraphviz/dot sucks. Here is yComp for the same function: https://imgur.com/a/5eP9k 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.