6 ms·
The thing that distinguishes an engineer from a bodger is not just observing what works but understanding why, how, and to what margin of safety it works. The
by pjc50 10y ago
The thing that distinguishes an engineer from a bodger is not just observing what works but understanding why, how, and to what margin of safety it works.
The reason the "realtime" designation exists at all is that, in a realtime system, it is possible to say what the worst-case timing is for any operation, and to guarantee by design what failure conditions can and cannot happen.
You cannot guarantee in a python program the timing of your GC. You can't even guarantee that the whole thing won't fall over with an exception.
And we've already had this problem with the Toyota "unintended acceleration" bug, in the (far simpler) electronic throttle system: https://users.ece.cmu.edu/~koopman/pubs/koopman14_toyota_ua_slides.pdf https://users.ece.cmu.edu/~koopman/pubs/koopman14_toyota_ua_... - and that was using C, but not in an appropriate style (MISRA or similar).
(89 dead, cost Toyota billions)
- drvdevd 10y agoBelieve it or not - many folks coding out there don't even understand the meaning "real time" in this designation. I recall asking some colleagues in a conversation, "So when you say 'real time' do you mean hard or soft?" To which they replied, "Just, real time, like in real time." I gave up pressing the point when I realized they simply meant "interactive" and didn't know such a designation existed.
- anonred 10y agoHard real time is really only applicable when designing critical systems. Unless your anecdotal conversation was about one of those systems, it's pedantic to not simply infer soft/firm real time.
- drvdevd 10y agoI agree. And yes though that is inferrable from my anecdote, in fact I wasn't being pedantic. I actually probably used the terminology wrong myself, but all I really meant was, "what are your latency requirements in this system? How real time?" It was a conversational confusion because they kept using the term and I thought they were using it technically. When I realized they weren't, I didn't bother trying to correct them... [edit] I'll add this conversation stuck out in my mind simply because I was a bit surprised that no one knew what I was talking about, that's all.
- wedesoft 10y agoPython uses reference counting. The garbage collector is only required for cyclic references and can be disabled.
- agumonkey 10y agoThe C code was a byproduct of some higher end framework isn't it ? (Still doesn't forgive the stupid errors that went into but..)