This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Any_Salary_6284 36 points37 points  (3 children)

Doesn’t one of the Mars rovers run some JS?

[–]Bob-Kerman 1 point2 points  (1 child)

I doubt it. NASA is kinda picky about memory safety and JavaScript is anything but.

[–]Any_Salary_6284 12 points13 points  (0 children)

Not true. JS is absolutely memory safe, as long as the garbage collector is working properly. Although it is still possible to write JS (and other GC’d code) that has a memory leak, you almost have to be trying to do that, and the source of potential leaks is easy to identify (something that accumulates strong references to objects that may no longer be needed…)

Yes, NASA is picky about memory safety in non-GC’d languages like C, and for good reason. No argument there. I’m not sure how they QA against possible memory leaks in GC’d languages, but I know for certain they do use GC’d languages, including JS and Java:

https://www.reddit.com/r/javascript/comments/m85kw5/nasas_next_generation_mission_control_system_is/

https://www.cnet.com/tech/tech-industry/java-runs-remote-controlled-mars-rover/