|
That's the cat's a$$ until some misbehaving code passes in a very large number for size .
|
|
|
|
|
It's compile time though, so it would have to be the programmer passing it in. The final executable won't have a variable at all. I mean, I can create a stack overflow with a huge array in C too. The difference being I'd have to use a macro or hardcoded size. This is just wanna them neat little things that lets you do it from a variable.
Don't get me wrong, there are gotchas to be aware of with comptime. Say for instance, with the first generic parameter... if you call the function with 5 different types Zig will generate 5 copies of the function for each type - which can totally increase the executable size. But, given the fact it's systems level and not GC'ed nor have any magical execution paths, it's a small price to pay IMO. Still, gotta watch out for it.
Jeremy Falcon
modified 20-Aug-24 11:56am.
|
|
|
|
|
|
I was never a fan of his show. IMO it was one of the first to trivialize (and then politicize) serious social topics and pit people against each other for ratings.
A pre-cursor to today's gotcha "journalism" practiced by so many.
|
|
|
|
|
i agree. not a fan.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
|
Most people are talking about his legacy as a TV Host. It doesn't paint the full picture, and it's not the most flattering aspect of his life.
Phil Donahue was vocally anti-war, and brought his voice to places like MSNBC, where he kept showing up with other anti-war guests back when MSNBC was owned in part by GE (a premier American arms dealer, for anyone not keeping up) and everyone was going all in on the Iraq war. There was a memo leaked after he got fired from NBC that his anti-war views made him "difficult" for the network. Good. And if the memo suggests anything, it's that he was principled about it. He probably wasn't surprised it at least in part, cost him his job, I'm guessing.
I have to respect that.
I hope this post wasn't too political. I'm not even a cable news buff. I haven't had any meaningful TV in my house since the late 1990s, but I do remember snatches of what was happening at the time.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
He was also quite a liberal, but now most of Congress are neocons. Sic transit gloria.
|
|
|
|
|
|
For some reason I read "Russ Meyer"
|
|
|
|
|
sadly there are people like that for real...
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.
|
|
|
|
|
Wordle 1,157 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 1,157 5/6*
β¬β¬β¬π¨π¨
β¬π¨π¨β¬π¨
β¬β¬π©π©π©
π¨β¬π©π©π©
π©π©π©π©π©
|
|
|
|
|
β¬π¨β¬β¬π¨
β¬β¬β¬π©π©
β¬β¬β¬π©π©
β¬π©β¬π©π©
β¬π©β¬π©π©
π©π©π©π©π©
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,157 4/6
β¬π¨π¨β¬β¬
β¬β¬β¬π©π©
π©β¬β¬π©π©
π©π©π©π©π©
Within you lies the power for good - Use it!
|
|
|
|
|
Wordle 1,157 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,157 2/6
π¨β¬π©π©β¬
π©π©π©π©π©
|
|
|
|
|
Wordle 1,157 4/6
β¬β¬β¬π¨π¨
π¨π©π©β¬β¬
β¬π©π©π©π©
π©π©π©π©π©
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 1,157 4/6
β¬β¬β¬β¬π¨
β¬β¬β¬π©π©
β¬β¬β¬π©π©
π©π©π©π©π©
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 1,157 5/6*
β¬π¨β¬β¬π¨
β¬β¬π¨π©π¨
β¬π©π©π©π©
β¬π©π©π©π©
π©π©π©π©π©
|
|
|
|
|
Hippo Birdy
Hippo Birdy
Hippo Birdy Deer @Marc-Clifton
Hippo Birdy
Have a good one!
"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!
|
|
|
|
|
Happy Birthday Marc
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.
|
|
|
|
|
Joining in, Happy Birthday Marc!!
>64
Itβs weird being the same age as old people. Live every day like it is your last; one day, it will be.
|
|
|
|
|
Happy birthday @Marc-Clifton. Hope it's an awesome one.
Jeremy Falcon
|
|
|
|
|
Not too long ago in a place far, far away (few threads down) I posted about Zig having a neat little feature of allowing digit separators but not C.
Well... today guys and gals... today is the day... that... all... changes!! BEHOLD... C23 introduced digit separators! And it's already supported by recent compilers. Dun dun dun.
The world may have AI, but C23 can now do 0xFE'DC'BA'98 for literals. So take that Rust!
Jeremy Falcon
|
|
|
|