|
22 years now
"God doesn't play dice" - Albert Einstein
"God not only plays dice, He sometimes throws the dices where they cannot be seen" - Niels Bohr
|
|
|
|
|
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
Wordle 830 4/6
⬜⬜⬜🟨🟩
🟩⬜⬜🟩🟩
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 830 6/6
⬜⬜🟩🟨⬜
🟩⬜🟩⬜🟩
🟩⬜🟩⬜🟩
🟩⬜🟩⬜🟩
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
Just short of being symmetrical.
|
|
|
|
|
⬜⬜⬜⬜🟩
⬜🟨⬜⬜🟨
🟩⬜🟩⬜🟩
🟩🟨🟩⬜🟩
🟩🟩🟩🟩🟩
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 830 5/6
⬜⬜⬜🟨⬜
🟨⬜⬜🟨⬜
⬜🟨⬜🟨🟨
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
“That which can be asserted without evidence, can be dismissed without evidence.”
― Christopher Hitchens
|
|
|
|
|
Wordle 830 2/6*
🟩⬜⬜🟩🟩
🟩🟩🟩🟩🟩
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Wordle 830 3/6
⬜⬜🟩⬜🟨
🟩🟨🟩🟨🟩
🟩🟩🟩🟩🟩
Almost had it in two!
|
|
|
|
|
Wordle 830 X/6*
⬜⬜⬜🟨🟩
🟩⬜🟩⬜🟩
🟩⬜🟩⬜🟩
🟩⬜🟩⬜🟩
🟩⬜🟩⬜🟩
🟩🟨🟩🟨🟩
Quit complaining!
|
|
|
|
|
Wordle 830 4/6
⬛⬛⬛⬛🟩
🟩⬛🟩⬛🟩
🟩🟨🟩⬛🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 830 4/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 830 3/6
⬛🟨⬛⬛🟩
🟩⬛⬛🟩🟩
🟩🟩🟩🟩🟩
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 830 5/6
⬛🟨⬛⬛⬛
⬛🟨⬛⬛🟩
⬛🟨⬛🟩🟩
⬛⬛🟩🟩🟩
🟩🟩🟩🟩🟩
Well, at least I made stairs.
Jeremy Falcon
|
|
|
|
|
Wordle 830 2/6
🟩🟨⬜⬜🟩
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 830 4/6
🟨⬜⬜🟨🟩
🟩⬜⬜🟩🟩
🟩⬜🟩🟩🟩
🟩🟩🟩🟩🟩
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
It would be great to do an exploration of binary vs source level binding in C++ but I'm not sure what you'd call it.
For example, a pure virtual class (interface) is a binary binding mechanism. You are essentially passing around a table of function pointers. You can pass a class *instance* as a *function* argument and bind to it at run time.
An example of "source level binding" (if you want to call it that) would be passing a class as a template argument to a template class, and then operating on the first class's methods from inside the second class.
Anyone have any ideas?
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Not sure I understand, but I have done this.
I have an large array of function addresses.
They are indexed by "name" using a hash table and executed at run time.
???
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I'm referring to a vtbl, which is created by the C++ compiler.
in memory it exists as an array of pointers to functions. However, each function signature is potentially different than the next.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
I understand. My implementation was pure C.
Not being a C++ expert, I may not be interpreting your approach the same.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
It was close. Subtract the hashtable, and make it so every pointer potentially points to a different sig of function. You can't make the construct yourself in pure C or C++ without hackery, but the C++ compiler makes them as I said.
What they do is they point to each "virtual" method in a class. Like in C#, virtual methods can be overridden. When that happens, the corresponding function pointer in the vtbl is corrected with the new function.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: ou can't make the construct yourself in pure C or C++ without hackery,
Not sure I believe that.
Following is pseudo code obviously but I know it can be implemented both in C and C++.
So what part is considered a 'hack'?
functionPointers[15] = ...
struct MyClass
{
private function1pointer = &functionPointers[2]
public void Function1(int v)
{
function1pointer(v);
}
}
|
|
|
|
|
they all have to have the same sig though. Or you have to use void* and cast them before you make the call.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: they all have to have the same sig though.
Ah...I see what you mean now by the hack part.
|
|
|
|
|
"Extending".
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
Extending???
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|