7 ms·
Fixing a bug in “Airwolf” code from 1984 [video]
- brightball 10y agoHands down, greatest TV show ever made. You're free to disagree, but your opinion is wrong.
- XJOKOLAT 10y agoMy heart agrees with you ... it is. But I watched a couple of episodes a few weeks ago (yikes!)
- bartread 10y agoI did a similar thing a while back and, although it was one of my favourite shows as a kid, I have to conclude that re-watching it was a mistake. Same with Knightrider.
- bdcravens 10y agoThis is so true - Knightrider was my favorite as a child, and I need to leave my memories of it with 7 year old me.
- dvtv75 10y agoI've been re-watching Knight Rider on-and-off for a while now, and it's actually fairly good. I wouldn't compare it directly to anything modern, as long as I accept it for what it is - a 1980s show.
- bartread 10y agoNoooooo - you're tempting me. :)
- brightball 10y agoThe trick is to skip season 1. Season 2 and 3 was where the real meat of the show was found. Fun Fact: My wife wouldn't let me name our son Stringfellow
- gooseus 10y agoWe need more Jan Michael Vincents! Though if you actually follow @AirWolf4Life for any length of time you may disagree with that previous statement.
- JustSomeNobody 10y agoAnyone curious about this, don't use your work computer.
- kkylin 10y agoOh my. I really loved Airwolf as a kid. I did not need to see this.
- ojosilva 10y agoIf anyone, like me, is wondering if the bug solution is correct, here's the original documentation for the RND() function in Applesoft BASIC language (page 102): https://mirrors.apple2.org.za/Apple%20II%20Documentation%20Project/Software/Languages/Applesoft%20BASIC/Manuals/Applesoft%20II%20BASIC%20Programming%20Reference%20Manual.pdf https://mirrors.apple2.org.za/Apple%20II%20Documentation%20P... Which says: RND(aexpr) Returns a random real number greater than or equal to 0 and less than 1. Which is pretty much the standard for a random function in many other computer languages through history, ie. Python's random.random(), JS Math.random(), ... There are other, more creative versions of the function, like Perl's and Ruby's rand(max), which differ slightly by allowing the user to set the max number. But this other reference link, which presumably takes its information from the back of another book could have led the Airwolf programmer to make the mistake: http://www.landsnail.com/a2ref.htm http://www.landsnail.com/a2ref.htm It says the generated number is between 0 and 1, without mention to 1 being exclusive. I believe this a common confusion when it comes to RND() usage.
- Johnny555 10y agoEven if it were 0.0 to 1.0 inclusive there'd still be a bug in the code since there's a very slim chance of getting a 1.000000 from the RNG, so in that buggy code, 'F' would still almost never be selected. For that reason, a floating point random number from 0 to 1.0000000 inclusive would be hard to work with.
- smitherfield 10y agoAnother way to fix the bug would've been INT(RND(1) * 15 + .5) which is equivalent to rounding to the nearest integer* instead of truncating. *If positive, which RND's return value must be.
- rzzzt 10y agoThe labyrinth-printing example for the C64 also uses this: https://10print.org/ https://10print.org/
- sideproject 10y agoAirwolf + Nightrider filled my young mind in the 80s. Ahh, how I used to love watching them!
- rzzzt 10y agoStreet Hawk, anyone?
- richharms 10y agoAbsolutely! As a kid that rode dirt bikes all the time, and loved technology, I was totally into it. That and Knight Rider spurred a lot of ideas when I was young, and I was excited when I came across a set of Street Hawk DVDs a few years back. Brought back great memories.
- rzzzt 10y agoI liked both series, but the music of Street Hawk feels a lot better. Knight Rider has a very dark and heavy mood.
- fapjacks 10y agoI hope this message reaches you before you take the plunge...... I would recommend not watching Airwolf as an adult. Let it live in the "wondrous memory" part of your brain forever.
- pieter1976 10y agoThe whole channel seems interesting https://www.youtube.com/c/BehindtheScreens https://www.youtube.com/c/BehindtheScreens Based on This Tumblr: https://moviecode.tumblr.com/ https://moviecode.tumblr.com/
- botverse 10y agoThis a delight. I've been stumbling upon them since 2014, more examples here: https://moviecode.tumblr.com https://moviecode.tumblr.com
- jgrahamc 10y agoHuh. Cool to see this get some space on the HN front page. I created the Tumblr https://moviecode.tumblr.com/ https://moviecode.tumblr.com/ a few years ago and I've started this channel to go a little deeper into some of the examples. Hope people like it. Next up: two episodes of Knight Rider, Westworld (1973) and Swordfish.
- lmm 10y agoNot a movie but there's a wonderful source listing in Lost Universe (I think) where the C code starts with some macros that use setjmp/longjmp to implement gosub/return. Will try to find specific episode/timestamp when I get home.
- botverse 10y agoCan't wait for the Knight Rider one
- mozumder 10y agoI bet you'll find a trove of bugs in "Whiz Kids" and "Automan"
- jgrahamc 10y agoOh man, I loved Whiz Kids when it was on TV. I'm not specifically looking for bugs or 8 bit stuff just really spelunking into where the code came from. The Westworld one is very interesting because it's 1973 and Westworld was the first film with computer graphics in it... I finally figured out what's being shown.
- agumonkey 10y agoI had a bunch of screenshots from a movie, I'll get back to you as soon as I found them. The VBA code is quite funny.
- jgrahamc 10y agoNice. Please submit them to my Tumblr!
- duke360 10y agothey hit one of the two major problems in informatics... :D the number 3 in particular :D
- joeblau 10y agoI just saw the name and started humming the theme song. This show and game made me want to become a helicopter pilot.
- cptskippy 10y agoDid you become a helicopter pilot?
- DINKDINK 10y agoSlightly off topic but this may be the only time that it's semi relevant to get this onto HN: Edwin Van Santen - Airwolf (Mix) Commodore 64 https://www.youtube.com/watch?v=15oujjzU1lM https://www.youtube.com/watch?v=15oujjzU1lM
- exlurker 10y agoR.I.P. EVS https://8bitlegends.com/edwin-van-santen https://8bitlegends.com/edwin-van-santen
- louprado 10y agoThis is a gratuitous digression, but the retreating blade stall is a key reason we don't have supersonic helicopters. The Helicopter Speed Limit - Helicopter Physics Series - #7 - Smarter Every Day 51 -- starts at 2m46s https://www.youtube.com/watch?v=_pbdwueqGp4 https://www.youtube.com/watch?v=_pbdwueqGp4
- DoofusOfDeath 10y agoThat's a neat video. I was surprised to learn that Chinooks are faster than sportier-looking helicopters because of that factor.
- asciimo 10y agoThere's got to be plenty of code to enjoy in Whiz Kids (https://www.youtube.com/watch?v=GDdVbOcUlTo https://www.youtube.com/watch?v=GDdVbOcUlTo). (Why "whiz" and not "wiz?")