|
Best wishes for your health and sanity ... age is a bitch, and a blessing
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
If you need to view the relative size of a banana merely visit this link
Banana - Wikipedia[^]
It takes a few moments for the final image to be displayed after the initial page is displayed so be a bit patient
|
|
|
|
|
That is very unhelpful.
I have no access to tear-gas canisters with which to measure my bananananananana*
* Like others, I don't know how to stop: "Witches Abroad", the late, great pTerry: Nanny Ogg knew how to start spelling 'banana', but didn't know how you stopped.
"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!
|
|
|
|
|
T.P. Is my hero too. I have almost every book he wrote and have read all of them multiple times.
I am still looking for an Igor, and a good glass of splot.
ed
|
|
|
|
|
Likewise: I think I have them all, and they are all read several times.
I have two copies of one (The Last Hero) because I bought it when it came out, and my elder brother queued for hours to get a copy autographed by pTerry for my birthday ...
Oh, and I bought them again in electronic format when I switched from paper to eReaders.
But the hardest one to read was The Shepherd's Crown - I had it for months before I read it; I just couldn't face reading it knowing it was the last ever pTerry I'd read for the first time.
I'm a sad old bugger sometimes!
"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!
|
|
|
|
|
Sir Terry is (was?) one of my all-time favorite authors.
If you think 'goto' is evil, try writing an Assembly program without JMP.
|
|
|
|
|
|
Despicable Me 2 | Minions Banana Song (2013) SNSD TTS - YouTube[^]
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
|
|
Of the first four five or six I don't recall now how many of Mr. Yusuf's first albums which are in my collection before he became Mr. Yusuf that was the one and only song I did not care for However I enjoyed seeing him in concert via the link you provided something I only did once and happened to be live however I had the nose bleed seats and couldn't pick him out if he was my brother - Kind Regards
|
|
|
|
|
|
There’s a support group for people who can’t stop talking. It’s called On-and-On Anon.
I’m going to bed, so I’ll get my blankets. It’s cold here.
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
Where is it? I need to sign my wife up!
ed
|
|
|
|
|
My wife once told me that I needed a support group for recovering backpackers. I told her that 12 steps wasn't a very long backpacking trip.
|
|
|
|
|
I just love them. They're like little puzzle pieces you can use to solve really complicated problems.
I can't stand debugging them, but I love creating them and watching them make the compiler do really neat things in funny ways.
I don't look for excuses to use them, because they're hard to debug, but I enjoy them when they are the right tool for the job. They're incredibly versatile, and I think fun to create.
Does that make me a nerd?**
** It's okay if it does, I'm just looking for a frame of reference.
Real programmers use butterflies
|
|
|
|
|
|
Hard to debug because when you have chains of them it can be hard to know which ones are even being compiled.
Real programmers use butterflies
|
|
|
|
|
|
In my GFX project I allow drivers to expose different methods depending on what their hardware supports. GFX will use them when available for better performance.
You tell gfx what you want by exposing a caps "using" and filling it with what you support like this:
Supports only batching:
using caps = gfx::gfx_caps<false,false,true,false,false,false,false>;
Supports everything but read ops and direct blts:
using caps = gfx::gfx_caps<false,false,true,true,false,false,false>;
Each of those fields has a named argument to tell you what it is, so it's not as confusing as it looks.
If you mark a field as true, you *must* implement the methods necessary to support that feature. For example, if you mark your target as readable, you must implement the method to read a pixel from its framebuffer.
This caps template is examined through partial template specializations, and the different methods are called based on its values. It chooses the best method it can to perform an operation, and falls back when the caps doesn't support it.
This isn't really possible to do any other way, except at runtime, and that comes with lots of overhead and additional code size for unused code.
Real programmers use butterflies
|
|
|
|
|
This is graphics related, so it took me a moment to realize that caps meant capabilities, not capitalization.
I think you want to flip the trues and falses in the second example.
I assume the non-template way would be to have an abstract Driver class define virtual functions that return false, with each driver overriding the ones that it supports and returning true?
|
|
|
|
|
No, there's actually more read operations than write. Although posting that did make me realize I turned off asynchronicity on that driver. Edit: Never mind, async is not supported under Arduino. I forgot I was looking at that and not the ESP-IDF driver.
Yes, the non-template way would require a virtual class, but then it couldn't do things like taking non-native pixel formats. Every pixel format is its own type. gfx::rgb_pixel<16> nets you a 16 bit RGB pixel, but it's a different type than gfx::rgb_pixel<24> or gfx::yuv_pixel<24>;
Real programmers use butterflies
modified 14-Nov-21 13:17pm.
|
|
|
|
|
For readability, you could introduce a new type/enum for each parameter that converts to a boolean.
That way it would say BATCH/NOBATCH, etc
If you have a unique type for each cap, then you could not accidentally transpose parameters in the long list of booleans.
I think you could figure out a way that the compiler would enforce it all without making the runtime any larger?
My C++ is very rusty, but I have faith that you can figure it out if you think it has merit. 😊
|
|
|
|
|
Yeah, I could do that, but with approaching 600 downloads here, and with over 30 stars on github i'm not sure I want to make such a big breaking change. caps is used *everywhere*
Real programmers use butterflies
|
|
|
|
|
Random content to just check something.
I need someone to answer here with a message, please
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|