News for hackers. Stuff that matters.
Re:The software that flies SpaceX rockets and starships by sgt on Wednesday December 29, 2021 @08:52AM (#29724769)
They're not running a dependency-ridden NodeJS backend with MongoDB and random cloud services? How are they even able to get to space?
Re:The software that flies SpaceX rockets and starships by ironmagma on Wednesday December 29, 2021 @01:02PM (#29727575)
They're only using C++ which has 1,853 pages worth of complexity[1] along with all the toolchains that go on top of it.

[1] https://www.iso.org/standard/79358.html

Re:The software that flies SpaceX rockets and starships by jcelerier on Wednesday December 29, 2021 @02:57PM (#29729250)
Most of the standard is taken by the description of the standard library ; the language specs ends at page 457 in C++20 (last draft). How long would be your language spec if every single function's documentation was part of it ?

To give a reference with other languages:

- This is a bit less than C# (whose standard language spec ends at page 462 in ECMA-364 2nd ed.).

- The python spec for 3.9.9 is 151 pages. Okay, but let's compare equivalent things in the C++ spec and Python spec: awaiting a coroutine.

* In Python (the whole "await" spec):

    Suspend the execution of coroutine on an awaitable object. Can only be used inside a coroutine function.

      await_expr ::= "await" primary 

    New in version 3.5.
* In C++ (5% of the "co_await" spec):

    The co_await expression is used to suspend evaluation of a coroutine (9.5.4) while awaiting completion of the computation represented by the operand expression.

      await-expression :
          co_await cast-expression

But, for C++ this is only the first sentence (which is not written in an abbreviated style but as a proper sentence). Then a whole page explains the semantics in detail, and gives a complete example of how to use it. The python spec is just insufficient in comparison.
Re:The software that flies SpaceX rockets and starships by ironmagma on Wednesday December 29, 2021 @03:03PM (#29729309)
I'm sure it would be long. The point was more that pretty much every (productive) development environment is complex.
Re:The software that flies SpaceX rockets and starships by yellow_lead on Wednesday December 29, 2021 @02:07PM (#29728630)
I'm sure they're using a strict subset of C++ but it is still complex. I wonder if they'll move to Rust some day.
Re:The software that flies SpaceX rockets and starships by horstmeyer on Wednesday December 29, 2021 @09:59AM (#29725342)
MongoDB is web scale, not universe scale.
Re:The software that flies SpaceX rockets and starships by Stevvo on Wednesday December 29, 2021 @11:24AM (#29726262)
You turn it on and it scales right up. Right up to space.
Re:The software that flies SpaceX rockets and starships by freemint on Wednesday December 29, 2021 @12:29PM (#29727113)
Would have been so more funny if you wrote "cloud scale".
Re:The software that flies SpaceX rockets and starships by api on Wednesday December 29, 2021 @12:58PM (#29727540)
It's interesting how much contempt people have around here for one of the most successful open source oriented companies in recent memory.

Most of the bad things about MongoDB are actually bad things about the NoSQL fad, and that fad was huge around here a few years ago.

Re:The software that flies SpaceX rockets and starships by andrewxdiamond on Wednesday December 29, 2021 @02:10PM (#29728669)
Mongo’s “return before write” behavior is what earned it this title. It makes it look better on benchmarks, convincing unwitting devs that it is a better choice.
Re:The software that flies SpaceX rockets and starships by 908B64B197 on Wednesday December 29, 2021 @03:49PM (#29729836)
Mongo and NoSQL, to me, are really symptoms of the Bootcamp craze that happened a few years ago.

It's way easier to understand than relational databases, can be simply browsed and retrieved as json (usefull when your only language is JS) and had good adapters for the cookie cutter frameworks used at the time. And you don't need to bother with a schema or joins.

There are use-cases for NoSQL but it's not a once size fits all solution.

Re:The software that flies SpaceX rockets and starships by freemint on Wednesday December 29, 2021 @01:27PM (#29727937)
I used NoSQL databases that are ACID.
Re:The software that flies SpaceX rockets and starships by indymike on Wednesday December 29, 2021 @02:52PM (#29729197)
I used acid and selected a nosql.
Re:The software that flies SpaceX rockets and starships by chinathrow on Wednesday December 29, 2021 @09:19AM (#29724981)
Re:The software that flies SpaceX rockets and starships by awestroke on Wednesday December 29, 2021 @09:56AM (#29725317)
That's the frontend. It's fed data by the main computer, but if it crashes nothing else is affected.
Re:The software that flies SpaceX rockets and starships by chinathrow on Wednesday December 29, 2021 @10:00AM (#29725353)
If it crashes and Dragon is in manual mode, then what?
Re:The software that flies SpaceX rockets and starships by jve on Wednesday December 29, 2021 @10:11AM (#29725459)
How about a response from SpaceX software guy that works on Dragon software, including these displays:

> Dragon is a fully autonomous vehicle, so it is capable of completing the trip to and from the ISS without any interaction from the crew. But the displays and button panel do provide the crew with capabilities should they need to take action due an unexpected scenario or emergency. As for the tablets and displays, the tablets themselves act as a sort of backup, and include copies of important data such as procedures. The displays themselves are designed to be fully redundant, so if a single display failed, the other 2 could fully take its place. Even if we were to experience a failure of all 3 displays, the crew has a button panel that can be used to initiate emergency responses, and ground commanding is also possible. > -Jarrett

https://old.reddit.com/r/spacex/comments/ncj4vz/we_are_the_s...

Re:The software that flies SpaceX rockets and starships by justin66 on Wednesday December 29, 2021 @11:17AM (#29726175)
"Spam in a can."
Re:The software that flies SpaceX rockets and starships by extropy on Wednesday December 29, 2021 @01:05PM (#29727628)
The manual controls are a separate system and would still work. And you can peer out of the window for navigation, Apollo style.
Re:The software that flies SpaceX rockets and starships by awestroke on Wednesday December 29, 2021 @10:06AM (#29725401)
How would I know? However, if you could think of that scenario, you can be 100% sure spacex thought of it over a decade ago and have measures to handle that situation
Re:The software that flies SpaceX rockets and starships by qwertyuiop_ on Wednesday December 29, 2021 @11:11AM (#29726108)
No Kubernetes and Blockchain ?