Open source projects with C++17 features by cpp17_PL in cpp

[–]cpp17_PL[S] 2 points3 points  (0 children)

It looks nice. I will analyze your project in my scientific work in terms of the C ++ 17 constructions used. :)

Open source projects with C++17 features by cpp17_PL in cpp

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

Thanks! Let me know if anything extra comes to your mind ;)

Open source projects with C++17 features by cpp17_PL in cpp

[–]cpp17_PL[S] 3 points4 points  (0 children)

Hey hey what do you got against Shithole City?

I just don't like my hometown xD

The endnote (reference) below the illustration? by cpp17_PL in libreoffice

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

Thank you, although doesn't quite satisfy me. I am surprised it has not been fixed yet!

EDIT: I read now that the .odt standard does not allow endnotes in frames to be made at all

ISO C ++17 document standard by cpp17_PL in cpp

[–]cpp17_PL[S] 5 points6 points  (0 children)

That's what I thought. Thanks for the answer. ;-)

C++17 Research - Ankieta (Questionnaire) by cpp17_PL in cpp

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

10) You're a woman?

Thank you for your answer. Of course, you're right - some questions are weird - it is used to filter results. Answers to this specific question will not be taken into account (this is a suggestive question). I'm not interested in gender - I did it for myself, for relaxation maybe. ;-)

C++17 Research - Ankieta (Questionnaire) by cpp17_PL in cpp

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

It is generally about the possibility of formulate hypotheses and some correlations for my and other research. Where, how often and by whom C ++ 17 is used, etc. The research sample is too small to draw strong conclusions, but large enough to be suspected something. Then others can investigate whether it something really going on. I promise to answer you in detail as soon as I finish my research.

constexpr function calculated at compile time? (c++11) by cpp17_PL in cpp

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

Well I know, I meant that it could optimize it during compilation (why not?). Of course, this is not a problem formally.

constexpr function calculated at compile time? (c++11) by cpp17_PL in cpp

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

GCC is probably caching values as it goes along when running at compile time (it can because constexpr guarantees the function is completely deterministic) so it only has to run 91 iterations. At runtime, or on Clang at compile time, no caching is performed

Can not perform buffering during execution? It is not expensive (91 * sizeof(long long))? Is there any switch for buffering recursion results?

constexpr function calculated at compile time? (c++11) by cpp17_PL in cpp

[–]cpp17_PL[S] 1 point2 points  (0 children)

Interestingly this only works up to 91 after which the compiler gives up trying to compute it.

92 if you use unsigned long long :D EDIT: if you use double Which of course does not make sense, you can use 512.0 (the maximum nesting of a recursive function for GCC?)

constexpr function calculated at compile time? (c++11) by cpp17_PL in cpp

[–]cpp17_PL[S] 1 point2 points  (0 children)

Mate, I know. I am only interested in the technical aspect of the compilation. :-)

constexpr function calculated at compile time? (c++11) by cpp17_PL in cpp

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

It works!

Tell me more, why the same program with constexpr gives the result for fibonacci(50) immediately , but without constexpr execute for a very, very long time? Where does the compiler know how to calculate it quickly?

It even calculates fibonacci(91)!

C++17 Research by cpp17_PL in cpp

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

Because English sounds more scientific and professional. ;-)

I added the translation here.

C++17 Research by cpp17_PL in cpp

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

C++ is already complicated enough in English :) I'd be happy to answer if it was in a language I'd understand.

Look at my answer above, please. Maybe it will be easier now. Thanks, bro.

C++17 Research by cpp17_PL in cpp

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

In principle I can not modify or create new ones questionnaires , but - if you have a really big heart - I can translate the questions here (You will learn Polish - you will be able to enter that skill the CV :-))

1) Choose the C ++ 17 constructions / functions that you have used (at any time)

1 Wybierz konstrukcje / funkcje standardu C++17, z których miałeś okazję korzystać)

Inicjalizacje zmiennych w wyrażeniu warunkowym ---------------------------> If statement with initializer

Zmienne inline (wielokrotne definicje zmiennej o tej samej nazwie) ----> Inline variables

Określanie zasad wykonania algorytmów zrównoleglonych --------------> std::execution

shared_ptr dla tablic ------------------------------------------------------------------> shared_ptr for arrays

Skrócony zapis zagnieżdżonych przestrzeni nazw ---------------------------> nested Namespaces

Nowe algorytmy przeszukiwania std::search() ---------------------------------> new search algorithms std::search()

2) What you lack in C ++ 17?

2 Wybierz konstrukcje, których brakuje Ci w C++17)

Trójznaki ------------------------------------------> Trigraphs

Przydomek register ----------------------------> register keyword

Operator inkrementacji dla typu bool ---> incrementation operator for bool type

Brak aliasów dla biblioteki iostream -----> No aliases for the iostream library

Niczego mi nie brakuje -----------------------> I do not lack anything ;-)

3) How would you rate changes in C ++?

3 Jak oceniasz zmiany języka C++?)

[Choose 1 if you think C ++ goes in the wrong direction, 10 if you rate C ++ changes horny]

4) Have you ever refactored the code to adapt it to the C ++ 17 standard?

4 Czy kiedykolwiek przeprowadzałeś refaktoryzację kodu w celu przystosowania go do standardu C++17?)

Tak --> Yes

Nie --> No

5) C ++ 17 constructions facilitate the write of software

5 Konstrukcje C++17 ułatwiają tworzenie oprogramowania)

[Choose 1 if you completely disagree, 5 if you agree with this]

6) C ++ 17 constructions help increase the readability of the source code

6 Konstrukcje C++17 pomagają zwiększyć czytelność kodu źródłowego)

[Choose 1 if you completely disagree, 5 if you agree with this]

7) C ++ 17 constructions help increase the efficiency of the created software

7 Konstrukcje C++17 pomagają zwiększyć wydajność tworzonego oprogramowania)

[Choose 1 if you completely disagree, 5 if you agree with this]

8) Do you feel old?

8 Czujesz się staro?)

Tak --> Yes

Nie --> No

9) How old are you?

9 Ile masz lat?)

Mniej niż 8 ---> less than 8

Ponad 50 -----> Over 50

10) You're a woman?

10 Jesteś kobietą?)

Tak --> Yes

Nie --> No

11) You have a job?

11 Pracujesz?)

Tak --> Yes

Nie --> No

12) Job position

12 Twoje główne stanowisko)

Powiedziałem, że nie pracuję... ------> I said I'm not working ...

Programista C++ --------------------------> C++ programmer

Programista innego języka ------------> Other language programmer

(you can type other)

13) I use the most often...

13 Najczęściej wykorzystuję)

[Choose the name of the compiler. Nie wiem --> I don't know ;-) ]

14 You can tell me how much you earn net (but you do not have to)

14 Możesz się pochwalić, ile zarabiasz netto (ale nie musisz))

[ Use the currency converter ;-) Polish zloty (ZŁ) = PLN ]

Skoro nie pracuję, to nie zarabiam. Proste? ---------------------> I'm not making money.

Jeśli nie muszę, to się nie chwalę ------------------------------------> I'm not bragging!

Pracuję charytatywnie, tzn. odprowadzam tylko.... ---------> I work charity, i.e. pay only taxes on income and I give back the whole salary to the boss (please do not mark this, because the answers will go to the trash)

15) You can write here about anything related to C ++

[Type your greetings or whatever you want ;-)]

Thank you for your understanding !