Live data from Hacker News

The Xkcd thing, now interactive

editor.p5js.org

41–50 of 167 posts

Re: The Xkcd thing, now interactive

#42
post #8

Earlier quoted context omitted.

Was about to comment the same. It's a common mistake/gotcha.

Possibly dumb question, but does that still hold inside p5js?

p5 is just a wrapper that adds the setup() and draw() functions, so yes

Re: The Xkcd thing, now interactive

#45
post #38

I love that the initial state itself isn't stable. The world keeps moving around us. Can't choose staying still.

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.

Re: The Xkcd thing, now interactive

#46
post #43

Is this website intended to break HN on Android? I've never had a website lock up the HN app like this. I couldn't back out, and I was stuck in a loop when the app restarted on the same page.

App?

There are a few HN readers out there, but none of them are official as far as I know.

Re: The Xkcd thing, now interactive

#49
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.

For me, bottom blocks stay still while those on the very top fall down.

Re: The Xkcd thing, now interactive

#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 values.

Post reply on HN