Show newer

@Elfie not enough to spell it correctly...

The question implies why do you care, and how is it relevant, or whatever else you can imagine yourself elaborating on. You are not engaging.

@boob A thought experiment: the dread community sends steven to a no-return mission in space, along with a woman from way outside the community, who doesn't even speak the language. Woman not into steven (duh). Steven rape? Why not?

Accompanying theorem: Kindness is taught by example. By punishment you can only teach spite, that will inevitably overcome the punishment. We resort to punishment out of weakness of our minds. To see it as strength or righteousness is delusional, and to assume it unavoidable is defeatism.

@georgia @nerthos

@nerthos you are a proper knight, alright, pure bred with holy righteousness. Your king must be very proud.

War is pointless and can only end in surrender of one side, though I see you'll rather go full jihadist than ever entertain that idea. All this BS you just spewed out is what allows it to repeat after many generations, and it will be hammered into people's heads even at peaceful times specifically for that reason. No independent thinkers will ever win a war, the war machine needs blind and relentless cogs.

@georgia @boob

@nerthos
What I'm hinting at is that those guys is you when you are desperate. You might actually go around torturing people if the same was done to your family or friends when you were 18. Carpet bombing civilians doesn't end the war, anymore than your surrender would, but it sure wins you the war. You will need to also hide your own artillery among civilians, to win. Oh no sorry, to "end the war". Looting or rape does not win a war, and it is never done with that intention. It is a consequence that you don't care about, just like you don't care about carpet bombing civilians.
@georgia @boob

@nerthos That's not how it works though. You can't be the good guy at war. If you don't target civilians, I will hide my artillery among them and I will win. And when it comes to atrocities, there are plenty of desperate people on both sides that would commit them without a second thought specifically because of the nationalistic indoctrination. To you it might mean "we are just more civilized" but there will always be less fortunate among you to whom it will mean "they are not human", and those guys would be leading the charge.
@georgia @boob

@nerthos Not sure why you particularly mention rape and looting at war. Do you mean it's worse than the actual killing?
There is no righteous side in war, though both sides will claim it to justify their attempts to trump each other in cruelty, since that is the only way to win.

A: You were targeting civilian population!
B: No you were targeting civilian population!
A: Cause you were hiding artillery among them!
B: No you were hiding artillery among them!
A: You all are subhumans that should not exist!
B: No you are subhumans that should not exist!
C: What the hell is going on here?!
A: I'm just defending.
B: No I'm just defending!

@georgia @boob

@boob @nerthos
So pretty much the latter for both of you, as I understand. Not sure what 3rd world is, but I am in a country from the "other side" of the world (spooky), where there is currently war, for no reason other than the "us and them" mentality that you guys also preach here.
@georgia

@nerthos @boob
So are you guys saying that the iron fist of law and order (as enforced by judge dread) is the only thing stopping your from raping someone today? Or is it the classic "the inhuman scum of this cursed world (<- not me) will ruin everything, if I, the righteous descendant of the heavenly angles (<- me), don't keep them at bay with my holy might".

@georgia

@Ambraven @jkb@octodon.social For a properly designed type, if a method preserves the invariant it should be public, therefore private methods do not preserve it. Unit tests should verify and document invariants, not specific ways in which some intermediate step in the implementation happened to break them. This might not seem generally applicable, only because crippled (invariant preserving private methods) and leaky (invariant breaking public methods) interfaces are common place and standard practice.

@lucky @georgia And I think that possession, use and distribution of any false binary relation over any objectively or subjectively defined set must be punishable by death. That will make all of those mindless animals (not me) smart and totally understand what that even freaking means.
@tuxcrafting @igel @Lumeinshin @Feddylain @overflow

@pony @tuxcrafting It's more nuanced than that. The nationalistic elements in the country are in fact calling for immediate recognition of the republic. However recognition by Armenia alone will change nothing if the international community doesn't support and eventually also recognize it. Because of this the government was doing everything to make sure proper democratic elections take place to thwart any doubts that Armenia just assigned an authoritarian government in the controlled territory. The last election (still not accepted by international community) took place during the pandemic, and now shortly after the elections the war broke out. And It is an all out war. Once Armenia recognizes the republic there is no going back, it would be left to the judgement of the international community, so it needs to be flawless, or it'll only make things worse.

@clement your question does not seem to match your example code very well. Overload resolution at runtime implies a lot of things, and yet the example seems like a simple case of runtime polymorphism, in which case you could just use virtual functions.

A newer alternative for runtime polymorphism is std::variant or boost::variant, which in a way is closer to runtime overload resolution. You can use a variant with all possible types and a function object that can accept all the types in question(this is called a visitor). With later standards you can use a generic lambda as a visitor. Something like this:
variant<d1,d2> var = d1();
cout << visit( [](auto& x) { return create(x); }, var );

In your example the app class itself can be the function object if you use operator() instead of create:
cout << visit(*this, var);

You can think of it as a switch statement on the type of the variant. If you also need to distinguish between different number of arguments (which overload resolution does), you can use a variant of tuples and something like std::apply in the visitor, to pass the tuple as parameters.

@ekaitz_zarraga
You just write your usual code with an extra keyword and it is executed at compile time. How is this in any way bad, or has anything to do with backward compatibility?
Constant expressions have been introduced almost 10 years ago and have been gradually evolving since by popular demand. For most C++ devs this is just an obvious quality of life improvement. If it seems too much for you you can absolutely ignore it, until you naturally arrive at a use case.

@codewiz I must say though it is not really a code generator, or a replacement for code generators. With constexpr/consteval you can only generate objects within the language's type system, you can't generate anything "meta", such as function signatures for example. Also the new consteval in particular has a very niche use case, and I hope it is not overused. constexpr is almost always better.

a write sentence... miss word a... it insert in... wrong the place... notice never

my vector type is not properly vectorized by the compilers in non trivial programs... re

Show older
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.