News for hackers. Stuff that matters.
Re:Autopilot: an open source driving agent by pjc50 on Wednesday November 30, 2016 @05:06PM (#13075152)
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_... - and that was using C, but not in an appropriate style (MISRA or similar).

(89 dead, cost Toyota billions)

Re:Autopilot: an open source driving agent by drvdevd on Wednesday November 30, 2016 @05:47PM (#13075419)
Believe 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.
Re:Autopilot: an open source driving agent by anonred on Wednesday November 30, 2016 @06:15PM (#13075570)
Hard 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.
Re:Autopilot: an open source driving agent by drvdevd on Wednesday November 30, 2016 @06:26PM (#13075640)
I 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.

Re:Autopilot: an open source driving agent by wedesoft on Saturday December 03, 2016 @10:12AM (#13095938)
Python uses reference counting. The garbage collector is only required for cyclic references and can be disabled.
Re:Autopilot: an open source driving agent by agumonkey on Thursday December 01, 2016 @02:57AM (#13077953)
The C code was a byproduct of some higher end framework isn't it ? (Still doesn't forgive the stupid errors that went into but..)