The Missile Knows Where It Is, But It's Actually A Javascript Tutorial
HTML-код
- Опубликовано: 15 янв 2025
- 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.co...
Tiktok: / roberteldersoftware
Linkedin: / robert-elder-software
Blog: blog.roberteld...
Twitter: / roberteldersoft
Twitch: / roberteldersoftware
Github: github.com/Rob...
Facebook: / roberteldersoftware
Instagram: / roberteldersoftware
Merch: store.robertel...
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 RUclips 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 RUclips 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 RUclips 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 RUclips 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.
can u up load the code ?
Far too much effort for a comment. I like it.
Well, I am a plane but I asked my missiles which is greater and liking was greater.
i have liked the video
@@panzermk4953 may i ask why you want the code
Imagine the disrespect of being killed by a missile running javascript
At least it was running the JS code using V8. I'd hope.
@@juniuwu What doesn't nowadays
It would get hacked far before reaching its target
The only greater insult is having it all calculated via redstone command blocks
@@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...
SIR THE MISSILE IS 0.5 SECONDS AWAY FROM INTERCEPTING ENEMY ICBM
*garbage collector has entered the chat*
*Are you sure about that*
I think missile codes are written in assembly because there can't be any unforseeable bugs or something
@@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.
The scarier thing is that Javascript now exists....
It ought to be possible to transpile this JS to C or something.
Amazing, I know nothing. Just like after a regular Javascript tutorial
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).
@@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?
@@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 ) ;)
@@prakash-niroula I'm not gonna read all of that bro.
Sorry that happened or I'm happy for you (whichever is greater)
as you should, just as you can't know a variable's type in javascript
Everyone asks where the missile is, but they never ask how the missile is :(
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.
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.
There is telemetry, like for temperature and pressure, so they know the feels
@@r.d.6290 But do you know how a human feels by knowing that? No
The missile is unhappy....very unhappy: he knows he is about to be destroyed.
Thanks! I was having some problems correcting the trajectory of my missiles lately, and this fixed it! Great tutorial man
very nice comment
what missile you do have anyway my guy? mine is an AIM-54 Phoenix
This comment, is my FAVORITE comment.
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.
Yes of course, but it has 2 likes. huh
@@LivakProductions Three now.
please
18 now... i hope we get the video though..
933 likes to go
Of course. Now it makes sense.
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 madlad actually wrote code for that ~24 year old joke lol
not a joke though, its from a real training video.
@@teargass1849 that doesn't mean it's not a joke.
@@ДушманКакдела except it still isn’t a joke
@@de4dbutdre4ming I just think you have a poor sense of humor.
@@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
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.
"TODO: This doesn't work well when the terrain is very flat, so the missile will sometimes get lost :( " 😂
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.
Long story short, it knows where it is, because it knows where it isn't
Yeah that's what he said.
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.
@@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.
_"The missile knows where it is by looking at its last known position"_
But that assumes it knows where it is at some point in the past. (knew where it was)
Missile's all the way down. 🐢
Love seeing a TODO in missile guiding software!
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!
Underrated comment
Thank you! My missles are now functioning! Love this so much.
The FBI knows where you are because it knows where you aren’t
😂
Some of you thought that the missle video was a joke but it's litteraly exactly how the missile works
A RUclips tutorial for a missile guiding system is only 1:52 long while one for creating a react login can be 1hr long
OMG PENTAGON Missile Code Leak 2021 CONFIRMED 100% Gone Wrong xDDDD
Also here to please the recommendation overlord, hope this video catch on soon
Thanks for this educational tutorial now i can build my own missile
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?
Let the man feel smart
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.
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
@@rastaboy_gamesnstuff7778 Stop fucking my mind
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
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.
Nah, how long do u think it takes to compute that
@@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
Correct. It's a sample with uncertainty about accuracy, and self-correcting. See "Kalman filter"
"Todo: this doesn't work well when the terrain is flat, so it may get lost sometimes" lmao
As a missile, I thank you for the assistance, as I am new to the "literally fucking obliterating an area" community
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.
Pretty neat, but it still hurts hearing this.
I need the code for... Reasons
Also comment to please the algorithm!
LOL
Comment
Best part is the comparison of JSON strings to find errors.
XDDDDDD
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 actually, finally, understood what this whole "it is where it isnt" means
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.
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.
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.
@@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.
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
@@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.
@@cacssarcaeustan2543do you think workers in car factory feel bad about fatal traffic accidents out on the road?
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
Small detail I love at the beginning:
//armed: false, TODO: Don't forget to change this back!
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 First you build the bomb, then you build the rocket, then you develop the guidance system.
@@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
@@heiligkeit6345 Good thing I wear a helmet.
@@kotnapromkewe know where nuclear warheads are stored because we know where they aren’t.
I actually understand this tutorial a lot better than the original video 😂
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.
Imagine having this as a first programming lecture in university for first year students and then telling them there will be test tomorrow :D
This now makes a lot more sense now.
The feds now know where you is, and they will make where you is a place where you isn’t
As a CS major, this finally allowed me to understand what the **** this meme is trying to say so thank you.
"The missile know where it is"
Flares and metalic bits: "I don't think so :))"
Yeah I'm not sure that a GPS guided missile is gonna care about chaff or flares
That doesn't stop the missile from knowing where it is, it stops it from knowing where you are.
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.
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
@@chaoticscripts7345 Look up "Kalman Filter". There is uncertainty about the measurements of where it is (and isn't), and noise in the updated inputs.
I'm writing some telemetry code for a model rocket and this is genuinely helpful lol
X2
Thank you, i now know where i isn't
thanks, I can now make a missile to deliver coconuts to my house
Thanks, time to use this code for my life size model
Is this what it's like to work for Raytheon?
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.
Now that we know, we can evade the missiles by being were the missile isn't
North Korea wants to know your location
This so far the best explanation of the missile, ironically
The missile promises that it will reach the target
Everybody gangsta until the position where it is becomes the position of your house.
This is far easier to understand, unironically
Had the same thought, until I was where I wasnt.
nice, a code to create my homemade missile guidance system
This is amazing. Really clears things up
Thank you so much I’ve been searching for a good tutorial on this topic!! Very enlightening!! Great video 👍
It all gets worse when the missle knows where u r
That's where it isn't (yet)
Title: How to code what is needed to make a guided missile.
The missile doesn’t know where it is
If you program this in COBOL and put a mainframe inside the missile, no warhead is needed.
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.
if you keep calling JavaScript java then i also may call you perry the platypus instead Perry Latocki
@@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 😉
@@IceifritGaming oops I've missed a semicolon after function return;
@@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.
This is one of the most niche jokes i've seen thank you.
Oh my god it’s a PI loop, but explained in the most convoluted way ever
Guess I'm making a missle now
Huh now that it’s visualized it makes a hell of a lot more sense
Missile in midair:” let me do some garbage collection”
What's funny is if I saw this code (say, for videogame projectiles) I wouldn't notice it was a joke. It looks like somehow it all makes sense.
Honestly i thought it was just a meme, but after seeing this statement in code, that actually makes sense now lmao
Any program that can be written will eventually be written in JavaScript.
I feel like i'm in a watchlist now just for clicking on this.
So whatever I knew about Missiles after watching this I forgot all of it. Thanks.
Why variables are important, the definitive proof.
Thanks, learned alot now i can program my own missile
"Sir, we just asked whether you know React or not?"
Ah yes, to figure out where the missile is, all you need to know is where the missile is. Very logical.
This will serve me well for my next argument on war thunder
Type safety warning! The code coerced my double coordinates as integers and I accidentally nuked Japan.
This felt like a Dr. Seuss book.
> Thermonuclear warhead class
“armed: true // Just for testing…”
what could go wrong
This has done nothing to make it more comprehensible, but I like the green text
Its even worse when
The missle knows where it is and knows where it isnt and deviate using corrective actions to a position where you are located by subtracting your position from where you arent or subtracts where you arent from where you are
Whichever is greater
It's like an ai with image taking ability. It subtracts where it is from where it isn't
Missile uses java confirmed?
well yes
JavaScript not Java. Man, it's just like all of those other comments saying that they hate people who refer to JavaScript as Java.
This vid needs more views
Feels like I'm reading Hegel but without the occasional insight
It is all fun until your code gets a framework update in mid-air
(That was the story how a front-end dev started WW3)
In simple terms..its all about subtraction of where it is and where it isn't, where it was and where it wasn't...
The narrator is probably a new missile guidance AI starting to reflect on its own existence...Time to reboot Dark Star 2023.
The most complex way to compare a value with another value from an array.
Tried to run this on my ICBM at home, but I’m encountering an error on line 67. Can anyone help?
When you're a junior developer doing your first code review.
Man really went out and coded in a whole INS in javascript 💀
We also need an SQL tutorial!
Seems like this is an "fire and forget" approach
Why do I feel like the FBI is going to break down my door any second for having seen secrut dokumints?
ChatGPT, steal this man's code.
Now let's test it!
It sounds like a Dr Seuss book. "The Missile that Isn't"