News for hackers. Stuff that matters.
Re:Current use of Linux in spacecraft flight software (2017) by mch82 on Friday June 05, 2020 @10:25PM (#23436275)
Originally, the ZDNet article “From Earth to orbit with Linux and SpaceX” caught my attention (https://www.zdnet.com/article/from-earth-to-orbit-with-linux..., June 3, 2020). A little searching turned up this research paper, which investigates a range of vehicles beyond Falcon 9.
Re:Current use of Linux in spacecraft flight software (2017) by cblum on Saturday June 06, 2020 @02:19AM (#23437221)
> The Dragon spacecraft also runs Linux with flight software written in C++. The ship's touchscreen interface is rendered using Chromium and JavaScript.

I'm actually shocked by this statement. I would never trust JavaScript on a spacecraft.

Re:Current use of Linux in spacecraft flight software (2017) by Yaggo on Saturday June 06, 2020 @06:53AM (#23438280)
Sounds just like a great cost-effective "hack" that Elon's company would use. It's just an UI, a perfect fit for browser/javascript solution. (I don't mean "hack" in negative sense, but just doing things unconventionally.)

I'm actually amazed that Tesla's UI does not use similar solution but is Qt-based.

Re:Current use of Linux in spacecraft flight software (2017) by thunderbong on Saturday June 06, 2020 @06:06AM (#23438071)
Genuine question - why?

IMHO, most of the flak javascript gets is primarily due to 2 reasons -

1. Using javascript indiscriminately

2. Using javascript frameworks to a point where it becomes it's own universe and people end up with blinders unable to see anything else.

In both these cases, the issue is not as much as with the language as with the people (ab)using it.

Re:Current use of Linux in spacecraft flight software (2017) by throwaway_pdp09 on Saturday June 06, 2020 @07:11AM (#23438357)
I'm disturbed you should ask. Several answers but for me the main one is simplicity (lack of it).

Add to that, lack of explicit memory handling and dynamic typing at least. You could say you could use a small subset of the language, in which case you'd have to enforce that subset only is used, in which case you'd strip out the unused stuff from the language, and then you don't have javascript any more.

Re:Current use of Linux in spacecraft flight software (2017) by ballooney on Saturday June 06, 2020 @06:54AM (#23438285)
The astronauts are cargo. Dragon capsules have already been flown to the ISS without any of this stuff. It’s too unfair to call it decoration but it’s not far off that.
Re:Current use of Linux in spacecraft flight software (2017) by tjpnz on Saturday June 06, 2020 @07:48AM (#23438507)
For the flight critical stuff there are physical controls below the touch screens as backup.
Re:Current use of Linux in spacecraft flight software (2017) by craftit on Saturday June 06, 2020 @03:30AM (#23437450)
Though if you think about the number of hours of use and testing javascript and browser technology in general has had, maybe it does make sense.
Re:Current use of Linux in spacecraft flight software (2017) by asplake on Saturday June 06, 2020 @05:14AM (#23437786)
And yet every day I have to kill Chrome tasks for memory consumption...
Re:Current use of Linux in spacecraft flight software (2017) by jotm on Saturday June 06, 2020 @06:47AM (#23438242)
Firefox sits open with dozens of tabs for literally weeks... just saying :D
Re:Current use of Linux in spacecraft flight software (2017) by krisoft on Saturday June 06, 2020 @03:42AM (#23437484)
The James Webb Telescope uses a javascript interpreter too: https://www.stsci.edu/~idash/pub/dashevsky0607rcsgso.pdf
Re:Current use of Linux in spacecraft flight software (2017) by throwaway_pdp09 on Saturday June 06, 2020 @07:12AM (#23438363)
And web browsers often have js interpreters too. And if things screw up, what's the harm? These are different scenarios where lives matter in one, no the others.
Re:Current use of Linux in spacecraft flight software (2017) by ncmncm on Saturday June 06, 2020 @02:50AM (#23437330)
Claim is that it is used only for non-essential functions. I wonder if that will last...