|
PIEBALDconsult wrote: The issue I have with that is when a large buffer is required many times. I'd rather use a static buffer so that repeated calls (if any) don't have to keep allocating large buffers; they can re-use a buffer which has already been allocated for the largest value so far encountered. Oh, my point wasn't so much about not using a static buffer. There are plenty of use cases where a static buffer on the heap and/or local static variable on the heap make total sense. Just saying what I do in each circumstance.
PIEBALDconsult wrote: Although my original post involves a scenario in which this function gets called once (or twice, rarely) with small values (short strings), the function might get called millions of times with strings of thousands of characters in the worst-case scenario. Sure, so in this case the routine wouldn't be pure as you can't guarantee that memory will be allocated initially... especially if it's a large chunk. I mean, we could get pedantic and say the same thing about the stack too, but you get the idea. Usually if the stack is corrupt that program is gonna crash anyway. Not saying don't do it... saying I would test it as a non-pure function.
PIEBALDconsult wrote: At any rate, I'm not about to change the function just so that it fully qualifies as a pure function; there are bigger fish to fry. Yeah dude, you completely misread my entire post. Try again.
Jeremy Falcon
|
|
|
|
|
#Worldle #358 4/6 (100%)
⬜⬜⬜⬜⬜⬅️
🟩🟩⬜⬜⬜↙️
🟩🟩⬜⬜⬜↙️
🟩🟩🟩🟩🟩🎉
⭐⭐
https://worldle.teuteuf.fr
after 3 very bad guesses I had to use map
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Unfortunately it will be beyond my current lifetime when QM is added to AI . What an incredible world that will be . Will they be conscious ? friendly ? Will they be willing to do the laundry ? Can't wait for "The Orville" next season to begin . My favorite character is Isaac . Incidentally my favorite all time film characters are Hal 9000 and Dr. Strangelove .
|
|
|
|
|
|
nevermind
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
QM == Quasimodo Metaphysics ?
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
|
... a fun way to describe identity theft?
"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!
|
|
|
|
|
BT:DT
Letter from IRS, "dear sir your SSN has been compromised. Go directly to jail, do not pass Go, do not collect $200"
Doesn't seem as funny when it is you. I, however, can now laugh about it. Didn't cost me any money, just anxiety.
>64
Some days the dragon wins. Suck it up.
|
|
|
|
|
Are the floods anywhere near you Paul ?
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
|
|
|
|
|
Apart from a puddle on my drive, nothing much up here at the posh end.
|
|
|
|
|
Not much in Addlestone either(no change there then ) I'm seeing bad flooding in Wales is why I asked
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
|
|
|
|
|
Nothing about floods in Wales on the Met Office website.
|
|
|
|
|
Wales Floods
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
|
|
|
|
|
And still no mention on the Met Office website. But they do refer to flood warnings for England. I guess they need to remove the word "United" from our country's name.
|
|
|
|
|
It (remove United) appears to be headed that way Richard
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
|
|
|
|
|
Not close - about 30 miles away, the other side of a mountain I think.
The river at the bottom of the garden has risen about ten foot or so, but it's still got 15 or so to reach the house. And to flood a field on the other side of the river first.
If we got flooded, I wouldn't worry too much - I'd already have used up my worry quota for the town downstream!
"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!
|
|
|
|
|
one of my (now sporadic) attempts to get a C# language issue discussion going on the "C# Language Forum" has been replied to with this in-depth response from Harold Aptroot: Re: the new Math.Generics ? - C# Discussion Boards[^]. for me, Harold's posts have always been very valuable, prescient.
i feel like i just received a wonderful gift, and i want the "world" to know
p.s. as i hoped i expressed in my query that Harold responded to, i am not complaining about what the C# language forum has, imho, evolved into over the years ...
it is very valuable, and i learn* a lot from the often fulsome and astute responses to what i call "QA for grown-ups" posts by such luminaries, as OriginalGriff, MacCutchan, and Deening, and others !
* learn: often ... given my distance (by choice) from what C# and .NET have become in terms of web-centric, server-side, etc., over the last years: "become aware of" is a better choice than "learn."
best wishes from a past-his-use-by date happy camper
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
I buy gaming starter PCs for work machines because I can get good build quality, and a fast CPU/RAM/storage combo sans GPU for a good price because there's a lot of competition out there. The market for gaming starter machines is good for buyers. Although in my current instance I built from scratch so I could match parts for maximum performance and the features I wanted, but I still used things like a gaming motherboard for example - because it supports overclocked RAM. I run my RAM significantly faster than stock DDR5.
I have an all glass case, which means everything is visible. It looks super classy, but not with lights everywhere.
OH THE LIGHTS. I just paid a pretty penny to get rid of them. I had fans that were a carryover from a gaming starter system i bought last year, and they lit up green. It was awful.
It's so hard to find unlit performance parts these days. I finally got everything but my video card unlit, but you almost have to pay extra for that! All the mid shelf gear is lit it seems like so you either go ultra cheap/low build quality on your fans, or you spring for premium noctuas in plain black. There is not an appealing middle ground. The corsairs for example, of any quality, are all RGB these days. Even if you don't light it, they're still white. Ick.
My next GPU will be a founders edition from nvidia because they are low profile, no lights.
How do you feel about lights on your PC?
Am I the only one that hates them? I can't even stand the popularity of them. I am not quite resentful, but almost there because it makes sourcing the right unlit parts difficult.
To err is human. Fortune favors the monsters.
|
|
|
|
|
My kid has plenty of them in his.
My various computers don't have any. The most lights I see from where I'm sitting are on the network switch.
|
|
|
|
|
Yeah, I've considered buying some dells and stuff - if nothing else because they don't look like toys, but I'm a bit of a hot rodder when it comes to the PCs I use even these days - it's a carry over from when I was younger and I actually *enjoyed* building them. I like them to be buttery smooth and fast for exactly how I use it, and it's hard to get that with pre-built systems unless they offer you a ton of customization and/or you're willing to replace parts.
To err is human. Fortune favors the monsters.
|
|
|
|
|
I've got a few lights on my PC but it's tucked away where I can't really see it.
But if I did have it in view I don't think I would want a lot of lights.
PartsBin an Electronics Part Organizer - An updated version available!
JaxCoder.com
|
|
|
|
|
I love lights, but in moderation. Like sugar and alcohol.
Really bright very narrow LED light beams are not good for your eyes.
Hot rod machines, yes. Love CPU and GPU horsepower.
I have had my share and still do.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
"Power on" and "Caps", yes.
But the others get covered with black masking tape if I can't turn them off any other way.
It's getting so that you can virtually read a book by the light of charger / device standby indicators in this house - heck even my headphones and game controller glowed by the light of USB you can't turn off unless you unplug the whole PC ... masking tape to the rescue!
On that subject, why would headphones need lights at all? Are "normal people's" eyes on stilts so they can see their own ears?
"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!
|
|
|
|
|
My cordless (noise-cancelling) cans have a charge/full led and an "on", both discreet pinpoints. The latter has saved me from getting on a long flight with them flat.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|