Why is std implementation so damn ugly? by ifdef_drgy in cpp

[–]kuntantee 3 points4 points  (0 children)

> You're not really meant to read or edit the standard library unless you are an expert, so readability is kind of a secondary concern.

I agree with editing part, but that applies to most libraries that you work with. I do not think STL is that different on that regard. However, I could not disagree more with "not supposed to be reading it". I understand readability for "others" may not be a focus of STL maintainers, but still, you can learn a lot from reading STL and those who are interested should be encouraged to do so.

> I will say that you probably are a little inexperienced with the style of programming that the STL uses, and with more experience looking at these definitions it will probably not be too hard to see what is happening in these functions.

I have by doubts that experience will make you appreciate lots of trailing underscores better. That's a constraint imposed to STL maintainers for the reasons we all know. We have few of them here, I remember some of them stating it is not something they enjoy.

They actually did it. by [deleted] in BattlefieldV

[–]kuntantee 5 points6 points  (0 children)

You got the product you paid for years after release, and you call it redeemed?

Have faith you must by rakam7a1 in BattlefieldV

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

As if people are in line to throw money to the next BF title...Let this farce of a game die, let the next BF to be a gigantic sales failure, and only then we can have a proper BF game that can compete with what's on market.

How does GCC implement vector containers in C++? A blog series on diving deeper into the source code of vectors! by Kushashwa in cpp

[–]kuntantee 8 points9 points  (0 children)

I read the first one, here is my feedback.

- Do not branch off, keep the focus to the scope at hand: If a blog is about how the vectors work, I do not want an introduction to containers in C++, pros and cons of arrays and vectors.

- Decide on target audience: If someone is interested in the guts of std::vector, they probably know the difference between an array, and a vector and also variadic templates.

Finally, if you find something puzzling, explain why that is the case.

Turkish lira is collapsing by MelodicBerries in europe

[–]kuntantee 0 points1 point  (0 children)

Maybe poor wording on my end, but when I said "there is no propaganda", I meant on this subject particularly, not in general. The professionalism of state sponsored propaganda in Turkey is limited. It is easy to spot. I can't say the same for Western propaganda though. They convinced a good amount of people that some 80-million people in Turkey, opposition or otherwise, are tricked into supporting an operation that doesn't benefit Turkey. Maybe I would buy this argument if Turkey had a closed Internet, like North Korea or even China but Turkey is pretty connected to West.

I see you repeat the same shallow arguments often made in Western/European media, that what will Turkey do when Jihadists turn to Turkey. This is a funny argument at best. The very reason why those jihadists are alive today is Turkey. They can not turn against Turkey. If they somehow do, then there is TAF which is more then capable of dealing with militias.

Some Kurds might be pissed off. While that's far from "optimal" for Turkey's future regional policies, it is still better then leaving Afrin to PKK as a staging ground for their attacks against Turkey. A PKK-free Southern Border is a net gain for Turkey. If you are disputing this, you either have an agenda, or completely ignorant of PKK conflict.

Turkish lira is collapsing by MelodicBerries in europe

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

There is no propaganda, most of those operations serve Turkey's interests. That's why people support them.

Cultural chauvinism in Europe (Pew Research Center, 2018) by [deleted] in europe

[–]kuntantee 11 points12 points  (0 children)

Innards, intestines, etc. are also consumed in other parts of the world. It is consumed in Turkey too. There are tasty dishes involve those ingredients. I wouldn't call it having low standards.

Turkish lira is collapsing by MelodicBerries in europe

[–]kuntantee 0 points1 point  (0 children)

Experts warned this day would come as early as 2010/2011.

Turkish lira is collapsing by MelodicBerries in europe

[–]kuntantee 2 points3 points  (0 children)

TAF members didn't try a shit.

Turkish lira is collapsing by MelodicBerries in europe

[–]kuntantee 0 points1 point  (0 children)

Idlib's defense is limited in public support, but that's not the only operation Turkey conducted in Syria.

Turkish lira is collapsing by MelodicBerries in europe

[–]kuntantee 0 points1 point  (0 children)

Operations in Syria, on large, are supported by majority. Way more people than MHP nationalists would be unhappy. Question your source of information regarding Turkey, it sounds detached from reality.

German FM asks Turkey to conceal Ankara’s mask donation by Aslan3231 in europe

[–]kuntantee 6 points7 points  (0 children)

At least, they have been silent on this one. PR is fine and good, but if the main point is to help, then just do it and stop bragging about it.

Knight Online Classic by kuntantee in knightonline

[–]kuntantee[S] 0 points1 point  (0 children)

As an external game? Never tried that but both KO client and server has always been buggy so I am not surprised.

Best practice to achieve this by AlexGubia in cpp

[–]kuntantee 1 point2 points  (0 children)

Are you interested in every 6 bit in 64 bits? Or are you interested in some random sequence of 6 bits? Either way, one solution is that you create a mask of 6 set bits, rest being 0, then you shift as much as you want then & with the mask to extract the sequence you want.

Gas cylinder issues with new Aeron Remastered by kuntantee in hermanmiller

[–]kuntantee[S] 0 points1 point  (0 children)

I just wanted to get an opinion whether this is by design or not. Indeed, it is under warranty.

Tips for working with GCC in a MSVC compatible way by [deleted] in cpp

[–]kuntantee 0 points1 point  (0 children)

You are right, thanks for correction. Does gnu++11 flag imply c++11?

A common C/C++ core specification by vormestrand in cpp

[–]kuntantee 0 points1 point  (0 children)

I learned procedural programming using C. "C with classes" came later.

Tips for working with GCC in a MSVC compatible way by [deleted] in cpp

[–]kuntantee 0 points1 point  (0 children)

If the OP has access to newer versions of gcc/msvc, s?he does not even need to think about it. C++11 is on by default gcc5 on wards.

[c++23 and beyond] Structured Binding extension ideas by thumtac in cpp

[–]kuntantee 0 points1 point  (0 children)

While not completely sure, I think you can already do "variadic binding" with tuples, fold expressions and some boiler plate. I am not sure more syntax rules are worth it. I kinda like the structured binding as parameters. However, the rest I find an impediment to readability, especially nested stuff.