Click here to Skip to main content
15,867,328 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.

 
GeneralRe: Is the way to stop cyber attacks to simply have the Russian keyboard installed? Pin
David Crow15-May-21 5:58
David Crow15-May-21 5:58 
GeneralRe: Is the way to stop cyber attacks to simply have the Russian keyboard installed? Pin
Nelek15-May-21 8:34
protectorNelek15-May-21 8:34 
GeneralRe: Is the way to stop cyber attacks to simply have the Russian keyboard installed? Pin
abmv15-May-21 8:07
professionalabmv15-May-21 8:07 
GeneralRe: Is the way to stop cyber attacks to simply have the Russian keyboard installed? Pin
Chris Losinger15-May-21 11:07
professionalChris Losinger15-May-21 11:07 
GeneralRe: Is the way to stop cyber attacks to simply have the Russian keyboard installed? Pin
Jörgen Andersson15-May-21 11:27
professionalJörgen Andersson15-May-21 11:27 
GeneralRefactoring woes Pin
honey the codewitch14-May-21 8:30
mvahoney the codewitch14-May-21 8:30 
GeneralRe: Refactoring woes Pin
Gerry Schmitz14-May-21 9:15
mveGerry Schmitz14-May-21 9:15 
GeneralRe: Refactoring woes Pin
honey the codewitch14-May-21 13:19
mvahoney the codewitch14-May-21 13:19 
Yeah, that structure wouldn't really serve me here, and I don't have events as such. I do have one callback but I try to limit those at this level because program code doesn't live in ram on these little monsters, so no matter how efficient you write it, it still has to load it from flash over an SPI serial interface. Since the code *is* cached it is similar to a cache line issue you'd face in perf tuning for say a modern PC except the cache is terribly small. The same rules apply though - keep your code small, and the locality tight, and excessive callbacks like an event based model get in the way of that here. Not that it's impossible. It's just an uphill battle to make it work efficiently, so you end up losing more than you save here.

I did work out a model eventually but backporting the code to make it work in the new system is a bear. The code was mostly copy pasted for the first three drivers because the goal wasn't to use that in production, but to use it as a prototype to flesh out the design. Well I did that, but I'm questioning whether it would be easier to just rewrite the drivers over the generalized layer rather than trying to port the existing code. Oh well, I'll work it out.
Real programmers use butterflies

GeneralRe: Refactoring woes Pin
Sander Rossel15-May-21 8:53
professionalSander Rossel15-May-21 8:53 
GeneralRe: Refactoring woes Pin
honey the codewitch15-May-21 9:13
mvahoney the codewitch15-May-21 9:13 
GeneralRe: Refactoring woes Pin
Sander Rossel15-May-21 9:31
professionalSander Rossel15-May-21 9:31 
NewsLatest on the pipeline folk Pin
Kent Sharkey14-May-21 7:29
staffKent Sharkey14-May-21 7:29 
GeneralRe: Latest on the pipeline folk Pin
OriginalGriff14-May-21 8:05
mveOriginalGriff14-May-21 8:05 
GeneralRe: Latest on the pipeline folk Pin
dandy7214-May-21 9:02
dandy7214-May-21 9:02 
GeneralRe: Latest on the pipeline folk Pin
Gerry Schmitz14-May-21 9:22
mveGerry Schmitz14-May-21 9:22 
GeneralOops, haven't seen one of those for years ... Pin
Richard MacCutchan14-May-21 6:12
mveRichard MacCutchan14-May-21 6:12 
GeneralRe: Oops, haven't seen one of those for years ... Pin
Johnny J.14-May-21 6:14
professionalJohnny J.14-May-21 6:14 
GeneralRe: Oops, haven't seen one of those for years ... Pin
Rick York14-May-21 7:06
mveRick York14-May-21 7:06 
GeneralRe: Oops, haven't seen one of those for years ... Pin
dandy7214-May-21 8:35
dandy7214-May-21 8:35 
GeneralRe: Oops, haven't seen one of those for years ... Pin
Maximilien14-May-21 8:36
Maximilien14-May-21 8:36 
GeneralRe: Oops, haven't seen one of those for years ... Pin
Dave Kreskowiak14-May-21 13:31
mveDave Kreskowiak14-May-21 13:31 
GeneralRe: Oops, haven't seen one of those for years ... Pin
Daniel Pfeffer15-May-21 7:28
professionalDaniel Pfeffer15-May-21 7:28 
GeneralThought of the Day Pin
OriginalGriff14-May-21 4:27
mveOriginalGriff14-May-21 4:27 
GeneralRe: Thought of the Day Pin
Johnny J.14-May-21 5:08
professionalJohnny J.14-May-21 5:08 
GeneralRe: Thought of the Day Pin
DRHuff14-May-21 5:09
DRHuff14-May-21 5:09 

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.