Live data from Hacker News

JS1k demo: “Highway at Night”

js1k.com

11–20 of 100 posts

Re: JS1k demo: “Highway at Night”

#11
post #7

This demo gives some ideas about how the human brain manages to remember events. With just a few lines of code, containing very little information, it generates something we perceive as a very detailed record of a highway trip at night. Even if we don't know exactly what tricks the human brain uses to compress information about places and events, this demo let's us imagine how some of it might be done. The human brai…

java script remembers events this way. Dont see how one can apply this to human brain..

Re: JS1k demo: “Highway at Night”

#12
post #11
post #7

This demo gives some ideas about how the human brain manages to remember events. With just a few lines of code, containing very little information, it generates something we perceive as a very detailed record of a highway trip at night. Even if we don't know exactly what tricks the human brain uses to compress information about places and events, this demo let's us imagine how some of it might be done. The human brai…

java script remembers events this way. Dont see how one can apply this to human brain..

How can the human brain remember hours of highway trips in basically 3 pounds of fat without using some tricks to convert the information in to geometric 3d shapes? The developer who created this demo also know how to do it the other way round, he can write javascript that generate simple geometric shapes and animated transitions in javascript that generates a pretty good rendition of a highway trip at night.

Re: JS1k demo: “Highway at Night”

#13
post #11

Earlier quoted context omitted.

java script remembers events this way. Dont see how one can apply this to human brain..

How can the human brain remember hours of highway trips in basically 3 pounds of fat without using some tricks to convert the information in to geometric 3d shapes? The developer who created this demo also know how to do it the other way round, he can write javascript that generate simple geometric shapes and animated transitions in javascript that generates a pretty good rendition of a highway trip at night.

I doubt that (all) humans think in javascript :P Im sure the brain has its tricks, but they dont need to have something in common with the ones used here. I wonder what Kolmogorov Complexity this program has. Obviously <= 1023.

Re: JS1k demo: “Highway at Night”

#14
post #5

You can see all the submissions at http://js1k.com/2014-dragons/demos My favorite: http://js1k.com/2014-dragons/demo/1868

Some of the other demo's quickly makes my Macbook Pro's fan make noise. This cute 3d demo can go on forever without any noise. And it even has reflection and (fake) shadows.

Re: JS1k demo: “Highway at Night”

#15

Wow. I can make sense of a little bit of the original source, but I wonder more how RegPack [0] works to compress it into that final submission! As a side note: I'm in college now and looking to propose an independent study on compression. Any suggested readings or algorithms I should look into? [0] https://github.com/Siorki/RegPack

Principal component analysis and then ignoring the least important components is the only compression technique I know. Hope it helps.

Re: JS1k demo: “Highway at Night”

#17
post #6

How does this loop work ?Does this create an array where B,F,Z,D and i are 0? for(T=[B=F=Z=D=i=0];i<600;i++)

Image the '0' walking left, because it as to follow the =, everything it touches on that path, turns to zero and disappears. What are you left with? Just '0'.

The block quotes provide containment.

Re: JS1k demo: “Highway at Night”

#18
post #7

This demo gives some ideas about how the human brain manages to remember events. With just a few lines of code, containing very little information, it generates something we perceive as a very detailed record of a highway trip at night. Even if we don't know exactly what tricks the human brain uses to compress information about places and events, this demo let's us imagine how some of it might be done. The human brai…

I think you may have the memory issue the wrong way round.

Human memory is built precisely around remembering geographic locations, human faces and images[1]. The 'have I seen this before feeling' you get is your brain trying to match the demo location to memories ( my conjecture anyway )

[1] http://en.m.wikipedia.org/wiki/Method_of_loci

Post reply on HN