Live data from Hacker News

Draw an iceberg and see how it would float in water

joshdata.me

51–60 of 179 posts

Re: Draw an iceberg and see how it would float in water

#51

Sidenote: Good demonstration that even in 2021 jQuery has its place as the right tool for the job: quickly hacking together a small project.

jQuery would not be necessary for a project like this, browser APIs are far enough along that many of its features are no longer needed.

Re: Draw an iceberg and see how it would float in water

#52

Sidenote: Good demonstration that even in 2021 jQuery has its place as the right tool for the job: quickly hacking together a small project.

jQuery would not be necessary for a project like this, browser APIs are far enough along that many of its features are no longer needed.

And yet, what is harder to attain and yet more necessary than the knowledge and impetus to implement such a project?

It may not be necessary, but the specific tools are't the part that are necessary.

Re: Draw an iceberg and see how it would float in water

#53
post #30

Hmm... what determines whether an iceberg would flip over? I tried drawing bowl-shaped icebergs, one upright and one upside-down. Both stayed in their general orientation without flipping over.

For many shapes, there are multiple points of stability! If you drew a cross, you'd find that it could stabilize on any two corners. Stability of a floating object is determined by a "righting arm": A torque produced by the horizontal offset between the object's center of mass, and the center of buoyancy (The center of mass of the portion underwater). Sometimes, that torque produces "positive stability" -- When the o…

When it comes to stability there is a crucial handicap between ships and icebergs. The former have non-uniform mass, so it is possible for a ship's center of mass to be below its center of buoyancy. That's why ships have ballast - it lowers the center of mass relative to the center of buoyancy.

An iceberg is uniform, so its center of buoyancy is always below its center of mass. This makes its stability trickier, as it relies on changes in the shape of the buoyancy to follow the center of mass when disturbed.

A ship is a pendulum, an iceberg is an upright stick balanced on one's nose :)

Re: Draw an iceberg and see how it would float in water

#57
post #27

Great page! Was this inspired by https://twitter.com/GlacialMeg/status/1362557149147058178 ? Try drawing the infinity symbol under water - mine jumped out of the water! It even jumped off screen, and ended up like an 8, half submerged, half above water. My other attempt hit the water/air boundary from below, and bounced back towards the bottom, off screen again, and reappeared in a bit.

Clearly yes. The page links to that exact tweet, and says it was the inspiration.

My bad, I didn't notice the scroll bar.

The only text I saw "above the fold" was the one above the drawing surface.

Re: Draw an iceberg and see how it would float in water

#58
post #52

Earlier quoted context omitted.

jQuery would not be necessary for a project like this, browser APIs are far enough along that many of its features are no longer needed.

And yet, what is harder to attain and yet more necessary than the knowledge and impetus to implement such a project? It may not be necessary, but the specific tools are't the part that are necessary.

It’s interesting that proponents of a simpler web argue in favor of Jquery for a use case where jquery is in fact very easy to live without. One would almost think dogmatic thinking is involved.
Post reply on HN