Click here to Skip to main content
15,891,136 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
AnswerRe: Octopus Pin
Daniel Pfeffer12-Dec-21 21:31
professionalDaniel Pfeffer12-Dec-21 21:31 
JokeRe: Octopus Pin
Richard Deeming12-Dec-21 21:52
mveRichard Deeming12-Dec-21 21:52 
AnswerRe: Octopus Pin
DerekT-P13-Dec-21 0:13
professionalDerekT-P13-Dec-21 0:13 
GeneralRe: Octopus Pin
oofalladeez34313-Dec-21 15:48
professionaloofalladeez34313-Dec-21 15:48 
AnswerRe: Octopus Pin
CodeWraith13-Dec-21 0:16
CodeWraith13-Dec-21 0:16 
AnswerRe: Octopus Pin
Marc Clifton13-Dec-21 5:25
mvaMarc Clifton13-Dec-21 5:25 
GeneralRe: Octopus Pin
Gary R. Wheeler13-Dec-21 7:25
Gary R. Wheeler13-Dec-21 7:25 
GeneralThe kind of crap people get away with in an RTOS floors me Pin
honey the codewitch12-Dec-21 17:12
mvahoney the codewitch12-Dec-21 17:12 
A big one is not using synchronization primitives when running multithreaded code.

Even with multiple cores, you can time your code such that if you're careful, since everything operates at fixed latencies you don't need to synchronize.

For example, if you're rending a frame on a separate thread than you're drawing it, you are a okay, as long as you're always rendering *ahead* of where you are drawing. The schedulers on these devices are very simple, so you can actually get something like interlocked execution even across cores. Interrupts interfere with this, but in some situations, you don't need to worry about that.

I'm in principle okay with this, because it saves CPU and thus power, but OMG is it nasty.

I just spent some time retooling someone else's code to be single threaded because I was getting heap corruption and they weren't using synchronization primitives. I thought that was why. Nope. Something else is going on. It's not crashing or leaking (as best as I can tell without a debugger) though. It's only even reporting because of some memory guards that wrap allocations. This is what made me think of this.
Real programmers use butterflies

GeneralRe: The kind of crap people get away with in an RTOS floors me Pin
lmoelleb12-Dec-21 20:08
lmoelleb12-Dec-21 20:08 
GeneralRe: The kind of crap people get away with in an RTOS floors me Pin
Daniel Pfeffer12-Dec-21 21:28
professionalDaniel Pfeffer12-Dec-21 21:28 
GeneralRe: The kind of crap people get away with in an RTOS floors me Pin
honey the codewitch12-Dec-21 22:36
mvahoney the codewitch12-Dec-21 22:36 
GeneralRe: The kind of crap people get away with in an RTOS floors me Pin
obermd13-Dec-21 3:36
obermd13-Dec-21 3:36 
JokeIf global warming is real... Pin
OriginalGriff12-Dec-21 10:00
mveOriginalGriff12-Dec-21 10:00 
GeneralRe: If global warming is real... Pin
PIEBALDconsult12-Dec-21 12:36
mvePIEBALDconsult12-Dec-21 12:36 
GeneralRe: If global warming is real... Pin
OriginalGriff12-Dec-21 19:45
mveOriginalGriff12-Dec-21 19:45 
GeneralRe: If global warming is real... Pin
Daniel Pfeffer12-Dec-21 21:32
professionalDaniel Pfeffer12-Dec-21 21:32 
GeneralRe: If global warming is real... Pin
Sander Rossel12-Dec-21 22:57
professionalSander Rossel12-Dec-21 22:57 
GeneralRe: If global warming is real... Pin
Chris Losinger13-Dec-21 6:36
professionalChris Losinger13-Dec-21 6:36 
GeneralRe: If global warming is real... Pin
j snooze13-Dec-21 11:23
j snooze13-Dec-21 11:23 
JokeRe: If global warming is real... Pin
oofalladeez34314-Dec-21 9:54
professionaloofalladeez34314-Dec-21 9:54 
GeneralThe evolution of a coder Pin
honey the codewitch12-Dec-21 7:32
mvahoney the codewitch12-Dec-21 7:32 
GeneralRe: The evolution of a coder Pin
dandy7212-Dec-21 7:36
dandy7212-Dec-21 7:36 
GeneralRe: The evolution of a coder Pin
honey the codewitch12-Dec-21 7:38
mvahoney the codewitch12-Dec-21 7:38 
GeneralRe: The evolution of a coder Pin
Randor 12-Dec-21 8:34
professional Randor 12-Dec-21 8:34 
GeneralRe: The evolution of a coder Pin
honey the codewitch12-Dec-21 8:46
mvahoney the codewitch12-Dec-21 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.