4 ms·
I take it you've never programmed embedded? Yeah, state sucks. But sometimes, you need a starting point, and diff from that. And, that's state. One of the saf
by crankylinuxuser 7y ago
I take it you've never programmed embedded?
Yeah, state sucks. But sometimes, you need a starting point, and diff from that. And, that's state.
One of the safe ways of handling global vars, is by having only a single non-interruptible function that can mutate global. And you have best make sure your global-mutating function is fast. You don't want to miss IRQs that might fire off but are blocked.
- sagichmal 7y agoYes, embedded is enough of a special case that I don’t consider it as part of a general purpose discussion on programming languages.
- mises 7y agoEricsson predicts 18 billion IoT devices by 2022. Those all need code written for them. Do you still consider embedded programming a "niche"? Maybe it's one specific case, but it's relevant and ought to be "part of the discussion". https://www.ericsson.com/en/mobility-report/internet-of-things-forecast https://www.ericsson.com/en/mobility-report/internet-of-thin...