|
|
|
|
My hubby is in the backyard building FSM only knows what for the chickens.
I'm in here trying to work out a problem at runtime that I solved at compile time already in spades.
And I realize how spoiled I am by template metaprogramming. Some problems are actually *easier* to solve at compile time using the aforementioned technique. That kind of caught me by surprise, actually, until I ran into it.
I'm having to convert digital audio samples from one bit depth to the other, one sample rate to the other, one channel config to another and composing something to do so efficiently at run time on a tiny device.
I do something similar in my GFX library at compile time no problem, because I can pseudo-dynamically manipulate types themselves, which can make things much easier, particularly when you don't know the size of your data ahead of time.
I was thinking of making a daisy chaining jump table to do each of the conversions in turn, and build that table at run time. Each function in the jump table would a read buffer to a write buffer, performing one of the conversion steps but it seems rickety and complicated.
I'm not looking for solutions here - I'm good with the challenge - just vent/praising C++ compile time vs anything else (including C++) at runtime.
I did like being surprised by a compile time problem being much easier that a runtime problem using metaprogramming techniques.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Nice!
|
|
|
|
|
I cannot believe it.
To me, C++ metaprogramming is just hieroglyphs.
Anyway, error reporting should make you feel better.
"In testa che avete, Signor di Ceprano?"
-- Rigoletto
|
|
|
|
|
Don't care about C++, Show us the chickens .
CI/CD = Continuous Impediment/Continuous Despair
|
|
|
|
|
Wordle 398 3/6
⬜⬜⬜⬜⬜
⬜⬜🟨⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 398 4/6
⬜🟨⬜⬜⬜
⬜⬜🟨🟨⬜
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
Your third is one hell of a leap! Well done!
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Peter_in_2780 wrote: Your third is one hell of a leap!
Not the only one either. Makes me wonder if people have different answers
|
|
|
|
|
Wordle 398 5/6
⬛🟩⬛⬛⬛
⬛🟩⬛🟩⬛
⬛🟩⬛🟩⬛
⬛🟩⬛🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 398 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!
|
|
|
|
|
Wordle 398 4/6
⬜⬜⬜⬜⬜
⬜⬜⬜⬜🟨
⬜⬜🟩⬜⬜
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 398 4/6
⬛⬛🟨⬛🟨
⬛⬛⬛⬛🟩
⬛⬛⬛🟩⬛
🟩🟩🟩🟩🟩
I understood the last 4 letters but I didn't know the word, so I had to cheat this time
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
|
|
|
|
|
Wordle 398 5/6
🟨⬜⬜⬜🟨
⬜⬜⬜⬜⬜
⬜⬜⬜⬜🟨
🟩🟩⬜⬜⬜
🟩🟩🟩🟩🟩
Had to look up this word after I guessed it correctly (this is one of those words metal bands like to use ).
How did you go from two to three?
|
|
|
|
|
Sander Rossel wrote: How did you go from two to three?
I know right. I always struggle with that.
I bet he cheated and counted on his fingers
|
|
|
|
|
Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count, neither count thou two, excepting that thou then proceed to three. Five is right out.
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 first word which came to my mind, having no vowels, was this, and it worked.
|
|
|
|
|
Wordle 398 5/6
⬜⬜⬜⬜⬜
⬜⬜⬜⬜🟩
⬜🟩⬜🟩🟩
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
Life should not be a journey to the grave with the intention of arriving safely in a pretty and well-preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming “Wow! What a Ride!" - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 398 3/6*
⬜⬜🟨🟩🟩
🟩🟩⬜🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 398 4/6
🟨🟨⬛🟨⬛
⬛⬛🟨🟩🟩
🟨⬛⬛🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 398 4/6
I am not sure what the word means, but I got it in 4!
⬛⬛⬛🟨⬛
⬛⬛🟨🟩🟩
⬛🟩⬛🟩🟩
🟩🟩🟩🟩🟩
Get me coffee and no one gets hurt!
|
|
|
|
|
Seriously, is my answer different than some of you? How are you getting that answer from basically no letters?
Wordle 398 5/6*
🟨🟨⬜⬜⬜
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
⬜🟩⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
When you've excluded a bunch of common letters, it really narrows down the possibilities.
|
|
|
|
|
Yes. I find sometimes it's not so much guessing the correct word as it is eliminating all other words.
|
|
|
|