Live data from Hacker News

World

aem1k.com

51–60 of 102 posts

Re: World

#51
post #22
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.

aside from the implementation being completely different and therefore not in violation of copyright, it would be difficult to give credit for something like this where every character is strategically placed.

How about in the bottom corner of the screen? Or in the parent directory, where there's a listing of all the demos?

Re: World

#52
post #3

Saw the talk by Martin at JSConf.eu today explaining how he did it. Just brilliant! http://2013.jsconf.eu/speakers/martin-kleppe-1024-seconds-of...

I have to remember to check their YouTube channel for the talk!

If anyone finds the video, post it here please!

Re: World

#55
That's adorable but I wouldn't have bothered clicking if I had known what it was from the title.

Re: World

#57
Can someone explain this really simply for me?

I understand that the whole thing is actual source and its manipulating the center commented area. But I am having trouble following the code.

Re: World

#58
post #18

Reminds me of the old 1992 winner of the IOCCC by Brian Westley (who consistently entered some of the most impressive programs in that contest). It doesn't spin, but it prints a map of the provided lat/long. http://www.ioccc.org/1992/westley.hint main(l ,a,n,d)char**a;{ for(d=atoi(a[1])/10*80- atoi(a[2])/5-596;n="@NKA\ CLCCGZAAQBEAADAFaISADJABBA^\ SNLGAQABDAXIMBAACTBATAHDBAN\ ZcEMMCCCCAAhEIJFAEAAABAfHJE\ TBdFLDAANEfD…

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.

*its own

Re: World

#59
post #55

That's adorable but I wouldn't have bothered clicking if I had known what it was from the title.

Take another look. It's not just an ASCII animation; it's the source code that produces the animation.

Re: World

#60

Can someone explain this really simply for me? I understand that the whole thing is actual source and its manipulating the center commented area. But I am having trouble following the code.

> Can someone explain this really simply for me?

Imagine that you had to write it yourself.

First, you would create some strings approximately representing latitudes on Earth and their associated land masses -- one string for maybe 10-20 degrees of latitude, from some southerly latitude to a northerly one.

Nest, you would figure out a way to print substrings of the strings, at specific points within the strings that you would choose.

Next, you would arrange that the substring printer would wrap around to the beginning of the string in the event that it was asked to print a greater length than the remaining characters available from the specific starting point to the end. By wrapping around, you create the illusion of a circle of characters, like on a globe.

Next, you would think of a way to write into a specially formatted executable text file having a roughly circular central section that is commented out, i.e. not executable.

Next, you would arrange that the specially formatted text file be the running program, and the central comment area represent the display of the earth.

Next, just to blow minds, you would print the current form of the program text file on the console, after each animation cycle filled the comment area.

Finally, you would create the illusion that the earth is rotating clockwise as seen from the north pole (the opposite of reality) just to provoke people who know a bit of astronomy.

Post reply on HN