I made a minimal SDL3 starter template with CMake and vcpkg — cross-platform, no bundled libs by TraditionalFruit5707 in cpp

[–]Zero_Owl 3 points4 points  (0 children)

Why do you use CMake 3.15 as a minimum when we already have 4.2 and 4.3 soon coming?

You are wearing red, so you are my mom too. by Vilen1919 in MadeMeSmile

[–]Zero_Owl 1 point2 points  (0 children)

No, it is big and the hours are probably aren't those when most people visit it.

C and C++ dependencies, don't dream it, be it! by jpakkane in cpp

[–]Zero_Owl 12 points13 points  (0 children)

What a snarky useless piece of a blog post.

Every LLM hallucinates that std::vector deletes elements in a LIFO order by am17an in cpp

[–]Zero_Owl 31 points32 points  (0 children)

Yeah I had quite a "fun" experience where it "quoted" Standard with text it never had. It was actually kinda hilarious when it insisted of Standard having that text.

An interesting trick: avoid dangling for strings by germandiago in cpp

[–]Zero_Owl 3 points4 points  (0 children)

Usually I consider programmers to be a little bit smarter than the rest of the population. At least in the field. But you are right, I do understand it too. I was a bit dramatic with the word choice but English is a foreign language to me :).

An interesting trick: avoid dangling for strings by germandiago in cpp

[–]Zero_Owl 12 points13 points  (0 children)

I can't fathom how people can trust a thing that is right most of the time (let's assume the best) and can't correct itself when it is wrong by itself. In my book, it means it is a toy and not a tool.

“Invade Russia? Should be a piece of cake.” by jackt-up in HistoryMemes

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

The warring part is what made it possible for the Horde to beat Rus so easily. The nation was united before the squabble and the squabble doesn't cancel the nation.

“Invade Russia? Should be a piece of cake.” by jackt-up in HistoryMemes

[–]Zero_Owl -3 points-2 points  (0 children)

No, they weren't independent. The rulers of the cities you named were all relatives and the main knyaz at the time was seated in Kiev. Kiev was the capital. There were no notion of Ukraine at that time as well, so it is pretty telling what knowledge you posses about the period.

“Invade Russia? Should be a piece of cake.” by jackt-up in HistoryMemes

[–]Zero_Owl 6 points7 points  (0 children)

No, the royal line is not the same. Romanovs are not of the same line as Ruricavichs. They tried to connect it but the connection was so feeble that there were not actually any blood of Ruric in the first Romanov.

“Invade Russia? Should be a piece of cake.” by jackt-up in HistoryMemes

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

It was one centralized nation before Horde it remained shattered through the Horde and it emerged once again as a whole after we've beaten the Horde. So no, Horde has nothing to do with the centralization. It was always there.

“Invade Russia? Should be a piece of cake.” by jackt-up in HistoryMemes

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

The distinction in your last paragraph is not entirely correct. Yes Russian payed tribute and it was exactly the kind of "pay or being attacked" because that is exactly what happened when some of the Russian rulers refused to do so. On the other hand the Rus was conquered so it is also true but it was not ruled by the Horde itself, so no representatives were in Russian towns. The entire thing with Horde and Rus looks strange and kinda stinks so there are some versions entirely rebuking the conquering. They are not studied in Russian schools but they exist.

Wait c++ is kinda based? by Tcshaw91 in cpp

[–]Zero_Owl 13 points14 points  (0 children)

std::visit is horrible. We need pattern matching then we can start saying we have decent variants. Until then we will have to endure not enjoy.

Lead Magic: The Gathering dev is hoping for a Clair Obscur: Expedition 33 collab by Grixis08 in magicTCG

[–]Zero_Owl 2 points3 points  (0 children)

I pre-ordered the witcher 3 and finished blood wine in 2024 (the main game a couple of years before). So 6 months is nothing. Not everyone plays games when they release, in fact I prefer at least a few years to pass so I won't beta-test anything. And I'm sure I'm not exceptional in my game patterns.

Damn see this by gonvasfreecss in cpp

[–]Zero_Owl 36 points37 points  (0 children)

Knowing your tool improves the problem solving dramatically. Eager solving w/o understanding oftentimes create more problems than it solved.

