Apr. 13th, 2014

madf: (Default)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49561

Коротко:
2011-06-28 08:17:46 UTC
„I realized that the complexity of std::list::size() is O(n), not O(1).

This does not conform to standard. The standard states that size() function is in constant time for alls containers. So, the behavior of gcc is not as expected.“


2011-10-04 22:22:39 UTC
„Done. If you can, please stress std::list in C++0x mode in order to shake possible bugs related to the O(1) size in time for the 4.7.0 release.“

2012-07-03 01:40:12 UTC
„Patch reverted, thus in C++11 mode size() is back to O(n) but std::list can interoperate with the C++98 version of it.“

2012-07-03 03:35:31 UTC
„Why has this been reverted? If std::list<>::size() is not O(1), then GCC's C++11 standard library is not compliant with the C++11 international standard. I have personally spoken with multiple members of the standard body and confirmed that this behavior is REQUIRED by the C++11 standard.

Please re-apply this patch for C++11 mode, or state somewhere in the GCC docs that GCC is not compliant with the C++11 standard. In the C++03 and C++98 standards, it was highly suggested that compiler vendors implement std::list<>::size() as O(1).“


2012-07-03 08:31:18 UTC
„Yes, we're well aware of that, thanks.

This patch made c++98 and c++11 code incompatible and is causing serious problems for distros.

You've lived with O(n) size for 15 years, you can live with it for a while longer until libstdc++'s ABI changes.“


„15 років жрали лайно — жріть і надалі“.

Завтра буду лякати співробітників. Особливо одного який кричав і бризкав слиною шо if (cont.size() == 0) це нормально і не треба писати if (cont.empty()).

А да...

Apr. 13th, 2014 12:55 pm
madf: (Default)
„А воз и ныне там“
gcc-4.8.2
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/include/g++-v4/bits/stl_list.h:871
/** Returns the number of elements in the %list. */
size_type
size() const _GLIBCXX_NOEXCEPT
{ return std::distance(begin(), end()); }
_Winnie C++ Colorizer

CM2013

Apr. 13th, 2014 02:25 pm
madf: (Default)
В (нескінченному) очікуванні HL2:EP3/HL3 давно хотів спробувати якісь моди. Особливо вразили мене картинки CinematicMod, тож вирішив врешті перевірити чи все там так красиво насправді. Тим паче треба іноді випускати пар у теперішній ситуації, щоб дах не поїхав від новин. Старенька хрюшка в дуалбуті не потягнула — не вистачило пам’яті. Тож я її замінив на 64-бітну заради цього. Інсталяція трошки геморойна, але в принципі все за інструкцією. Налаштування самого CM2013 (він, до речі, експериментальний, але багів не зустрічав) не змінював — виставив тільки по максимуму налаштування самого HL2.

Трішки тексту і багато картинок )

На останок скажу що проходити стало важче. Раніше я міг на Hard позіхаючи і сьорбаючи каву пройти все за один раз, а тут уже так не виходить. Почав я десь у листопаді-грудні, а закінчив тільки вчора. Правда, і грав небагато — одну-дві години по вихідним.
madf: (Default)
В догонку до попереднього.
Read more... )

Profile

madf: (Default)
madf

April 2018

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 17th, 2025 02:17 pm
Powered by Dreamwidth Studios