Originally posted by DeepDayze
View Post
Announcement
Collapse
No announcement yet.
LLVM's Clang Compiler Is Now C++11 Feature Complete
Collapse
X
-
Last edited by duby229; 21 April 2013, 01:56 PM.
-
Originally posted by wargames View PostSorry, but what the hell... how many programs use hundreds of threads ?
Comment
-
Originally posted by duby229 View PostI'm certain that it can be done, but it just isnt easy. It's very difficult to code for even just 8 threads, but it is relatively simple to spawn 8 processes. The same goes for compilers. C/C++ is simply not suitable for parallel workloads. I don't think it ever will be. I don't think we'll see commonplace massively parallel code bases until c/c++ gets displaced. It trains people to think in serial. There are workloads that are inherently parallel but that you see is written in a very serial way. And it is commonplace. It's because it just isnt made for parallelism. and people get so used to the concepts that it enforces that they can't think any other way.
OpenMP helps parallize the trivial stuff (FOR loops are good example) that is simply too much of a pain to thread by hand, but that only gets you so far. Nevermind the extra layer of complexity when it comes to debugging...
Comment
-
In the GCC 4.8.1 release announcement, they claim that GCC is the first compiler to fully support C++11:
Support for C++11 ref-qualifiers has been added to GCC 4.8.1, making G++ the first C++ compiler to implement all the major language features of the C++11 standard.
Comment
-
Originally posted by Vim_User View PostI think there is a difference between "we fully support C++11" and "we support the major features".
Comment
-
-
Originally posted by gamerk2 View PostSpawning threads in C/C++ is trivial (at least on Windows...). The main problem is that the vast majority of processing is serial in nature. And most of the stuff that is naturally parallel (large dataset processing, rendering, etc) is already offloaded to the GPU through various API's.
OpenMP helps parallize the trivial stuff (FOR loops are good example) that is simply too much of a pain to thread by hand, but that only gets you so far. Nevermind the extra layer of complexity when it comes to debugging...
Comment
Comment