are the 50hz chips manufactured at 50hz ? or are they downclocked to 50hz. why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?
If I understood it correctly, they’re not talking about a chip literally running at 50Mhz. They’re talking about polling a sensor in a loop running on a 50Mhz timer. The processor doing that is certainly running at a much higher clock frequency
Exploring the software that flies SpaceX rockets and starships
91–100 of 118 posts
Re: Exploring the software that flies SpaceX rockets and starships
#92are the 50hz chips manufactured at 50hz ? or are they downclocked to 50hz. why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?
If I understood it correctly, they’re not talking about a chip literally running at 50Mhz. They’re talking about polling a sensor in a loop running on a 50Mhz timer. The processor doing that is certainly running at a much higher clock frequency
Re: Exploring the software that flies SpaceX rockets and starships
#93Earlier quoted context omitted.
Nope, more likely there are internal CPU timers which emits hardware interrupts on which the tasks are performed
No, he is correct. Alot of embedded software uses a more complex form of that exact technique that he is shown in the code. You technically can have a dedicated timer interrupt for every task but there are usually alot more tasks than HW timers, so instead they use a dedicated HW timer for time-keeping and use that as reference for all other tasks.
Re: Exploring the software that flies SpaceX rockets and starships
#94are the 50hz chips manufactured at 50hz ? or are they downclocked to 50hz. why cant you use higher clocked speeds ? like even 500 mhz, etc ? is there something special about 10 and 50hz ?
That's the number of times per second the main update code runs and it has nothing to do with the number of clock cycles or instructions per second the CPU can run (other than the fact that the chip needs to be fast enough to have the update code finish before the next time it needs to start).
Re: Exploring the software that flies SpaceX rockets and starships
#95Earlier quoted context omitted.
I think we've solved the GC vs Manual debate. Just add more RAM and explode your computer when it's done running
Very funny. But leak memory until you have to restart the process seems to be a very common strategy in practice. The programs explode even if the computer doesn't.
Re: Exploring the software that flies SpaceX rockets and starships
#96Earlier quoted context omitted.
I had once thinking about this type of system, and later found that the SNMP(1988) as well as NIST/Army 4D/RCS project(1980s) had this train of thought before I was even born. Now I'm wondering why this type of distributed, synchronized, hard realtime decision making framework don't seem to exist as some Apache Foundation project or something. It just sounds right and massively useful but I can't find an implementati…
See the Beam/OTP as part of Erlang and now Elixir, Gleam, etc. Erlang came out of Ericcson when they were building giant telephone switches. Nowadays things like RabbitMQ and WhatsApp run on the Beam VM. The beam handles both local and remote nodes, mostly transparently. Then there are things like Nomad or k8s which try to tackle the problem more like *nix(linux/BSD/etc) does, but across multiple nodes. These are not…
Re: Exploring the software that flies SpaceX rockets and starships
#97Earlier quoted context omitted.
I had once thinking about this type of system, and later found that the SNMP(1988) as well as NIST/Army 4D/RCS project(1980s) had this train of thought before I was even born. Now I'm wondering why this type of distributed, synchronized, hard realtime decision making framework don't seem to exist as some Apache Foundation project or something. It just sounds right and massively useful but I can't find an implementati…
That’s mostly how kubernetes works also. It’s not that uncommon of a pattern
Re: Exploring the software that flies SpaceX rockets and starships
#98Earlier quoted context omitted.
They've been known to leak memory ... https://devblogs.microsoft.com/oldnewthing/20180228-00/?p=98... >This sparked an interesting memory for me. I was once working with a customer who was producing on-board software for a missile. In my analysis of the code, I pointed out that they had a number of problems with storage leaks. Imagine my surprise when the customers chief software engineer said "Of course it leaks". H…
That is a great story, but I cringed at the part about adding additional hardware to support their leaky code. Surely there had to be a better way?
Re: Exploring the software that flies SpaceX rockets and starships
#99Earlier quoted context omitted.
If I understood it correctly, they’re not talking about a chip literally running at 50Mhz. They’re talking about polling a sensor in a loop running on a 50Mhz timer. The processor doing that is certainly running at a much higher clock frequency
To clarify, its 50Hz not 50MHz
Re: Exploring the software that flies SpaceX rockets and starships
#100Earlier quoted context omitted.
That’s mostly how kubernetes works also. It’s not that uncommon of a pattern
This is not how Kubernetes works. The concepts are completely different (pod, allocation etc.)