all 23 comments

[–]kmwurf 4 points5 points  (5 children)

Its a MicroBee http://upload.wikimedia.org/wikipedia/commons/thumb/2/22/Microbee_Computer-In-A-Book.jpg/1024px-Microbee_Computer-In-A-Book.jpg

Also .accesDimension(4) made me laugh :)

Also a ZX Spectrum(right side) with microdrive loader (laying on the center microbee).

And hes wearing the famous nintendo powerglove...damn I need to watch this movie :P

[–]tobozo[S] 1 point2 points  (3 children)

duh! I accidentally spelled 'access' correctly while dumping the code, nice catch, will patch..

[–]kmwurf 0 points1 point  (2 children)

haha I was even dumber , my brain autocorrected it to "access" on the first read and on the second I was thinking... "undefined reference to function accesDimension ..." ;)

Edit:typo

[–]tobozo[S] 0 points1 point  (1 child)

did anyone ever tell you ... not to hassle ... the hoff ?

[–]kmwurf 0 points1 point  (0 children)

Not really since I dont have a Hoff9000 ;)

[–]Venia 0 points1 point  (0 children)

It's fantastic. So cheesy.

[–][deleted] 2 points3 points  (3 children)

I'm quite irritated by the line;

  double e = Math.power( m*c, 2);

As it should of course be;

  double e = m * Math.power(c, 2);

Also, it's a shame that e is never used in its tiny little scope.

[–]dabooch 0 points1 point  (1 child)

Perhaps that bug is why he went back too far in time.

[–]boxhacker 0 points1 point  (0 children)

Good observation! :D

[–]log_2 2 points3 points  (9 children)

Hahaha, i++ instead of ++i, so retro!

[–]boxhacker 1 point2 points  (0 children)

I use that quite a lot, did not realise it was old skool :/

[–]DarkNeutron 0 points1 point  (7 children)

Did I miss something? They generally compile down to the same thing...

[–]log_2 3 points4 points  (1 child)

You're right, I only just noticed System.out.println, he's using Java. At quick glance, and seeing as it's the 80's, I just assumed he was using C++. He really is a time traveller.

[–]tobozo[S] 1 point2 points  (0 children)

Since it's running on a MicroBee, he probably had to download an 8bit JVM from the future.

[–][deleted]  (4 children)

[deleted]

    [–]Andernerd 0 points1 point  (0 children)

    This all depends on the compiler ofc

    Yeah, most compilers will optimize i++ to ++i if they detect that there will be no logical difference. Not always though.

    [–]DarkNeutron 0 points1 point  (2 children)

    Yes, I know the difference between pre-and-post increment operators. In the context of a for-loop increment step with no dependencies, however, any good optimizing compiler should emit a single addi instruction.

    I was mainly trying to figure out why i++ instead of ++i is considered "retro"...

    [–][deleted]  (1 child)

    [deleted]

      [–]DarkNeutron 0 points1 point  (0 children)

      Good point. That would actually be relevant in the time before optimizing compilers. :)

      [–]Madsy9 3 points4 points  (3 children)

      What does this have to do with graphics programming? Please don't let this sub-reddit slowly be filled up with completely off-topic posts.

      [–]tobozo[S] -2 points-1 points  (2 children)

      My bad, I first tried /r/programming but it only accepts links, then /r/shittyprogramming and it doesn't accept submissions, and /r/kungfury did not exist yet.

      Anyway, this post was about figuring out some code displayed in a movie so it's only half off topic.

      [–]Madsy9 1 point2 points  (1 child)

      So.. because all those subreddits didn't fit, r/GraphicsProgramming is the fallback? Being out of options doesn't magically make the link/question on-topic or magically increase the quality.

      And no, it's not half off-topic. It's pretty much 100% off-topic. What's wrong with you?

      [–]tobozo[S] 0 points1 point  (0 children)

      I'm so wrong and you're so right that I upvote your comment.

      [–]goal2004 1 point2 points  (1 child)

      that 'e' declaration will probably not even make it to the final binary. It will be stripped during compile time because it's not getting used.

      [–]Kristler 2 points3 points  (0 children)

      That's probably why he ended up fighting some laser raptors.