NOTE: there are a few posts about this tool in this blog already, but the cryptic name, cpsh, seems to have scared away some of you. Welcome back!
I have built something that is cool and useful, objectively speaking. That something is a shell - interactive or not - using C++. It does have a name, as well: cpsh.
What this means is that you can
- evaluate C++ expressions and statements in a fail-safe context, with immediate response
- create tiny C++ scripts and run them from file or standard input
This provides a perfect environment for understanding hairy semantic subtleties of C++ as well as learning all those nifty algorithm templates of the Standard Library. Such as realizing that there is no copy_if
And, there is built-in support for the Boost Library, of which core parts will be part of the next version of the C++ standard.
More information and instructions on how to build or download prebuilt executables is found in the Google Project for cpsh. Download it for Windows or OS X and just get crazy with C++ constructs and uninstall those Python, Perl and Ruby environments immediately ![]()