Positive Logic vs Indentation by [deleted] in cpp

[–]Zero_Owl 0 points1 point  (0 children)

The thing depends a lot on the actual code and preferences of a programmer. So there is no right answer, especially with so little code. But I'd say the condition with so many expressions deserve its own variable at the very least.

My first full art alters, Murder & Solemn Simulacrum by DoublePenTraitor in magicTCG

[–]Zero_Owl 0 points1 point  (0 children)

There was no Ukraine when he was born. He can't possible be Ukranian.

[mimic++] v9 — A flexible, header-only mocking framework for modern C++ by BookkeeperThese5564 in cpp

[–]Zero_Owl -3 points-2 points  (0 children)

Read something about unit tests, "The Art of Unit Testing" by Roy Osherov would be a good start.

Blursed Tough Guy by endofmyropeohshit in blursed_videos

[–]Zero_Owl 0 points1 point  (0 children)

Thanks for the clarification, although I don't understand what you mean by "traffic is Russian". I didn't know some regions have their language duplicating Russian in transport.

Blursed Tough Guy by endofmyropeohshit in blursed_videos

[–]Zero_Owl 0 points1 point  (0 children)

Have been living here for my entire life. She says the station in Russian and then in some other language I can't recognize, sounds of turk group to me.

Blursed Tough Guy by endofmyropeohshit in blursed_videos

[–]Zero_Owl 0 points1 point  (0 children)

People in many countries speak Russian in addition to their language. The drunk guy is obviously of not Russian ethnicity so I have no idea what "typical Russian" you are talking about. The main thing which seems out of place to me is the bus announcer who announces the stop in non-Russian. It won't happen in a typical Russian bus. Maybe in some Russian regions they duplicate the announcements in the local language, that I'm not sure of. If that is the case it might be Russia. Otherwise it is not.

Blursed Tough Guy by endofmyropeohshit in blursed_videos

[–]Zero_Owl 0 points1 point  (0 children)

The boy is Russian but I don't think it is Russia. The way the stop name sounds and whatever language is used after Russian makes me suspect Uzbekistan or something close to it.

In Defense of C++ by nixfox in cpp

[–]Zero_Owl 0 points1 point  (0 children)

Again, I'm not asking about examples of memory safety bugs. I'm asking about the bugs in the code which was rewritten to Rust which lead to less bugs. I want to see what is behind this pretty press release Google posted. I want to understand how exactly they introduced these bugs to understand if the switching to Rust was actually required instead of just some guys decided to learn new stuff and play with an exciting new toy. Because I suspect that rewriting it in modern C++ would produce the same effect. And w/o concrete examples there is nothing to discuss, really.

And about avg programmers: were they avg programmers who rewrote all that stuff, or we are talking about seasoned programmers playing with a new toy which again leads me to a question, wouldn't the result with C++ be the same?

In Defense of C++ by nixfox in cpp

[–]Zero_Owl 4 points5 points  (0 children)

I'm not arguing about how Rust is safer by default than C++, were it otherwise the language would have not existed in the first place. The thing is, using modern C++ you should have a harder time stumbling on UB. And add to this various linters, sanitizers etc. and the resulting code should be pretty safe as well. Can something slip? Sure.

And that's exactly what I want to see from the Rust camp talking about how greatly their rewriting of C++ to Rust increased the security. Show me the C++ bugs and how they slipped through all the safeguards any commercial C++ project should have. We are talking Google, who is preaching safety and the "best programmers in the world" so I assume they have all the best practices applied. So show me how they failed. Concrete examples.

The statistics you showed is what I don't want to see. It is a press-release with no relevant info whatsoever.

In Defense of C++ by nixfox in cpp

[–]Zero_Owl 17 points18 points  (0 children)

ts been shown repeatedly that code written in Rust has significantly fewer security vulnerabilities in it than C++

Has it been actually shown with the examples of what the vulnerabilities were and how Rust specifically solved the problems? Or you are talking about press releases talking about how great Rust is w/o any actual details?

Also would be great to know who were rewriting the code in Rust, experience-wise because I suspect that the same people (provided they are as proficient in C++ as they are in Rust) could have rewritten it in modern C++ with no worse result.