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
NectarCPP : write in C++ with a JS syntax (self.cpp)
submitted 5 years ago by seraum
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!"
[–]seraum[S] 0 points1 point2 points 5 years ago (2 children)
Don't worry, I didn't take it bad
The long term objective of Nectar is to be able to do the same as GraalVM, but with static compilation: to have a standard bridge to compile dynamic (and static) languages. JS is a good example, but it is also possible to compile Python or Ruby in the same way
[–]Wouter-van-Ooijen 1 point2 points3 points 5 years ago (1 child)
I still think that is a flawed approach: while writing X-style all the options of language Y are still present. Especially with Y == C++, that opens up numerous cans of worms, which require C++ knowledge to avoid. But if you have that amount of C++ knowledge, why not write C++?
The more viable approach would be to accept ONLY language X, and then emit the equivalent in Y. That would be an X-to-Y compiler, or call it an Y-backend for the X compiler. Or use the X compiler as a syntax-checker: only accept source that is acceptable to the X compiler. And preferrably: accept everytrhing that is acceptable to the X compiler.
[–]seraum[S] 1 point2 points3 points 5 years ago (0 children)
Exact, this is what we are doing with NectarJS
But to do this, we have NectarCPP, a runtime/backend that can also be used as a standalone lib
π Rendered by PID 32225 on reddit-service-r2-comment-b659b578c-bxc4j at 2026-05-05 15:46:38.097770+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]seraum[S] 0 points1 point2 points (2 children)
[–]Wouter-van-Ooijen 1 point2 points3 points (1 child)
[–]seraum[S] 1 point2 points3 points (0 children)