Anonymous
Well but asking opinion of experts here you can just answers quite fast
S.
This is a too general question
Walter
This is a too general question
Thats y I asked here ...So I dnt waste time in watching those tutorials
S.
😑 good luck
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.
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
Bro c c++ best ide for Windows
Search the chat history
Anonymous
Oh
Mat
We had something like 10+ discussion about it already 😂
Anonymous
Search the chat history
Ok I can find out this history
Dima
top kek top tier questions time
olli
Bro c c++ best ide for Windows
again, best depends on your needs. These are the results of a study to determine the most used C++ IDEs in 2018.
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
Ludovic 'Archivist'
This Visual Studio hurts me
Well for having had to deal with it, it is not THAT bad of an IDE
Anonymous
Well for having had to deal with it, it is not THAT bad of an IDE
The most annoying thing was the missing folders
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
Yeah that's cool, indeed. But why should I use VS for that?
Because I consider the VS Debugger good and its convienent
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'
clang++ has nearly complete c++17 support
Still no execution policy header
Ludovic 'Archivist'
they don't have execution policies either
Anonymous
Still no execution policy header
Yeah, that's true, I said nearly
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'
which is pretty much all that is required to say "hey we did something"
olli
The standard does not guarantee to parallel execution
Ludovic 'Archivist'
The standard does not guarantee to parallel execution
The reason GCC and Clang did not push on that yet is because they don't want to pretend
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
Also, MS coroutines are not standard conformant yet in regards to the TS
TS is not standard (yet), so no impact on "standard conformance"
olli
GCC doesn't even have an implemenation of coroutines
Ludovic 'Archivist'
GCC doesn't even have an implemenation of coroutines
It only have they in the bleeding edge one yeah
Ludovic 'Archivist'
which version did you use?
Since i reinstalled VS in September, not an old one
olli
IIRC 15.7 got shipped/released aroung Aug/Sept..
Ludovic 'Archivist'
IIRC 15.7 got shipped/released aroung Aug/Sept..
Ah, maybe I missed it by a few days then
olli
Back to coroutines.. I would love to see them im GCC as well... :D do you know the current status?
Ludovic 'Archivist'
Back to coroutines.. I would love to see them im GCC as well... :D do you know the current status?
Some dude is pumping in patches to add them apparently but it is not going so well
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
Truly that is the single most feature I want
++, at least Clang has an implementation
Ludovic 'Archivist'
++, at least Clang has an implementation
Yeah, but Clang optimizer is an issue for me
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