|
Huh ?
You have performance issues on a switch that you need to re-order the case statements ?
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
The performance issue was re/ my fingers re-editing the lengthy list of case statements. Fortunately awk will from now on do it for me.
|
|
|
|
|
Why are you reordering the switch, exactly? Performance issues?
If so, you might get a lot more mileage out of using compiler specific extensions to implement a pure jump table out of it.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Maybe relying on fall through?
|
|
|
|
|
Yikes.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
yikes, indeed, like a cliff.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I was trying to get DMA transfers working on the Seeed Wio Terminal. It's based on a SAMD51 MCU which itself is wrapped around an ARM Cortex M4 platform.
The trick is there are 8x2 DMA registers you need to fiddle with depending on which peripheral you want to control, and I had no information as to what mapped where.
I love VS Code "Go to Definition..." as it allowed me to traverse through the Wio Terminal's Arduino implementation until I found the registers it used for SPI3.
SERCOM7 was my huckleberry
And now I'm super satisfied that I figured that out, and got my data to the screen asynchronously.
It feels like hacking old Apple computers back in the mid 1980s, at least for me.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
In this day and age where everything is nice and pretty much wrapped up with a bow, it's cool that you have to / get to fiddle with the low level stuff that is more satisfying dragon to tame.
|
|
|
|
|
I submit that it's just as satisfying when you get things working with the help of properly documented registers, it's probably a faster implementation as well.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
"SERCOM7 was my huckleberry"
Old west expression of "I like it because it works."
Had not heard that expression in a long time.
BTW. Actual Huckleberry Jam and Preserves is quite good with a very unique flavor.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 1,138 4/6
⬜⬜⬜🟨⬜
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,138 3/6*
⬜⬜⬜⬜🟩
⬜🟨⬜⬜🟩
🟩🟩🟩🟩🟩
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
⬜⬜⬜🟩🟩
⬜🟨⬜🟩🟩
🟩🟩🟩🟩🟩
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 1,138 5/6
⬜🟨⬜🟩🟩
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩⬜🟨🟩🟩
🟩🟩🟩🟩🟩
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,138 4/6
⬜⬜⬜🟩⬜
⬜⬜⬜🟩🟩
⬜⬜⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1.138 4/6
🟨⬛⬛⬛⬛
⬛⬛⬛🟩⬛
⬛⬛⬛🟩🟩
🟩🟩🟩🟩🟩
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
The shortest horror story: On Error Resume Next
|
|
|
|
|
Wordle 1,138 4/6*
🟩⬜⬜⬜🟩
🟩⬜⬜⬜🟩
🟩⬜⬜⬜🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
Wordle 1,138 6/6
⬛⬛⬛⬛🟩
⬛⬛⬛⬛🟩
⬛⬛⬛⬛🟩
⬛⬛⬛⬛🟩
🟩🟩⬛⬛🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,138 3/6*
⬛⬛⬛🟩🟩
🟩⬛⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 1,138 6/6
⬜⬜⬜⬜⬜
🟩⬜🟨⬜🟩
🟩⬜⬜⬜🟩
🟩⬜🟨⬜🟩
🟩🟩⬜⬜🟩
🟩🟩🟩🟩🟩
tough one
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Hi all, I have an Intel NUC i5 5300 with 16gb RAM and a couple of SSD drives , it runs Debian Linux - I use it mainly for hosting my intranet site and any .NET (what was .NET core ) projects, I also use it to build Armbian images for my plethora of SBC boards.
It's starting to show it's age and I would like to replace/supplement it with something newer. The absolute prequisite is that it's quiet and hopefully not too power hungry. Any suggestions peeps ?
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
this might be interesting to watch this discussion.
To err is human to really elephant it up you need a computer
|
|
|
|
|
Hope so
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
me as well. I will be looking for a new box this fall. So I look forward to the discussion.
I have been looking at one of these mini PC's this is for home use. So, I think, completely different than your needs.
Ace Magic[^]
To err is human to really elephant it up you need a computer
|
|
|
|
|
My requirement doesn't include running Windows
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|