Filter
Exclude
Time range
-
Near
7 Aug 2024
What helped you become really good at C ? Currently just reading through LearningCpp and will start grinding projects. I know 90% of it is just working and learning but I was curious if you had any other thoughts
2
451
C 20, the good parts #cpp #cpp20 #learningcpp enum class LongEnumNname { hello, world, coding }; using enum LongEnumNname; ... case hello: cout << "hello"; break; case world: cout << "world"; break; case coding: cout << "coding "; break; (by @fenbf)
2
10
1,388
28 Dec 2022
"...Because copying std::runtime_error is not permitted to throw exceptions, this message is typically stored internally as a separately-allocated reference-counted string." #cpp11 #learningcpp
C trivia is fun. Here's an obscure one: Since C 11, the Standard Library has had a reference-counted string type. What is it?
6
637
24 Nov 2022
Portable assumptions proposal (removed from C 23 so far): int divide_by_32(int x) { [[assume]](x >= 0); return x/32; } existing: __builtin_assume (Clang) and __assume (MSVC, ICC) #learningcpp #performance open-std.org/jtc1/sc22/wg21/…

6
3
14
23 Nov 2022
std::hardware_destructive_interference_size ... - 1) Minimum offset between two objects to avoid false sharing. Guaranteed to be at least alignof(std::max_align_t) - Note: These constants provide a portable way to access the L1 data cache line size #learningcpp #cpp17
1
3
22 Nov 2022
true, already heard about it but forgot! #learningcpp
1
5
20 Oct 2022
This means: you can cast between float and it's bit representation #cpp20 #learningcpp
1
3
TIL: C 's attribute namespaces and arguments: en.cppreference.com/w/cpp/la… #cpp #cpp17 #learningcpp

1
1
2