|
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
|
|
|
|
|
|
I wonder, is this gonna be something originally filmed in 4:3 but released at 16:9 (because that's how everything is made today), and by doing so, do things such as exposing parts of the set that were never intended to be included in the frame? Or by zooming into the picture and then cutting out parts of the top and bottom...?
Or are they gonna get ballsy and release it as it was filmed, and have to explain to those who don't know any better why they have black bars on either side of their screens...
I like the widescreen aspect ratio, but not if it means the picture no longer respects how it was originally intended to be seen.
|
|
|
|
|
Good questions. They say it’s remastered, but not if includes changing the aspect ratio. The video looks like they’re going with the “black bars on the sides” choice though.
TTFN - Kent
|
|
|
|
|
Kent Sharkey wrote: The video looks like they’re going with the “black bars on the sides” choice though.
So, as it was originally recorded/broadcast. Good. That means nothing gets arbitrarily removed.
|
|
|
|
|
|
really weird but strangely entertaining
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
I just jumped through bits and pieces of this. Some no-budget sci-fi set, some singing (including My Way), Vulcan wigs bought at a discount store, a chick with big boobs, a laugh track, and I even saw some footage of the Enterprise from the original Star Trek series doing a fly-by.
WTF did I just watch?
|
|
|
|
|
The Belgian comedian "Kamagurka" known for his absurd style of humor is behind all this, haven't seen much of him lately, but he may still be making cartoons. It seems the times have changed and there is no place for such experiments on TV anymore ...
|
|
|
|
|
RickZeeland wrote: there is no place for such experiments on TV anymore ...
Air time is at a premium, considering the competition. Can you really blame the broadcasters?
Today something like that might find success on YouTube. But I wonder[*] if they'd make back enough to cover whatever production costs (ahem) were involved.
[*] Not really, I think I already know the answer to that.
|
|
|
|
|
I always enjoyed the early series, but once Blake left it sort of lost its mojo a bit.
|
|
|
|