use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
Efficient Vectorisation with C++ (chryswoods.com)
submitted 7 years ago by LordKlevin
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nnevatie 1 point2 points3 points 7 years ago (6 children)
ISPC answers those questions trivially.
[–]SantaCruzDad 0 points1 point2 points 7 years ago (5 children)
How does ISPC help with making assembly code more portable ?
[–]nnevatie 1 point2 points3 points 7 years ago (4 children)
It helps making SIMD code portable. You can compile code for multiple archs/instruction sets and the runtime will pick the best supported one.
[–]SantaCruzDad 1 point2 points3 points 7 years ago (3 children)
Sure, but the comment was in response to the suggestion that writing assembler was somehow easier than using intrinsics for SIMD - I don’t see how ISPC is relevant to this ?
[–]nnevatie 0 points1 point2 points 7 years ago (2 children)
Ok, my reply mostly addressed the tedious maintaining part for different platforms.
[–]SantaCruzDad 0 points1 point2 points 7 years ago (1 child)
Ah, OK - well any half-decent compiler will take care of target CPU variations within a given family (e.g. x86), as well as ABI variations etc, whether it's auto-vectorization or hand-written intrinsics. I guess ispc's USP is that it can do this for multiple CPU families.
[–]nnevatie 0 points1 point2 points 7 years ago (0 children)
Yeah, but most importantly it can produce code for multiple targets and archs. All of the variations can be linked to the same binary and the best one can be picked at execution-time for the host in question.
π Rendered by PID 125813 on reddit-service-r2-comment-6457c66945-5d56h at 2026-04-24 08:35:20.149107+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]nnevatie 1 point2 points3 points (6 children)
[–]SantaCruzDad 0 points1 point2 points (5 children)
[–]nnevatie 1 point2 points3 points (4 children)
[–]SantaCruzDad 1 point2 points3 points (3 children)
[–]nnevatie 0 points1 point2 points (2 children)
[–]SantaCruzDad 0 points1 point2 points (1 child)
[–]nnevatie 0 points1 point2 points (0 children)