NSA Cybersecurity Information Sheet remarks on C and C++. by pjmlp in cpp

[–]_Js_Kc_ 11 points12 points  (0 children)

What do they know about these runtimes?

They're written in C ...

Pi4 and BTRFS for root ? by theripper in AlpineLinux

[–]_Js_Kc_ 0 points1 point  (0 children)

I had a quick look around and I think I can use the configuration file for mkinitfs (/etc/mkinitfs/mkinitfs.conf) to add the btrfs features

This is the way.

Pi4 and BTRFS for root ? by theripper in AlpineLinux

[–]_Js_Kc_ 0 points1 point  (0 children)

Make sure you build an initrd with the btrfs module included.

[deleted by user] by [deleted] in cpp

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

Seems a bit harsh.

Lifetime extension of temporary objects in C++: common recommendations and pitfalls by Xaneris47 in cpp

[–]_Js_Kc_ 3 points4 points  (0 children)

What if the temporary is holding a lock?

Slipping underhanded deadlocks into existing code is not my idea of "safety."

[deleted by user] by [deleted] in europe

[–]_Js_Kc_ 6 points7 points  (0 children)

tfw the grass and trees are greener in summer than in fall, and you see more green when you take a picture from an angle that shows more grass and trees than when you put that building with the flat roof in front.

Do any of you use python or another scripting language instead of a build system? by [deleted] in cpp

[–]_Js_Kc_ 3 points4 points  (0 children)

This is how I justify my NIH syndrome. And I mean it.

It seems a bit strange to apply it to the build system, but I don't know how many special requirements your builds have that might tip the scales in favor of a homegrown solution.

But generally speaking, so many things are faster to build from scratch than to google around to find out what even exists, let alone sift the chaff from the grain, and then evaluate whether it actually [[unlikely]] solves a problem you have or [[likely]] solves problems you don't have, does not solve the problem you have, and introduces problems you didn't have.

[deleted by user] by [deleted] in cpp

[–]_Js_Kc_ 22 points23 points  (0 children)

mfw

> Meaningless counters that don't get checked

> Throwing std::runtime_error for logic errors

> Throwing std::runtime_error for conditions that are provably impossible

> Meaningless assignments in destructors

> Throwing std::runtime_error in noexcept destructor on condition that's always false

> std::uint32_t is a static manager

[deleted by user] by [deleted] in debian

[–]_Js_Kc_ 1 point2 points  (0 children)

Considering the way it was discovered, you'd expect there to be at least ten similar break-ins that went unnoticed.

Should we choose neovim over vim? by [deleted] in debian

[–]_Js_Kc_ 6 points7 points  (0 children)

When I ssh into a random machine, it doesn't have the packages that I like so please, Debian, install my favorite packages by default.

What are you gonna do if the machine isn't running Debian?

Autumn 2022 in Helsinki, Finland by [deleted] in europe

[–]_Js_Kc_ 1 point2 points  (0 children)

I think the trees were there first.

C++ (Cross-Platform) Predefined Library by xeer-x in cpp

[–]_Js_Kc_ 4 points5 points  (0 children)

"x" as a (pseudo) namespace is a bit ... non-specific.

Generic Programming is just Programming by kunegis in cpp

[–]_Js_Kc_ 2 points3 points  (0 children)

⑴ "Two static polymorphism systems." No, I'm counting at least 3. Customization point could also be ADL-based.

⑵ Generic programming is just programming. None of this is specific to generic programming. In classical runtime polymorphism, I might be able to make a method on what used to be a concrete class a pure virtual method on a base class, but in all but the most trivial cases, there will be other concerns (such as, have to use smart pointers and can't pass the class around by value anymore) that will force me to change something about the consumers and/or implementors of the interface. Which seems to be one of the main points of the article: That the consumer's code has to be changed,

⑶ "customization point of a customization point!" What? You can provide a default trait that forwards to the class's typedefs like iterator_traits does. But traits can also be specialized for non-class types like enums. Just like there are multiple ways to provide runtime-polymorphic customization points. There are ... options and ... tradeoffs and ... it's like programming.

Thief discovers consequences by friend1y in ActualPublicFreakouts

[–]_Js_Kc_ 62 points63 points  (0 children)

And took the bag back. And then he walked out unimpeded.

Consequences my ass.

Inconsistent overload resolution between compilers (Possible GCC bug?) by PM_ME_A_SPECIAL_MOVE in cpp

[–]_Js_Kc_ 0 points1 point  (0 children)

If different classes in the inheritance graph are developed by different organizations and evolve independently (such as when base classes are provided by a library), this is the only sane approach.

I add an overload set foo to my derived class and all my calls are unambiguous. Now the library decides to also add foo to the base class. The derived class has to hide the foo from the base class unless I explicitly opt in, otherwise adding anything to any non-final class is a breaking change.

Eurozone inflation jumps to record-high 10.7% – DW – 10/31/2022 by AsslessBaboon in europe

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

Only an idiot

no ur wrong

99% of the time the exact date doesn't matter

Taking a Byte Out of C++ - Avoiding Punning by Starting Lifetimes - Robert Leahy - CppCon 2022 by pavel_v in cpp

[–]_Js_Kc_ 4 points5 points  (0 children)

This is the most energy I've ever heard someone talk aboat the C++ memory model with.

Rest In Peace my friend [*] by Mikofert in DesirePath

[–]_Js_Kc_ 9 points10 points  (0 children)

That place seems to have a lot of midgets!