Click here to Skip to main content
15,880,651 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: Programming peeve of the Day Pin
Wizard of Sleeves11-Mar-21 23:25
Wizard of Sleeves11-Mar-21 23:25 
GeneralRe: Programming peeve of the Day Pin
JohaViss6111-Mar-21 23:44
professionalJohaViss6111-Mar-21 23:44 
GeneralRe: Programming peeve of the Day Pin
BernardIE531712-Mar-21 2:48
BernardIE531712-Mar-21 2:48 
GeneralRe: Programming peeve of the Day Pin
obermd12-Mar-21 3:17
obermd12-Mar-21 3:17 
GeneralRe: Programming peeve of the Day Pin
agolddog12-Mar-21 4:12
agolddog12-Mar-21 4:12 
GeneralRe: Programming peeve of the Day Pin
jmaida12-Mar-21 6:09
jmaida12-Mar-21 6:09 
GeneralRe: Programming peeve of the Day Pin
Gerry Schmitz12-Mar-21 8:28
mveGerry Schmitz12-Mar-21 8:28 
GeneralI never liked writing graphics libraries Pin
honey the codewitch11-Mar-21 6:39
mvahoney the codewitch11-Mar-21 6:39 
I've been writing a little graphics library for C++ capable IoT devices.

The first thing I wanted to do was make JPEG loading work. I did that. I can't load JPEGs into memory all at once on such a little device so it required me to implement my own stream classes because std::iostream is too bloated and way to hard to implement over a simple memory buffer, even if it wasn't bloated because of the templates. On PCs I don't mind, but on these IoT things how much space your code takes up matters, and not just in RAM. So the JPEGs required a stream library.

In terms of getting things onto the displays, there is no unified driver or hardware interface for any display adapters, so now my graphics library requires a tiny interface a bit like DirectDraw.

And because device i/o is slow, it would be impossible to do anything without being able to exploit any asynchronous DMA capabilities of the hardware available, so *now* my library requires abstract interfaces to provide an asynchronous graphics operations model

All this elephanting code. And that's before I even start writing actual drivers for say an ILI9341 or an RA8875 LCD hardware controller.

Heck that's before I even start implementing basic things like line drawing and filling, or heaven forbid, fonts.

*headdesk*

I love coding for these little things because you're so close to the metal, but when you want to go your own way with something, because existing offerings are too heavy or limited, you have to start over from scratch.
Real programmers use butterflies

GeneralRe: I never liked writing graphics libraries Pin
pkfox11-Mar-21 7:25
professionalpkfox11-Mar-21 7:25 
GeneralRe: I never liked writing graphics libraries Pin
W Balboos, GHB11-Mar-21 8:12
W Balboos, GHB11-Mar-21 8:12 
GeneralRe: I never liked writing graphics libraries Pin
Rick York11-Mar-21 11:00
mveRick York11-Mar-21 11:00 
GeneralRe: I never liked writing graphics libraries Pin
honey the codewitch12-Mar-21 3:38
mvahoney the codewitch12-Mar-21 3:38 
GeneralRe: I never liked writing graphics libraries Pin
Rick York12-Mar-21 6:15
mveRick York12-Mar-21 6:15 
GeneralRe: I never liked writing graphics libraries Pin
honey the codewitch12-Mar-21 8:22
mvahoney the codewitch12-Mar-21 8:22 
GeneralRe: I never liked writing graphics libraries Pin
Daniel Pfeffer11-Mar-21 22:21
professionalDaniel Pfeffer11-Mar-21 22:21 
GeneralRe: I never liked writing graphics libraries Pin
honey the codewitch12-Mar-21 3:29
mvahoney the codewitch12-Mar-21 3:29 
GeneralRe: I never liked writing graphics libraries Pin
Gary R. Wheeler12-Mar-21 10:35
Gary R. Wheeler12-Mar-21 10:35 
GeneralRe: I never liked writing graphics libraries Pin
honey the codewitch12-Mar-21 10:46
mvahoney the codewitch12-Mar-21 10:46 
GeneralStart baking a pie Pin
Cp-Coder11-Mar-21 4:54
Cp-Coder11-Mar-21 4:54 
GeneralRe: Start baking a pie Pin
OriginalGriff11-Mar-21 5:15
mveOriginalGriff11-Mar-21 5:15 
GeneralRe: Start baking a pie Pin
Cp-Coder11-Mar-21 5:29
Cp-Coder11-Mar-21 5:29 
GeneralRe: Start baking a pie Pin
OriginalGriff11-Mar-21 5:46
mveOriginalGriff11-Mar-21 5:46 
GeneralRe: Start baking a pie Pin
DRHuff11-Mar-21 6:51
DRHuff11-Mar-21 6:51 
GeneralRe: Start baking a pie Pin
theoldfool11-Mar-21 5:57
professionaltheoldfool11-Mar-21 5:57 
GeneralRe: Start baking a pie Pin
W Balboos, GHB11-Mar-21 6:22
W Balboos, GHB11-Mar-21 6:22 

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.