The Missile Knows Where It Is, But It's Actually A Javascript Tutorial
The missile knows where it is because it knows where it isn't.
In this Javascript tutorial, we'll show how you can use corrective commands to compensate for variations and drive your nuclear tipped BGM 109G Gryphon intercontinental ballistic missile from a position where it is, to a position where it isn't.
SOCIALS
----------------
Patreon: www.patreon.com/RobertElderSo...
Tiktok: / roberteldersoftware
Linkedin: / robert-elder-software
Blog: blog.robertelder.org/?...
Twitter: / roberteldersoft
Twitch: / roberteldersoftware
Github: github.com/RobertElderSoftware
Facebook: / roberteldersoftware
Instagram: / roberteldersoftware
Merch: store.robertelder.org/?...
Пікірлер: 705
If you are a missile and you know where you are, you can express your like or dislike (whichever is greater) as an engagement action on this video. The KZread algorithm uses like and subscribe counts to generate corrective commands that drive a video from a view count that is low to a view count that is high. Consequently, the video will obtain at a like to dislike ratio that is increasing, so it follows that the dislike to like ratio is decreasing. In the event that the dislike to like ratio is not decreasing, the KZread algorithm has discovered the signal of a bad video. If the bad signal of the video is considered to be a significant factor, it may be flagged for a violation of the terms and conditions and removed from the platform entirely. However, the KZread algorithm knows everything about the audience, and it knows exactly what kinds of videos you like. It now subtracts the set of people will probably 'dislike' the video from the set of people who will probably 'like' the video, and adds the variable obtained by subtracting the set of viewers with low average watch times from the set of viewers with high average watch times. In KZread Algorithm machine learning "language", this is called 'error signal', or the difference between the expected engagement rate and the actual engagement rate, found in the algebraic difference between the number of likes, subscribes, comments and watch times of the video.
@panzermk4953
3 жыл бұрын
can u up load the code ?
@indiana47
3 жыл бұрын
Far too much effort for a comment. I like it.
@Eye5x5
Жыл бұрын
Well, I am a plane but I asked my missiles which is greater and liking was greater.
@starballanimations976
Жыл бұрын
i have liked the video
@danibogo
Жыл бұрын
@@panzermk4953 may i ask why you want the code
Imagine the disrespect of being killed by a missile running javascript
@juniuwu
Жыл бұрын
At least it was running the JS code using V8. I'd hope.
@dinamitemaster
Жыл бұрын
@@juniuwu What doesn't nowadays
@BoleDaPole
Жыл бұрын
It would get hacked far before reaching its target
@HippoKing.MP3
Жыл бұрын
The only greater insult is having it all calculated via redstone command blocks
@StephenDelRosario777
Жыл бұрын
@@HippoKing.MP3 Ukraine should get some redstone missiles. Imagine chilling in your SU-57 for the Motherland when *BAM* Redstone missile!
Not sure what is scarier the fact that you went into the effort to turn this into code or the fact that a missile control code written in JavaScript now exists...
@anonymousperson2110
3 жыл бұрын
SIR THE MISSILE IS 0.5 SECONDS AWAY FROM INTERCEPTING ENEMY ICBM *garbage collector has entered the chat* *Are you sure about that*
@thecianinator
3 жыл бұрын
I think missile codes are written in assembly because there can't be any unforseeable bugs or something
@anonymousperson2110
3 жыл бұрын
@@thecianinator Assembly is one of the languages where it is **easiest** for bugs to emerge, just because the human programmer has to take care of literally everything. Missile codes are typically written in Ada, because it has fewer features than C++ (meaning fewer spots for misunderstanding and mistakes), and has things like contracts to help ensure correctness. Javascript is not used for missile codes for multiple reasons - the VM imposes an extra overhead, garbage collector means performance won't be deterministic ("oh hey we're 1 second away from the target, oh no the garbage collector just paused the entire program for 0.75 seconds to do garbage collection"), and there's a lack of a compile time syntax checking and no static type system.
@ITSecurityNerd
3 жыл бұрын
The scarier thing is that Javascript now exists....
@p_serdiuk
3 жыл бұрын
It ought to be possible to transpile this JS to C or something.
Amazing, I know nothing. Just like after a regular Javascript tutorial
@coins_png
Жыл бұрын
I do know because i know what I don't know. It works because i subtract what i know from what I don't or what I don't know from what i know (whichever is greater).
@puppergump4117
Жыл бұрын
@@coins_png I guess in the event that what you know is what you didn't know, you'd get a deviation, and if you know that what you knew is not what you know, that's an error?
@prakash-niroula
Жыл бұрын
@@puppergump4117 and you add the deviation to a variable subtracting the error to get variation. And if it turns out to be a significant factor, you'll allow it provided that you know what you know and what you don't. due to the variation modifying some of the factor, you won't be sure what you knew or didn't know about what you know. however, your thought process must be sure what it knows about not knowing what it doesn't. I hope this makes things clear as I have added your comment into a variable and subtracted it from my thought of what I know and don't about what I do know, which makes it so that you know what I know by subtracting what you don't from what I know, or what I know from what you don't ( whichever is greatest ) ;)
@coins_png
Жыл бұрын
@@prakash-niroula I'm not gonna read all of that bro. Sorry that happened or I'm happy for you (whichever is greater)
@Tekner436
Жыл бұрын
as you should, just as you can't know a variable's type in javascript
Do you guys want to see a detailed video on the history of this meme and the actual missile guidance system that inspired it? If this comment gets 1000 likes, I'll do it.
@LivakProductions
2 жыл бұрын
Yes of course, but it has 2 likes. huh
@IncredibleMD
2 жыл бұрын
@@LivakProductions Three now.
@asciiCAT
2 жыл бұрын
please
@auxencefromont1989
2 жыл бұрын
18 now... i hope we get the video though..
@Zlonk7
Жыл бұрын
933 likes to go
Everyone asks where the missile is, but they never ask how the missile is :(
@BoleDaPole
Жыл бұрын
We know how the missile is, by knowing how it isnt in relation to how it was with how its going. Subtracting how it is to how it isn't will provide us with a deviation in relation to how it wasn't.
@chemreal
Жыл бұрын
We know how the missile feels, we know this because we know there are no nearby female missiles. By substracting rizz with how many nearby females in its area, or how many nearby females in its area with rizz.
@r.d.6290
Жыл бұрын
There is telemetry, like for temperature and pressure, so they know the feels
@makuru.42
Жыл бұрын
@@r.d.6290 But do you know how a human feels by knowing that? No
@deang5622
Жыл бұрын
The missile is unhappy....very unhappy: he knows he is about to be destroyed.
Of course. Now it makes sense.
@birisuandrei1551
Жыл бұрын
But did you know ? Early missiles like the V2... *Did not know where it is, but that's fine cause the gamerule: War crimes was enabled during that time*
The key to having a good tutorial is not having a bad tutorial.
@enclave2k1
Жыл бұрын
And the key to not having a bad tutorial is having a good tutorial.
@spattersong
Жыл бұрын
Can we do this using a differential?
@JaredBrewerAerospace
Жыл бұрын
Or knowing where a good tutorial isn't.
@Bennyboi789
Жыл бұрын
We know when we have a good code or a bad code by subtracting the good code from the bad code, or the bad code from the good code, whichever is greater
@Gabrocol
6 ай бұрын
The key to getting a girlfriend is to not fuck up getting a girlfriend
The madlad actually wrote code for that ~24 year old joke lol
@teargass1849
2 жыл бұрын
not a joke though, its from a real training video.
@user-tx3xy7lw6w
2 жыл бұрын
@@teargass1849 that doesn't mean it's not a joke.
@de4dbutdre4ming
2 жыл бұрын
@@user-tx3xy7lw6w except it still isn’t a joke
@user-tx3xy7lw6w
2 жыл бұрын
@@de4dbutdre4ming I just think you have a poor sense of humor.
@pteppig
2 жыл бұрын
@@de4dbutdre4ming the missile knows it's not a joke by subtracting that it was in a training video, but now isn't. By subtracting where it was and where it isn't, it knows that this is a meta joke of jargon overload
Thanks! I was having some problems correcting the trajectory of my missiles lately, and this fixed it! Great tutorial man
@maxicalful
Жыл бұрын
very nice comment
@SteveMcAren39
11 ай бұрын
what missile you do have anyway my guy? mine is an AIM-54 Phoenix
@der.Schtefan
8 ай бұрын
This comment, is my FAVORITE comment.
God as a GNC engineer for 7 years, this is sadly and hilariously spot on. There really is no other way to describe dead reckoning guidance. The video he is quoting was actually shown to me on day one. I took it as a joke. Turns out... it wasn't.
Its pretty simple. The missile knows where it is by looking at its last known position. Based on speed and trajectory it should be x distance away. When it receives another GPS ping, it gets an update to where it actually is. It compares the expected position with its actual position. If the actual position is off course, then it maneuvers the missile to eliminate the error.
@chezzy6366
Жыл бұрын
Long story short, it knows where it is, because it knows where it isn't
@cinemoriahFPV
Жыл бұрын
Yeah that's what he said.
@AnIdiotAboard_
Жыл бұрын
correct* the error, variance can never be eliminated, its why its called a variance
@ThaJay
Жыл бұрын
They actually don't need GPS. Measuring acceleration is enough. If you compare the expected acceleration from a specific input to the actual output in acceleration, you can adapt the next input to correct for that error.
@ThaJay
Жыл бұрын
@@satunnainenkatselija4478 There are no coordinates, only vectors. Location is actually a misleading way to explain how it works although I can't come up with a normal language word for a vector so it's probably close enough for its purpose.
"TODO: This doesn't work well when the terrain is very flat, so the missile will sometimes get lost :( " 😂
Missle computer: where are you? Missle: not there, but will be over there in a second Missle computer: where is not there and over there? Missle: you're supposed to figure that out and put me there!
@DataC0llect0r
Жыл бұрын
Underrated comment
Love seeing a TODO in missile guiding software!
Some of you thought that the missle video was a joke but it's litteraly exactly how the missile works
Thank you! My missles are now functioning! Love this so much.
@stephenchow6749
11 ай бұрын
The FBI knows where you are because it knows where you aren’t
As someone who makes actual weapons guidance systems, this is pretty scary plausibly a working control algorithm, even if pretty primitive by todays standards. Definitely could be used in a flight simulator that has guided missiles. Or is still the basic principle behind a lot of first generation manpads. …. But this is not far off… holy god.
@cacssarcaeustan2543
11 ай бұрын
Genuine question here. How do you sleep at night? Like don't you feel at least a bit bad knowing that you are directly contributing to what might one day be the end of us all? I get that some people just don't care and others attempt to justify it with areguments like "what if they build a bigger bomb, ours must be bigger", and I know that at the end of the day we are all just cogs greasing the machine, but I still feel like there is a substantial difference between working on let's say an oil rig and building nuclear ICBMs.
@weirdsciencetv4999
11 ай бұрын
@@cacssarcaeustan2543 I think you’re confusing conventional weapons navigation with Q navigation, which most ICBMs are based on. You don’t just need to hit the target, but you also have to arrive at a specific time. But to answer your question, answer me this- is the pandemic over? If not, why not? You give me a good thought out answer, I’ll tell you how well I sleep at night.
@stephenchow6749
11 ай бұрын
Just consider how hard it would be to sleep at night if China had better weapons than us, and the future of our country was in jeopardy
@GyanPrakash-xo5gs
8 ай бұрын
@@cacssarcaeustan2543 I think he sleeps well knowing that there aren't that many wars nowadays as previous times due to mutually assured destruction because everyone now have ICBMs.
@Jacky-zt5ch
5 ай бұрын
@@cacssarcaeustan2543do you think workers in car factory feel bad about fatal traffic accidents out on the road?
I need the code for... Reasons Also comment to please the algorithm!
@abubakarmendheim3531
3 жыл бұрын
LOL
@vicslav4030
2 ай бұрын
Comment
OMG PENTAGON Missile Code Leak 2021 CONFIRMED 100% Gone Wrong xDDDD Also here to please the recommendation overlord, hope this video catch on soon
Thank you so much I’ve been searching for a good tutorial on this topic!! Very enlightening!! Great video 👍
The missile knows where it is at all times. It knows this because it knows where it isn't. By subtracting where it is from where it isn't, or where it isn't from where it is - whichever is greater - it obtains a difference or deviation. The guidance subsystem uses deviations to generate corrective commands to drive the missile from a position where it is to a position where it isn't, and arriving at a position that it wasn't, it now is. Consequently, the position where it is is now the position that it wasn't, and if follows that the position that it was is now the position that it isn't. In the event that the position that the position that it is in is not the position that it wasn't, the system has acquired a variation. The variation being the difference between where the missile is and where it wasn't. If variation is considered to be a significant factor, it too may be corrected by the GEA. However, the missile must also know where it was. The missile guidance computer scenario works as follows: Because a variation has modified some of the information that the missile has obtained, it is not sure just where it is. However, it is sure where it isn't, within reason, and it know where it was. It now subtracts where it should be from where it wasn't, or vice versa. And by differentiating this from the algebraic sum of where it shouldn't be and where it was, it is able to obtain the deviation and its variation, which is called error.
@chaoticscripts7345
Жыл бұрын
I'm not into developing missiles however wouldn't they just compare where it is to where it should be? I feel like they would compute a path and compare like so
@d.brower
4 ай бұрын
@@chaoticscripts7345 Look up "Kalman Filter". There is uncertainty about the measurements of where it is (and isn't), and noise in the updated inputs.
Thanks for this educational tutorial now i can build my own missile
"Todo: this doesn't work well when the terrain is flat, so it may get lost sometimes" lmao
Best part is the comparison of JSON strings to find errors.
@plaguemusic9104
Жыл бұрын
XDDDDDD
This will probably be the highlight of my year. This was bloody glorious. Just like my day. When I got up, it wasn't. Then I watched this and it is.
Pretty neat, but it still hurts hearing this.
If I only hear "where it isn't" ONE MORE TIME..... Great job, that's really like a javascript tutorial, I only know what it does, because I read the code+comments without hearing the voice.
This is amazing. Really clears things up
As a missile, I thank you for the assistance, as I am new to the "literally fucking obliterating an area" community
The dude went to explain how a guidance system works. But he kept it absolutely abstract without using any math and using purely english words. In the hopes of making it so someone doesn't need high school algebra and a few variable definition, making it clear to anyone who could have understood it. He made it clear to noone except those who already knew how it worked (or had an inkling/experience) and reverse engineered his words.
I'm working on a guided missile on a simulator to build it in real life (with a catching net) to shoot down drones, as a prove of concept, and this is actually useful
I work in the field of guidance, navigation and control for aerospace applications and this tutorial is very accurate.
This is a total rocket science for me... ...But at the same time it's finally somewhat easier to understand, and I learn better by seeing something other than hearing. It's really easier when it's written down.
I both love that you made the code for this, but I also hate it because it makes it less funny actually being able to understand what it was doing
I'd like to thank you for your assistance in furthering my cruise missile program. Nothing says 'muh 2nd Amendment' like a homemade nuclear cruise missile.
@kotnapromke
Жыл бұрын
Скрипт не сможет сделать вам ядерную бомбу. А ракета без бомбы бесполезна.
@skaldlouiscyphre2453
Жыл бұрын
@@kotnapromke First you build the bomb, then you build the rocket, then you develop the guidance system.
@heiligkeit6345
Жыл бұрын
@@skaldlouiscyphre2453 first you build the rocket and then develop the code. You then test a rocket with the dummy warhead to imitate the weight of a payload and after you confirm your rocket flies as intended you make a bomb. I mean... That would be a shame if your bomb falls right on your head
@skaldlouiscyphre2453
Жыл бұрын
@@heiligkeit6345 Good thing I wear a helmet.
@weirdsciencetv4999
Жыл бұрын
@@kotnapromkewe know where nuclear warheads are stored because we know where they aren’t.
Is this what it's like to work for Raytheon?
Awesome 🤙
"The missile know where it is" Flares and metalic bits: "I don't think so :))"
@OtterTreySSArmy
Жыл бұрын
Yeah I'm not sure that a GPS guided missile is gonna care about chaff or flares
@Mortan1234
Жыл бұрын
That doesn't stop the missile from knowing where it is, it stops it from knowing where you are.
Small detail I love at the beginning: //armed: false, TODO: Don't forget to change this back!
Beautifully done. 👏
The missile promises that it will reach the target
I'm writing some telemetry code for a model rocket and this is genuinely helpful lol
@arianescobar9377
Жыл бұрын
X2
nice, a code to create my homemade missile guidance system
This now makes a lot more sense now.
This so far the best explanation of the missile, ironically
Missile in midair:” let me do some garbage collection”
It all gets worse when the missle knows where u r
@d.brower
4 ай бұрын
That's where it isn't (yet)
I actually understand this tutorial a lot better than the original video 😂
A mistake at 0:42 The "position where it was", in your code, ought to be highlighted as flight_track[t-1], and then the "position where it isn't" would be expressed as flight_track [t] != In general, I don't get your code in the context of the explanation. At 1:32, you refer to fight_track[t] as "where it wasn't", but at now 1:38 flight_track[t] is "where it was"? Huh?
@shneepz1016
3 жыл бұрын
Let the man feel smart
@DPedroBoh
2 жыл бұрын
I think he couldn't easily test the code, so he just made it and visually looked for logic problems but couldn't verify this one. Good eye.
@rastaboy_gamesnstuff7778
2 жыл бұрын
To get where it wasn't, to be where it was, it must have passed the position of where it is, remember, the missile is moving but it knows where it is because it knows where it isn't
@demetriusdemarcusbartholomew
Жыл бұрын
@@rastaboy_gamesnstuff7778 Stop fucking my mind
@Gameplayer55055
Жыл бұрын
let's do some TDD and run integration test. integrating missile into putin and kim then we hear their response and make our missile better
Thanks, learned alot now i can program my own missile
Amazingly interesting content, keep uploading these videos please
Thanks, time to use this code for my life size model
Any program that can be written will eventually be written in JavaScript.
Tried to run this on my ICBM at home, but I’m encountering an error on line 67. Can anyone help?
As a CS major, this finally allowed me to understand what the **** this meme is trying to say so thank you.
Imagine having this as a first programming lecture in university for first year students and then telling them there will be test tomorrow :D
thanks, I can now make a missile to deliver coconuts to my house
This is one of the most niche jokes i've seen thank you.
Huh now that it’s visualized it makes a hell of a lot more sense
you are a mad man
This will serve me well for my next argument on war thunder
If you program this in COBOL and put a mainframe inside the missile, no warhead is needed.
there's one thing to consider: once the missile finished the calculation, it is already somewhere else. from this it follows that the missile never is there where it "thinks" it is at any given moment in time.
@blackboxconsumer41
Жыл бұрын
Nah, how long do u think it takes to compute that
@menyasavut3959
Жыл бұрын
@@blackboxconsumer41 it depends on the system. if this is done in hardware, it could be quite fast, but this thing is written in Javascript, so it when the result is known, the missile might already be far away. If it's done in hardware, it's a lot faster, but also more expensive, specifically if you design an ASIC for that. so, yes, I think it takes too long doing in it Javascript. Guess we know now where there's a shortage of Raspberries, they are all blown up, because they've been used in these missiles
@d.brower
4 ай бұрын
Correct. It's a sample with uncertainty about accuracy, and self-correcting. See "Kalman filter"
Now let's test it!
The feds now know where you is, and they will make where you is a place where you isn’t
So whatever I knew about Missiles after watching this I forgot all of it. Thanks.
Why variables are important, the definitive proof.
I actually, finally, understood what this whole "it is where it isnt" means
This vid needs more views
Хорошая работа, спасибо!
Now that we know, we can evade the missiles by being were the missile isn't
Everybody gangsta until the position where it is becomes the position of your house.
It sounds like a Dr Seuss book. "The Missile that Isn't"
This felt like a Dr. Seuss book.
Clever way of teaching 🙌🙌🙌👍🏼👍🏼👍🏼👍🏼👍🏼❤️😂
I love this
North Korea wants to know your location
Feels like I'm reading Hegel but without the occasional insight
Honestly i thought it was just a meme, but after seeing this statement in code, that actually makes sense now lmao
Thank you, i now know where i isn't
This is far easier to understand, unironically
@TrueAloy
Жыл бұрын
Had the same thought, until I was where I wasnt.
Oh my god it’s a PI loop, but explained in the most convoluted way ever
If I ever get hit by a missile run on JS I now know that it was just trying to be subtract where it was from where it is and that I just happened to be a point of reference somewhere between those two points. Consequently, I will then have to subtract being alive from being dead or add being dead to being alive. Either way I appreciate this being broken down into such simple terms.
@Gameplayer55055
Жыл бұрын
if you keep calling JavaScript java then i also may call you perry the platypus instead Perry Latocki
@IceifritGaming
Жыл бұрын
@@Gameplayer55055 if I actually cared about children or the mentally handicapped confusing me with a platypus I might be upset but you can call me that if it makes your Lil heart swell. ❤ Also you didn't even capitalize Java 🙃 or I, or If, you also missed the Perry on platypus... thats 4 to my 1, check mate 😉
@Gameplayer55055
Жыл бұрын
@@IceifritGaming oops I've missed a semicolon after function return;
@petervakar
Жыл бұрын
@@Gameplayer55055 A pedant is a person who is excessively concerned with formalism, accuracy and precision, or one who makes an ostentatious and arrogant show of learning.
In simple terms..its all about subtraction of where it is and where it isn't, where it was and where it wasn't...
I am on a watchlist now
It actually does make sense
For the embedded systems in the missile we aren't allowed to use any json since we need processes to be as fast as possible and marshaling causes slowdowns
@lucassouzasilva6842
Жыл бұрын
Why ? json is not secure ?
@Infamous159
Жыл бұрын
@@lucassouzasilva6842 He just said marshalling causes slowdowns. Read bro. And it's also rather obvious you wouldn't want to do that in an RTOS.
this is my daily routine
"Sir, we just asked whether you know React or not?"
very easy to follow 10/10
Truly the programming language of all time.
Imagine your programming teacher telling you to code a fucking missile as homework 🤣
Guess I'm making a missle now
The missile doesn’t know where it is
you're a fucking hero my guy, thankyou very much.
OK well this makes much more sense thanks
Awesome1!!!!!
I dont know any javascript nor am i trying to learn, but i assume this is funny, so, good job!
I feel like i'm in a watchlist now just for clicking on this.