Live data from Hacker News

World

aem1k.com

41–50 of 102 posts

Re: World

#42

Earlier quoted context omitted.

There is another program arranged in a similar circular shape that calculated pi experimentally using it's own source code as the circle to test.

Found it here http://www.cise.ufl.edu/~manuel/obfuscate/pi.c That's awesome.

There's a lot of talk about scalable code floating around, but it's rare to see anything as scalable as this code. Do you want more precision in your pi approximation? Then you literally scale the code up. There's few people who can truly claim to have written scalable code like that.

Re: World

#43
Amazing stuff. One quibble; There's a XXXXX in the middle of the South Pacific, midway between Australia and Chile. Whatever it is supposed to be, it's way too big.

Re: World

#44
post #35

Earlier quoted context omitted.

nice work. how did you know? For anyone wondering the difference, 0>cos on line 8 is now 0<cos.

Almost any kind of rotation in 2D or 3D graphics involves cos or sin. The spinning was going the wrong way, therefore the way to reverse it was to reverse something involving cos or sin. You can then just bruteforce it by reversing each cos until you get the effect you want. (If reversing cos seems to reverse something "perpendicular" to what you want, then you'd need to reverse the sin instead, not the cos.) This is…

I'd also note that in a point on the unit circle, cosine is the x coordinate and sine is the y coordinate. A good reason to try flipping a cosine first. See this: http://en.wikipedia.org/wiki/File:Unit_circle.svg

(I still remember how people would describe trig in high school, it is a wonder more teachers didn't explain the cos = x, sin = y thing. Probably because my teachers did not understand math.)

Re: World

#45
Brilliant.

What I'd love to see is a step by step description of how this was constructed. If I have an end goal in mind, it's simple enough to hammer some characters into something a machine can use to do that end goal while still being readable by a human. But this? It floors me, and I can't even imagine where to start. I can understand the code with a bit of thought, but getting from an empty text editor to that seems beyond me.

Re: World

#47
post #45

Brilliant. What I'd love to see is a step by step description of how this was constructed. If I have an end goal in mind, it's simple enough to hammer some characters into something a machine can use to do that end goal while still being readable by a human. But this? It floors me, and I can't even imagine where to start. I can understand the code with a bit of thought, but getting from an empty text editor to that s…

He gave this step by step presentation at JSConf.eu today. It was really well done... I could almost follow!

I hear there will be video in a couple weeks.

Re: World

#48
post #17

It's spinning in the wrong direction!

It's spinning in the right direction if you're a satellite in a mid-altitude equatorial orbit.

Re: World

#50
post #10

Earlier quoted context omitted.

Hmm, that one says, "Copyright(C).Yusuke Endoh, 2010" The author of this one apparently forgot to give credit.

Doesn't look like the code is that similar. Doesn't look like copyright has anything to do with it. Does Endoh have a patent? That would of course be a different matter.

I'm not alleging a law was broken -- just that the author should have given credit for inspiration.
Post reply on HN