TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Inception movie explained programmatically with C and assembly

165 pointsby geospeckalmost 8 years ago

15 comments

phlillipalmost 8 years ago
This reminds me of an awesome site my friend Ben Howdle built called moviesascode. Users would contribute tiny code snippets that summarised a whole movie. As an example:<p>.titanic{ float:none; }<p>Unfortunately he lost the site when he switched hosts, I&#x27;ve been badgering him for years to restart it.
评论 #15031939 未加载
评论 #15029917 未加载
teekertalmost 8 years ago
Hmm, I agree with Rick on this one:<p><pre><code> Rick: Boy, you&#x27;re really gonna flip your lid over this one. Morty: Oh, w-wh... what is it? Rick: It&#x27;s a device, Morty, that when you put it in your ear, you can enter people&#x27;s dreams, Morty. It&#x27;s just like that movie you keep crowing about! Morty: You&#x27;re talking about Inception? Rick: That&#x27;s right, Morty! This is gonna be a lot like that, except y&#x27;know, it&#x27;s gonna me-beh... make sense. Morty: Inception made sense! Rick: You don&#x27;t have to try and impress me, Morty! </code></pre> and<p><pre><code> Rick: &quot;It&#x27;s been six hours. Dreams move one one-hundredth the speed of reality, and dog time is one-seventh human time. So, you know, every day here is like a minute. It&#x27;s like Inception, Morty, so if it&#x27;s confusing and stupid, then so is everyone&#x27;s favorite movie.&quot; </code></pre> I still bugs me that they float in one layer because the fall in another (or the other way around) then one layer deeper this is not a problem at all. It seems so arbitrary. Like they based in on a novel but ignored all the parts where they actually put in an effort to help you suspend your disbelieve.
vbuwivbiualmost 8 years ago
While we&#x27;re here, can someone explain how a &quot;dream within a dream&quot; works in Inception ? Presumably someone has to &quot;fall asleep&quot; inside their (or someone else&#x27;s) dream and go into a dream state again on another level so to speak. The only way I can see the brain implementing that is to dream of its own state so completely that it can run itself as a virtual machine, and fall asleep inside that VM. I haven&#x27;t read the code, but I doubt the C implementation includes a VM that can run inside itself, Smalltalk-style.
评论 #15033225 未加载
评论 #15031809 未加载
评论 #15031999 未加载
评论 #15036520 未加载
评论 #15033733 未加载
评论 #15031760 未加载
agentgtalmost 8 years ago
I briefly glanced at the code and was expecting a game like clock to emulate the time dilation that the dream within a dream caused.<p>I can&#x27;t remember in the movie what was the deepest dream possible but you could pick a large base ticker value in case whatever you decide as the lowest dream is not (I remember the movie leaving that as an open question).
Cheyanaalmost 8 years ago
Great. Now do Memento.
评论 #15031033 未加载
评论 #15030823 未加载
评论 #15031412 未加载
spadrosalmost 8 years ago
Now, if only it were actually readable...
评论 #15032671 未加载
评论 #15031768 未加载
mschuster91almost 8 years ago
Hmm, something&#x27;s broken on x64 OS X (10.11), in the last line:<p>&gt; [Fischer] exiting back to reality from level [1] with the THOUGHT:<p>&gt; Illegal instruction: 4
评论 #15033408 未加载
arjo1almost 8 years ago
Our CS1010 teacher in college used to test us on movies. I believe one year he had done inception. Other years he did transformers, Star Wars etc.
callesggalmost 8 years ago
What is the point? Is it indented as Art? Was it made simply for the fun of coding?
评论 #15031448 未加载
评论 #15031439 未加载
评论 #15031818 未加载
danwroyalmost 8 years ago
Why not lisp
kbensonalmost 8 years ago
I can only assume C was used on purpose in tribute to how complex and complicated the original movie was.
评论 #15031980 未加载
评论 #15031367 未加载
tribbyalmost 8 years ago
(2011)
qubexalmost 8 years ago
Awesome.
minademianalmost 8 years ago
so novel and simple!
mslaalmost 8 years ago
Why is C in quotes?<p>Better question: Why <i>isn&#x27;t</i> assembly in quotes?
评论 #15031011 未加载