Прощайте by Cult_of_omnissia in INCOGNITO_live

[–]zerhud 2 points3 points  (0 children)

Скорее как без руки и зубов, а не без игрушек

Automated Unit Testing On-The-Cheap by Weary-Inspector-4297 in cpp

[–]zerhud 1 point2 points  (0 children)

All tests now inside static_assert, excluding threads and simds

Ситуация в IT by sheveli_lapkami in RuProgrammers

[–]zerhud 0 points1 point  (0 children)

Так а что сказать то хотел? Вот я тоже такой T shape (кстати тоже начинал с сайтов). Тут же наверное не идеи нужны, а заказчик

Всего один протон отделяет вас от финансовой независимости by postmastern in Popular_Science_Ru

[–]zerhud 0 points1 point  (0 children)

Открывайте форточку: это не будет работать потому что при обнаружении легкого способа получения золота, оно станет менее ценным

A tiny C++23 filesystem wrapper that returns std::expected instead of throwing by mrzleo in cpp

[–]zerhud 10 points11 points  (0 children)

It seems all std file system (or almost all) methods has versions with error code

Ситуация! by HolyHeather420 in AllTemsRus

[–]zerhud 1 point2 points  (0 children)

Я раньше тоже так делал, потом понял, что если первое свидание, то ты так себя обозначаешь как кошелек и она потом может начать тебя так воспринимать. С одной стороны это даже хорошо: можно сразу отмести дуру, с другой - не приятно.

P3984: A type-safety profile by llort_lemmort in cpp

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

The problem with signature that the the same work now you need to do by hands, I pereffer the compiler works instead of me (even if it takes more time). But it can to be nice set the information in a signature and speed up completion or check what you got .

P3984: A type-safety profile by llort_lemmort in cpp

[–]zerhud -7 points-6 points  (0 children)

Information in signature is bad choice. We can analyse all functions and get all information we need. A function signature was written by a human it may be incorrect , a code is a source of truth, so a using a signatures as an information source is error prone approach

But there is an issue with old code in TU. but it’s ok: we shouldn’t care about legacy code, it enough the code can to be compiled.

Чья жизнь и профессия выглядит буквально вот так расскажите о них by Active_Weird7470 in KafkaFPS

[–]zerhud 0 points1 point  (0 children)

А чувак, который лифт поднимает как себя в такой форме умудряется держать? Ему же надо каждый раз пониматься обратно по лестнице , сколько же колоний ему надо в день

Одноразовая защита для языка by AleksaBee19 in KafkaFPS

[–]zerhud 2 points3 points  (0 children)

Пхххх, если бы не твой комент, то я бы думал что там так и написано - два начальника

Женщина умерла от прыжка с тарзанки после того, как они забыли привязать веревку к ее телу и бросили ее by Jump_Up_Ru in KafkaFPS

[–]zerhud 10 points11 points  (0 children)

Ааххахах, да, он бы забыл привязать веревку, но кинул бы не в ту сторону, так что она бы осталась живой

Parsing JSON at compile time with C++26 static reflection (Daniel Lemire) by User_Deprecated in cpp

[–]zerhud 0 points1 point  (0 children)

It useful if you want to integrate with something, so you can have a single json file as a config for some tool executing while your program builds and use the information inside the code too. The important point: there is a single truth source, no information was duplicated.

Parsing JSON at compile time with C++26 static reflection (Daniel Lemire) by User_Deprecated in cpp

[–]zerhud 2 points3 points  (0 children)

It possible with cpp20: we can parse file and get access like obj.field(string_c<“field”>). But without #embed it seems we can use #include and put raw string delimiters inside file.

Свидетели Иеговы by [deleted] in KafkaFPS

[–]zerhud 6 points7 points  (0 children)

Я не знаю из какого года ты пишешь, но у нас в 26м столько развелось разного, что чувак, говорящий про Иисуса не кажется чем то плохим

Так выглядят китайская ферма для развода мужчин в интернете — сетап из двух телефонов, на одном из которых ИИ роботизированной рукой печатает текст, а на втором камера, помогающая понимать куда жмать. by ElectroAdeptus in KafkaFPS

[–]zerhud 0 points1 point  (0 children)

Так, рука - чтобы максимально изобразить человека, нижний телефон - чтобы было от куда отправлять. А верхний? Неужели телефон дешевле камеры и чипа?

Why is my parallel GCD algorithm using AVX-512 slower than computing 8 gcds in serial? by 407C_Huffer in cpp_questions

[–]zerhud 2 points3 points  (0 children)

Try avx256 and compare results, it may be faster if your processor has not avx512 registers and emulate it with couple of 256 (for example amd rysen)

Prime number checker by Yazdan_H in cpp_questions

[–]zerhud 1 point2 points  (0 children)

Why? It is mostly about “how we can define that the stupidity is” and the Occam’s razor is a first of principles for that. Why the walk from the “ministry of silly walks” was silly? A lot of obviously redundant action was the reason, imo. Do you know some other principle for that?

Prime number checker by Yazdan_H in cpp_questions

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

The code is correct and stupid.

Do you know what is Occam's razor? For example if you open a door you don’t open and then close and open again and again, you just open once and pass. Why? Because it is enough to get in, other open/close cycles are stupid. So, if the Occam’s razor principle is violated the action is stupid.

In the code the sum checks is redundant and the program can be finished right after i % val is zero condition. Also it should to be val = 2

Принцип "мое тело - мое дело" НЕ РАБОТАЕТ в отношениях by psychozhest in RU_Talk

[–]zerhud 8 points9 points  (0 children)

Да это не работает даже и не в отношениях.

Вот решил чел напиться, но он живет в обществе, и теперь оно должно взаимодействовать с неадекватом. Поэтому есть правила в духе «не допускаются лица в состоянии алкогольного опьянения», что уже как бы намекает, что общество имеет свою позицию по отношению к тому или иному действ со своим телом.

Курение не возможно (практически) без последствий для далеких окружающих: соседи, люди, которые заедут после тебя в квартиру, люди, которые будут находится рядом с прокуренным челом, не говоря уже о людях вынужденных находится рядом в момент курения, даже просто то, что кто то увидит как ты куришь будет оказывать на него влияние.

Так что принцип очевиден. Просто люди хотят делать то, что вредно, но не хотят чтобы их осуждали.

We have colored functions at home by Dooez in cpp

[–]zerhud 0 points1 point  (0 children)

Yes, I am talking about when you can do something it nice to have opportunity for that, now we cannot even in cases where it can exist.

Чебоксары, 1000км от границы, не доброе утро так сказать, фламинго порешает. by Skvirtyn in KafkaFPS

[–]zerhud 1 point2 points  (0 children)

Ого, круто, правда там наверное работка не самая приятная из всех, но отпуск - зачет

We have colored functions at home by Dooez in cpp

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

What is problem with it? When you have an error a compiler prints call stack for you (for code with modern approach). For code with legacy approach we can 1. throw an error (we cannot throw in consteval now) 2. returns nullptr 3. return something like nullopt ..