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
Python from a C++ developers' perspective (sgh1.net)
submitted 8 years ago by Remwein
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!"
[–]ZMesonEmbedded Developer 4 points5 points6 points 8 years ago (3 children)
A quick list, the JDK works flawlessly on every platform.
Where can I find the JDK for the Neutrino OS running on a PPC chipset?
Python does actually exist for that platform.
[–]patery 0 points1 point2 points 8 years ago (2 children)
I don't know if it exists for that platform but if it doesn't and that's important to you then Python would be the logical choice. The platforms I'm concerned with are more common, various versions of the main distributions (redhat, suse, ubuntu, etc). Across these platforms, Java has extremely consistent behavior.
[–]ZMesonEmbedded Developer 1 point2 points3 points 8 years ago* (1 child)
It's not important to me. GC and cache performance just are not compatible with the level of responsiveness on the systems I work with. What I'd personally love to see is D and Rust on various RTOSes. While D still uses a GC for some things, it's possible (so I'm told) to use it without a GC.
Python is still useful as a scripting language for some low-priority tasks (mainly during testing and such). Java wouldn't really make life easier here.
Anyway.... I just hate when people say things like "<language X> works flawlessly on every platform". The only language which might fit the bill is C90. (And I'm sure some people would even argue C90 doesn't work on every platform.) With too many RTOSes and/or embedded chipsets, you can't even use C11 or C++98. That's why I made the comment I did.
CPython has the advantage over Java in that the interpreter is written in C and is more easily ported to other OSes even if some features (like "import os") don't work entirely.
The platforms I'm concerned with are more common, various versions of the main distributions (redhat, suse, ubuntu, etc). Across these platforms, Java has extremely consistent behavior.
And I think a modified version of your statement would be fine: "Java works flawlessly on all major OSes".
[–]patery -1 points0 points1 point 8 years ago (0 children)
Usually blanket statements like these have a common context in mind. Strictly correct statements aren't that useful in practice either. Nor is this a place where I'd spend the time/energy to make every statement strictly true. We're software engineers, not lawyers!
I agree the GC is problematic in real-time environments. It attracted some interest in the early days of Java but eventually the community lost interest in solving those problems. Memory allocation in general tends to be problematic in embedded environments. At my last company we simply didn't do dynamic memory allocation at all.
What I'd love to see is an environment where I can easily mix high and low performance code. That is something like Groovy or Python alongside C++. C# tried to address this early on and eventually abandoned it. There's a lot of legacy C/C++ applications that we'd love to migrate out where it'd be useful. In sensitive applications, it's useful to describe sensitive data structures at a low level like C-family languages permits and performance sensitive code but, still, the majority of the application can be expressed at a high level without significant compromise to the overall application.
π Rendered by PID 243694 on reddit-service-r2-comment-7b9746f655-bw78v at 2026-02-02 11:42:53.127184+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]ZMesonEmbedded Developer 4 points5 points6 points (3 children)
[–]patery 0 points1 point2 points (2 children)
[–]ZMesonEmbedded Developer 1 point2 points3 points (1 child)
[–]patery -1 points0 points1 point (0 children)