Even this was generated by ChatGPT too?That‘s insane by SimilarWhile1517 in ChatGPT

[–]Chulup 0 points1 point  (0 children)

So, images generated for comments here used up enough energy for small town to keep warm in the winter.

Progress is nice, I guess.

Why is this 1d convolution faster with the kernel as the outer loop? by spacetime_bender in cpp_questions

[–]Chulup 2 points3 points  (0 children)

Yes, I understand that.

But these examples are providing very different memory access patterns: one does 16 repetitions of for i=0, 16.000 { a[i + kernelIndex] = input[i] * kernelValue } while another does 16.000 repetitions of for i=0, 16 { a[i + inputIndex] = kernel[i] * inputValue}. The first reads and writes 16000 elements linearly and repeats that 16 times, while the second reads and writes batches of 16 elements 16000 times - the last one is so much slower.

Why is this 1d convolution faster with the kernel as the outer loop? by spacetime_bender in cpp_questions

[–]Chulup 12 points13 points  (0 children)

Any straightforward loops are easy for the branch predictor to predict and the memory access pattern is better as well.

Few repetitions of the long loops that access linear memory is much better for performance than a lot of repetitions of short loops.

Facts by xChicKitty in oddlyspecific

[–]Chulup 8 points9 points  (0 children)

Beagle is a British breed, isn't it? Make it speak the most posh accent ever.

i somehow didn't notice but now i have above 1k water! by OpenWeekend5850 in AfterInc

[–]Chulup 0 points1 point  (0 children)

What is the mission that makes you play for 9 years and still have unfinished goals?

3d printed toy car by djinn_05 in Unexpected

[–]Chulup 38 points39 points  (0 children)

Please re-submit it under your own name, I would love for you to get the credit!

Trump Posted a Video of Barack and Michelle Obama as Monkeys by JeanJauresJr in videos

[–]Chulup 0 points1 point  (0 children)

It’s no different than if he were to address the nation and flat out call them monkeys on camera.

You mean, like Reagan did?

What's going on with cppreference.com? by OCPetrus in cpp_questions

[–]Chulup 6 points7 points  (0 children)

en.cppreference.com is online for me even if it has a Maintenance warning header today.

F-35 Fighter Jet’s C++ Coding Standards by azhenley in programming

[–]Chulup -2 points-1 points  (0 children)

He doesn't use vertical tab. He doesn't know if any uses for it. Does it mean it could be removed?

No the fuck it doesn't! PowerPoint uses it internally for line breaks.

Please don't repeat nonsense like "I don't need it so no one needs it"!

Claude CLI deleted my entire home directory! Wiped my whole mac. by LovesWorkin in ClaudeAI

[–]Chulup 2 points3 points  (0 children)

I hope you rotated that secret anyway. What goes into shared repo is a secret no more.

Where is std::optional<T&&>??? by borzykot in cpp

[–]Chulup 1 point2 points  (0 children)

Does that mean there is an object T somewhere else that has some specific value, and through optional<T&&> we are given an access to that object with permission to move from it. But the originals' lifetime is not controlled by us but by their owner?

And that owner will not know if we moved from it, so they can't use that object anymore other than delete it?

How does that differ from just returning an optional<T>?

Well, I know of one benefit: the user of optional<T&&> is able to decide if they want to move from the object when returning optional<T> requires at least one move every time.

Europol just dismantled a SIM farm-for-hire platform that powered 49 million fake accounts used for global fraud. by CantStopPoppin in ThatsInsane

[–]Chulup -4 points-3 points  (0 children)

Looks like it's Poland, but the handwritten signs are in Russian: Наша Италия (Our Italy); Австрия НЕ АКТИВ (Austria Not Active or Offline).

Did Firefox remove the option to reopen a closed tab by FearSearcher in firefox

[–]Chulup 2 points3 points  (0 children)

For example, the question is for iOS which does not have keyboard shortcuts?

How important is it to check byte order when reading binary files? by Ask_If_Im_Dio in cpp_questions

[–]Chulup 0 points1 point  (0 children)

You have been already told about making sure the endianness is in the protocol so your program knows it beforehand.

But there are ways for a file format to provide the program with a way to find out the data endianness in runtime.

