Live data from Hacker News

The Xkcd thing, now interactive

editor.p5js.org

51–60 of 167 posts

Re: The Xkcd thing, now interactive

#53
post #50

It'd be really cool (and probably useful) if someone could figure out a way to generate diagrams like this for any software project. You'd first need to figure out a way to generate a complete dependency tree. For each box, I interpret its height as a measure of its complexity and its width as a measure of the support it receives. The hardest part would probably be figuring out a way to quantitatively measure those v…

One naiive solution could be to cloc the dependency and use the size as the height, and fetch number of github contributors as width

Re: The Xkcd thing, now interactive

#58
post #45
post #38

Earlier quoted context omitted.

Interesting! It's stable on my machine. I wonder if this is due to floating-point differences.

On my machine, the initial state isn't simulated. It only begins simulation when I touch it. At which point, the weight causes the bottom blocks to intersect each other significantly.

Maybe that's what I'm seeing.

Re: The Xkcd thing, now interactive

#60
post #45
post #38

Earlier quoted context omitted.

Interesting! It's stable on my machine. I wonder if this is due to floating-point differences.

On my machine, the initial state isn't simulated. It only begins simulation when I touch it. At which point, the weight causes the bottom blocks to intersect each other significantly.

One more pedantic nitpick: when a block gets wedged between two blocks at an angle, it gets slowly pushed out, although there is a lot of weight resting on the top block. That would be realistic only (maybe) if the blocks were made of ice, but not for other materials...
Post reply on HN