On x86, the stack grows “down” towards lower addresses. However, this is only true in the northern hemisphere due to the Coriolis effect. In Australia, the stack grows up actually. That’s because they are all looking at their monitors upside down to avoid falling off the planet.
Item 79: Choosing the right data structure is critical. Is memset too slow? Consider memunordered_set instead, to avoid the red-black tree in favor of hashing. See also memmap for key/value, mempriority_queue, memstack, etc. (thanks @jfbastien) #cplusplus#cpp#affectivecpp
@david_m_stone But `unsigned const int` is not the same as `const unsigned int` nor `unsigned int const`.
For east-const builds unsigned const int makes the high bit read-only.
For west-const builds it makes everything *except* the high bit read-only.
We rejected central due to the ambiguity.
Item 77: The difference between char and wchar_t is that char is for narrow characters, and wchar_t is for wide characters. Store letters like i and j in a char, and letters like m and w in a wchar_t. (Thanks @chrisoldwood) #cplusplus#cpp#affectivecpp
Item 77: The difference between char and wchar_t is that char is for narrow characters, and wchar_t is for wide characters. Store letters like i and j in a char, and letters like m and w in a wchar_t. (Thanks @chrisoldwood) #cplusplus#cpp#affectivecpp
Item 76: Can't remember all the different casts? Replace them all by the more powerful unicorn_cast:
template <typename T, typename U>
T unicorn_cast(U&& u)
{
void* addr = &u;
return *static_cast<T*>(addr);
}
(Thanks @bjorn_fahller) #cplusplus#cpp#affectivecpp
Item 75: For owning pointers, use `int *variable` (star next to the variable you own), and for non-owning pointers use `int* variable` (star away from the variable) (Thanks @olafurw) #cplusplus#cpp#affectivecpp
Item 75: For owning pointers, use `int *variable` (star next to the variable you own), and for non-owning pointers use `int* variable` (star away from the variable) (Thanks @olafurw) #cplusplus#cpp#affectivecpp
Item 74: std::vector<bool> is widely regarded as a bad idea. Instead, prefer using std::basic_string<bool>, which both behaves as an actual container, avoids proxy objects, and gives you a small vector optimization for free! (Thanks @horenmar_ctu) #cplusplus#cpp#affectivecpp
Item 74: std::vector<bool> is widely regarded as a bad idea. Instead, prefer using std::basic_string<bool>, which both behaves as an actual container, avoids proxy objects, and gives you a small vector optimization for free! (Thanks @horenmar_ctu) #cplusplus#cpp#affectivecpp
Item 73: If you experience seemingly random crashes and bugs in your software, simply ship it with -O0 to reduce the failure rate. (Thanks @Cor3ntin) #cplusplus#cpp#affectivecpp
13K Followers 2K FollowingThe C Standard Cannot Be Replaced And Will Never Be Destroyed. ➡ https://t.co/IWEB4XZpve | Avatar @KIINGKIISMET | Banner @Reckless_Moss
3K Followers 491 FollowingRunning San Diego C++ Meetup @sdcppmu, YT chan,
Tech reviewer of OOP book (Packt) with Dorothy K. (Deciphering OOP w/ C++),
My opinions and jokes, nvidian
4K Followers 674 FollowingTechnical Lead for Rust Program @ Microsoft • C++ ↔️ Rust Tooling (DevDiv), ex @visualc team, ex @caphyon, ex @advinst lead, @ClangPowerTools creator, he/him
3K Followers 221 FollowingC++ Consultant and Trainer. Game developer and lead.
Ex Paris C++ User Group organizer. Avid roleplayer, amateur photographer and occasional winetaster.
13K Followers 122 FollowingThe first podcast for C++ developers by C++ developers! Hosted by @phil_nash and @timur_audio. Also find us on Mastodon @[email protected]
6K Followers 461 FollowingI write code, lift weights and play games. I also like everything sci-fi.
Views and opinions are my own. | https://t.co/7ZGsl68xl4
94 Followers 2K FollowingLiving life
Riding Fast
basketball for life
spending money
and Kik me at turn_up_15 follow me on instagram @tbh_gone_know and @khalifa_maddness
356 Followers 51 FollowingАрхитектор-дизайнер, занимаюсь проектированием и 3D визуализацией интерьеров. Даю частные уроки 3ds Max, V-Ray, ArchiCAD в Москве. Живой человек.
11K Followers 90 FollowingCarbon-based open sourcerer, code necromancer and a former alien. Author of C++20 std::format and https://t.co/etCUwPDCEw. Opinions are not mine.
8K Followers 56 FollowingAuthor and trainer for C++ (https://t.co/hZlKwDYgBD,
https://t.co/Wi2xdmcPOl, https://t.co/sjxsPRUKKy,
https://t.co/1qClNsJ8pF, https://t.co/8qPAOGmZaz)
8K Followers 907 FollowingSoftware developer with a technical blog about #cpp #cplusplus #programming. Author of https://t.co/RTymzbCl0a and https://t.co/sZKX50a7n5
4x Microsoft MVP
4K Followers 674 FollowingTechnical Lead for Rust Program @ Microsoft • C++ ↔️ Rust Tooling (DevDiv), ex @visualc team, ex @caphyon, ex @advinst lead, @ClangPowerTools creator, he/him
3K Followers 221 FollowingC++ Consultant and Trainer. Game developer and lead.
Ex Paris C++ User Group organizer. Avid roleplayer, amateur photographer and occasional winetaster.
6K Followers 461 FollowingI write code, lift weights and play games. I also like everything sci-fi.
Views and opinions are my own. | https://t.co/7ZGsl68xl4
6K Followers 546 FollowingC++/kiCad/embedded/random thoughts. CTO at AIGruppe. Building monitoring systems for industrial/environmental/critical infrastructure.
- not the god
3K Followers 329 FollowingMaking programming more accessible, one line at a time 🌼 C++ standards committee member 🌼 Passionate about diversity 🌼 Views are my own 🌼 she/her
1K Followers 1K FollowingNo longer active here. Leaving this on as a redirect.
Advanced Technologies Team Lead @JFrog | ex-@magicleap | @[email protected] | He/Him
3K Followers 2K FollowingVisioneer; Architect; CV/ML; C++; Evolution; (he/him) { In a parallel universe I am a paleoanthropologist }
@[email protected]
2K Followers 854 Following@conan_io cofounder, lead architect @JFrog. ❤️ open source, C, C++, Python. Ex: freelance, startup, robotics, PhD, Prof. Proud father of 3. Opinions my own
11K Followers 27 FollowingThis account is unmonitored and for information purposes only. The conference isn't affiliated with X or any advertisement shown with the profile or its posts
226 Followers 532 FollowingSoftware Engineer (C++). I work @torcrobotics. Opinions on Twitter and elsewhere are my own. Expect tech, politics and soccer (In ❤️ with Borussia Dortmund).
1K Followers 285 FollowingEmbedding all the systems. Building all the future. Efficiency by default. Correctness by default. Non-Profit. #emBO24: 14-15.3 Imprint: https://t.co/Oa2cMuDAFM
1K Followers 232 Following@cpppfr organizer, co-host of Paris C++ meetup, part of @include_cpp community. I make https://t.co/NdWJYCmPD6. @[email protected] He/Him