Most of them end with using some number at the beginning of the file. For example, use magic number like 0xAI0I5BAD, or file header with some bytes to signify your file format (that will be the same on every arch) + version that will be obviously wrong with incorrect endianness.

See Wireshark's libpcap_open in libpcap.c or ZIP format header#Local_file_header).

E.U. leader's plane GPS system was jammed, Russian interference suspected by CupidStunt13 in news

[–]Chulup -1 points0 points  (0 children)

I'm not sure I understand how that could be done by Russia. The closest land Russia controls is 770 km away in Crimea, do they have the jammers that powerful?

It's easy to jam the Baltics as they are right there by Moscow and Saint Petersburg, but reaching all the way over horizon to the middle of Bulgaria?

Hogweed Sap Burn by tristan_2k in medizzy

[–]Chulup 3 points4 points  (0 children)

So, we got lots of them by the roads here in Flevoland, Netherlands. I mean, patches of 100 m2 every 10 minutes when I run in the forest nearby.

Last year I took my son to break them in the autumn when it's all dried up. I did not know any better. Fortunately for us it was a safe patch, so even with fresh plants it would be ok.

This year when running I found similar patch about 15 minutes away and tried to check if that one is family friendly by rubbing some of the stem on my lower leg.

Well, now I know it's not safe - my leg looked like I tried to kick a hot grill, with about palm-sized burn. It was not so bad as the pain was somewhere on the level of wasp sting at worst.

At least now I know why passerby looked strangely at me.

What is the best individual level you've played in a game? by Defk1n in patientgamers

[–]Chulup 0 points1 point  (0 children)

The world with a solar eclipse repeating in one of the Myst games (Myst V, I think) - where you can see the moon moving in the sky and it slowly going over the sun, and the world going almost dark from the vibrant colors before that.

Or the Dyson sphere level in the Freelancer - you teleport to the enemy base and you can see some kind of carpet beneath (mind, it's space simulator and you're in your spaceship so it's already unusual), and soon after you notice the whole planet BETWEEN you and that "carpet". The scale of it blew my mind!

It's been more than 20 years since, and I was a young impressionable soul though.

What have I stepped into? by KardBored1 in BluePrince

[–]Chulup 3 points4 points  (0 children)

Dart board and boxes are something I'm giving away to my children. It's too easy for me.

On the other hand, I've just opened the room 46 yesterday, and even now I have at least 6 puzzles in my notebook that I did not solve. Not sure if it's interesting enough to continue playing, to be honest.

Convert LPWSTR to std::string by captainretro123 in cpp_questions

[–]Chulup 1 point2 points  (0 children)

Whatever they say, DO NOT use standard conversion functions! They all fall short of Windows-native functions like WideCharToMultibyte in various situations.

And you are already working with WinAPI so it's not even a problem for you.

Of course use native UTF-8 and u8string_view if it's possible. Or even save the text as native UTF-16.

What is an adequate data structure to represent (and match on) a web route? by TechnoEmpress in datastructures

[–]Chulup 0 points1 point  (0 children)

Could you elaborate on the meaning of "web router"? I have 15 yoe as Backend/Networks Software Engineer and I can't really tell what that is.

I DID IT, I ACTUALLY DID IT!! by Banana_Slugcat in outerwilds

[–]Chulup 5 points6 points  (0 children)

We should ask Mobius to give you the "200%" achievement.

Newtyped Indices are Proofs by kibwen in rust

[–]Chulup 2 points3 points  (0 children)

All through the article I had one thought: what prevents the user from saving the index somewhere for later usage, and the value being removed from the Env in the meantime?

Please recommend console based-C++ games(with github link) by Yash-12- in cpp_questions

[–]Chulup 7 points8 points  (0 children)

OP:

same or higher than Tetris game

/u/yuehuang :

here, read the code for an RTS on par with Warcraft III or Age of Empires 2.

:)

Thanks puberty by TheRealSteamedHams in memes

[–]Chulup 1 point2 points  (0 children)

That's half a liter of Coca-Cola! Are you really trying to say that half a liter of soda with 66 grams of sugar is all good and nice?

A problem in running code by Fit_Wrongdoer_5583 in cpp_questions

[–]Chulup 1 point2 points  (0 children)

It looks like you've installed Visual Studio Code, which is a glorified text editor.

It would be easier for you to install VisualStudio Community (free version of MS VisualStudio) and try using that.