Anonymous
Well but asking opinion of experts here you can just answers quite fast
S.
This is a too general question
S.
😑 good luck
Anonymous
Walter
Anonymous
But this is what you're doing. If you want to do something, learn to do it, and don't ask the same questions which is basicly just a google query over and over again.
Anonymous
I said what your options are and you only need to google for tutorials.
Walter
S.
C99 has _Bool?
S.
6.3.1.2 Boolean type
1 When any scalar value is converted to _Bool, the result is 0 if the value compares equal to 0; otherwise, the result is 1.
Anonymous
Yeah, defined in stdbool.h
Dima
rekt
Anonymous
Bro c c++ best ide for Windows
Mat
Anonymous
Oh
Mat
We had something like 10+ discussion about it already 😂
Dima
top kek top tier questions time
Anonymous
Dima
> vim > ide lmao
Ludovic 'Archivist'
why are you doing this?
Because I am not entirely satisfied with the standard C++ library and want to propose an alternative one built on top of the freestanding C++ restrictions
Anonymous
Anonymous
Anonymous
Ludovic 'Archivist'
The cancer is when it tries to open individual files like an idiot and it takes you 5 minutes to open an XML
Anonymous
Only filters for some weird reason
Anonymous
If I need to write code for Windows at work we use VS and it's just pain
Anonymous
It beginns with its ridiculous size (also if you only install the most important stuff) with 8 GB, over the weird folder/filter stuff and end with it's absolut braindead GUI design for linker settings
olli
If you want an IDE Visual Studio is, in my opinion, as good as it gets. The only disadvantage: you need a lot of space on C:\
olli
You can even Write and Debug Linux Kernel Modules from within Visual Studio - that's awesome!
Anonymous
Maybe my workflow is just not fitting with IDE's
Anonymous
olli
and the C++ team does a good job adding and improving features such as "Template Intellisense" - pretty neat!
olli
olli
How do/would you debug Linux Kernel modules?
Anonymous
I do debugging them with gdb
Anonymous
+ kvm/QEMU
olli
for most of the people using VS is probably more effective and efficient
Anonymous
Yeah, the drawback is, that this ends by kernel modules. You can't develope and debug the kernel itself with it.
olli
additionally afaik MS is still the only vendor conforming to C++17
Anonymous
olli
yeah sure language wise, but does libc++?
Anonymous
There are some open issues indeed, but also pretty far
Ludovic 'Archivist'
Ludovic 'Archivist'
Ludovic 'Archivist'
they don't have execution policies either
olli
they don't
https://blogs.msdn.microsoft.com/vcblog/2018/05/07/announcing-msvc-conforms-to-the-c-standard/
olli
"New Features: Parallel Algorithms
C++17’s parallel algorithms library is complete. Note that this doesn’t mean every algorithm is parallelized in every case; the most important algorithms have been parallelized and execution policy signatures are provided even where algorithms are not parallelized. Our STL implementation’s central internal header, yvals.h, contains the following “Parallel Algorithms Notes”: C++ allows an implementation to implement parallel algorithms as calls to the serial algorithms. This implementation parallelizes several common algorithm calls, but not all."
Ludovic 'Archivist'
Ludovic 'Archivist'
which is pretty much all that is required to say "hey we did something"
olli
The standard does not guarantee to parallel execution
olli
That does not make the statement false by any means
Ludovic 'Archivist'
Also, MS coroutines are not standard conformant yet in regards to the TS
Ludovic 'Archivist'
because they are stackful
olli
and its not only "sort"
olli
The following algorithms are parallelized.
adjacent_difference, adjacent_find, all_of, any_of, count, count_if, equal, exclusive_scan, find, find_end, find_first_of, find_if, for_each, for_each_n, inclusive_scan, mismatch, none_of, reduce, remove, remove_if, search, search_n, sort, stable_sort, transform, transform_exclusive_scan, transform_inclusive_scan, transform_reduce
olli
GCC doesn't even have an implemenation of coroutines
Ludovic 'Archivist'
The following algorithms are parallelized.
adjacent_difference, adjacent_find, all_of, any_of, count, count_if, equal, exclusive_scan, find, find_end, find_first_of, find_if, for_each, for_each_n, inclusive_scan, mismatch, none_of, reduce, remove, remove_if, search, search_n, sort, stable_sort, transform, transform_exclusive_scan, transform_inclusive_scan, transform_reduce
Well, on all of my test they never used more than one thread except for the stable_sort
Ludovic 'Archivist'
olli
olli
IIRC 15.7 got shipped/released aroung Aug/Sept..
Ludovic 'Archivist'
olli
Back to coroutines.. I would love to see them im GCC as well... :D do you know the current status?
Ludovic 'Archivist'
Ludovic 'Archivist'
Truly that is the single most feature I want
Ludovic 'Archivist'
with static reflection
olli
IIRC there was an attempt and some patches were proposed like over one year ago.. but still no further commitment done
Ludovic 'Archivist'
because... static reflection is its own reward
olli
Ludovic 'Archivist'
dunno why but my code is compiled into satanist crap on it
Ludovic 'Archivist'
I lose up to 60ns on a 140ns hotpath
olli
Yeah I know, except for trivial coroutines the assembly produced is not.. ideal