|
Why, that's not suspicious at all.
There are no solutions, only trade-offs. - Thomas Sowell
A day can really slip by when you're deliberately avoiding what you're supposed to do. - Calvin (Bill Watterson, Calvin & Hobbes)
|
|
|
|
|
Wordle 1,161 4/6*
β¬π¨β¬β¬π¨
β¬π©π¨β¬β¬
π©π©β¬π¨β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 1,161 3/6
β¬β¬π¨π¨β¬
π¨π¨π©β¬π¨
π©π©π©π©π©
|
|
|
|
|
Wordle 1,161 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,161 5/6
β¬β¬β¬β¬π¨
β¬π©β¬β¬π¨
π©π©β¬π¨β¬
π©π©π©β¬β¬
π©π©π©π©π©
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,161 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,161 3/6
β¬β¬β¬β¬π¨
β¬β¬π©π¨π¨
π©π©π©π©π©
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,161 5/6
β¬β¬π©β¬β¬
β¬π¨π©β¬β¬
π¨β¬π©π¨β¬
β¬π¨π©β¬π¨
π©π©π©π©π©
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 1,161 4/6*
β¬β¬β¬β¬π¨
β¬π¨β¬β¬π¨
β¬π¨π©π¨β¬
π©π©π©π©π©
|
|
|
|
|
So y'all know... I'm getting my Zig on. And I come across videos about how slices are sooooooooo powerful, like Zig invented it. Basically, a slice just takes a subsection of an array with a pointer and a length. So you can focus on one part of it, in memory.
Now... all you C coders know exactly what I'm about to say here...
int main() {
int data[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
int *slice = &data[4];
*slice = 42;
printf("Bruh %d", data[4]);
return 0;
}
Don't get me wrong. Zig does have one nice abstraction in the fact it tracks the length for you for bounds checking. But still... come on. Gotta give props to C when talking about stuff when making it seem like this is something new.
Jeremy Falcon
|
|
|
|
|
My favorite optimization is Java substring which returns βslicesβ which reuse the source stringβs char[].
If you have a big string in memory you can pull as many substrings as needed without ever copying a char.
Each substring has the storage overhead of a char* to the shared buff, offset, and length.
|
|
|
|
|
That's pretty cool.
Jeremy Falcon
|
|
|
|
|
We had this in the proprietary language I started using in 1981. They were known as descriptors: each one contained a pointer and the number of elements, with the size of the elements determined at compile time. They could be created at run-time by specifying the first and last offset into an array.
|
|
|
|
|
Unrelated to that... After the recent discussions of C/C++, I began a bit of C refreshing today. I had forgotten so much over the past twenty years of using C#.
|
|
|
|
|
Yeah man, it's fun to dust off the cobwebs every now and again. Not gonna lie, I still love C and can't swear I'll never use it again. It is fun trying new stuff though. Or, in your case old new stuff.
Jeremy Falcon
|
|
|
|
|
In case you're wondering why my sudden interest in systems coding again, for the application I'm working on I need extreme performance. So, time to get raaaaawwwwww. Muwahahahah
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: for the application I'm working on I need extreme performance Usual PCs or RT one? if interaction with the physical / electric world needed, current PLCs might get cycles around 100 us with a noticiable load of code (if that's fast enough for you)
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.
|
|
|
|
|
Nelek wrote: Usual PCs or RT one? Usual PC.
Nelek wrote: if interaction with the physical / electric world needed, current PLCs might get cycles around 100 us with a noticiable load of code (if that's fast enough for you) Nothing like that, nor embedded. It's a financial app. I just want it running faster than my JavaScript version... because I can.
Jeremy Falcon
|
|
|
|
|
Jeremy Falcon wrote: I just want it ... because I can. That's the root of all crappy IoT devices and many other depicable actions... vade retro
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.
|
|
|
|
|
I dunno what vade retro means, but don't take my toys away Nelek. I need my toys.
Jeremy Falcon
|
|
|
|
|
The quotation is from a film: "vade retro satanas" (I think is latin).
"Vade retro" is like "step back", "walk away"
Jeremy Falcon wrote: I need my toys. mmmm not sure if you were a good boy this year... I'll need to ask Santa for a report
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.
|
|
|
|
|
Nelek wrote: "step back", "walk away"
Nelek wrote: I'll need to ask Santa for a report Good luck, I paid Santa off so he could make his sleigh electric.
Jeremy Falcon
|
|
|
|
|
Iwas converting a AVR C++ to ARM C and found I was trying to make it C++.
A home without books is a body without soul. Marcus Tullius Cicero
PartsBin an Electronics Part Organizer - Release Version 1.4.0 (Many new features) JaxCoder.com
Latest Article: EventAggregator
|
|
|
|
|