<p>I am curious if anyone have used UnderC, Cint, Cling, Ch, or any other C++ interpreter and could share their experience.</p>

[{'answer_id': 69617, 'author': 'jfm3', 'author_id': 11138, 'author_profile': 'https://Stackoverflow.com/users/11138', 'pm_score': 2, 'selected': False, 'text': "<p>Long ago, I used a C++ interpreter called CodeCenter.  It was pretty nice, although it couldn't handle things like bitfields or fancy pointer mangling.  The two cool things about it were that you could watch when variables changed, and that you could evaluate C/C++ code on the fly while debugging.  These days, I think a debugger like GDB is basically just as good.</p>\n"}, {'answer_id': 69875, 'author': 'user11269', 'author_id': 11269, 'author_profile': 'https://Stackoverflow.com/users/11269', 'pm_score': 2, 'selected': False, 'text': "<p>Also long ago I used a product call Instant C but I don't know that it ever developed further</p>\n"}, {'answer_id': 71234, 'author': 'Alan', 'author_id': 2958, 'author_profile': 'https://Stackoverflow.com/users/2958', 'pm_score': 3, 'selected': False, 'text': '<p>I have (about a year ago) played around with <a href="http://www.ddj.com/cpp/184402054" rel="nofollow noreferrer">Ch</a> and found it to be pretty good.</p>\n'}, {'answer_id': 72792, 'author': 'dmckee --- ex-moderator kitten', 'author_id': 2509, 'author_profile': 'https://Stackoverflow.com/users/2509', 'pm_score': 4, 'selected': False, 'text': '<p>cint is the command processor for the particle physics analysis package <a href="http://root.cern.ch/" rel="noreferrer">ROOT</a>. I use it regularly, and it works very well for me.</p>\n\n<p>It is fairly complete and gets on well with compiled code (you can load compiled modules for use in the interpreter...)</p>\n\n<p><strong>late edit::</strong> Copied from a later duplicate because the poster on that questions didn\'t seem to want to post here: <a href="http://sourceforge.net/projects/igcc/" rel="noreferrer">igcc</a>. Never tried it personally, but the web page looks promising.</p>\n'}, {'answer_id': 213479, 'author': 'Jon Trauntvein', 'author_id': 19674, 'author_profile': 'https://Stackoverflow.com/users/19674', 'pm_score': 1, 'selected': False, 'text': "<p>I looked at using ch a while back to see if I could use it for black box testing DLLs for which I am responsible.  Unfortunately, I couldn't quite figure out how to get it to load and execute functions from DLLs.  Then again, I wasn't that motivated and there may well be a way. </p>\n"}, {'answer_id': 2762167, 'author': 'Matthew Flaschen', 'author_id': 47773, 'author_profile': 'https://Stackoverflow.com/users/47773', 'pm_score': -1, 'selected': False, 'text': '<p>There is a program called <a href="http://neugierig.org/software/c-repl/" rel="nofollow noreferrer">c-repl</a> which works by repeatedly compiling your code into shared libraries using GCC, then loading the resulting objects.  It seems to be evolving rapidly, considering <a href="http://packages.ubuntu.com/lucid/i386/c-repl" rel="nofollow noreferrer">the version</a> in Ubuntu\'s repository is written in Ruby (not counting GCC of course), while the <a href="http://neugierig.org/software/git/?url=c-repl/" rel="nofollow noreferrer">latest git</a> is in Haskell. :)</p>\n'}, {'answer_id': 9446693, 'author': 'Shep', 'author_id': 915501, 'author_profile': 'https://Stackoverflow.com/users/915501', 'pm_score': 5, 'selected': False, 'text': '<p><strong>NOTE:</strong> what follows is rather CINT specific, but given that its probably the most <a href="http://www.google.com/search?hl=en&amp;q=c%2b%2b%20interpreter">widely used</a> C++ interpreter it may be valid for them all.</p>\n\n<p>As a graduate student in particle physics who\'s used CINT extensively, I should warn you away. While it does "work", it <a href="http://root.cern.ch/drupal/content/do-we-need-yet-another-custom-c-interpreter">is in the process of being phased out</a>, and those who spend more than a year in particle physics typically learn to avoid it for a few reasons: </p>\n\n<ol>\n<li><p>Because of its roots as a C interpretor, it fails to interpret some of the most critical components of C++. Templates, for example, don\'t always work, so you\'ll be discouraged from using things which make C++ so flexible and usable. </p></li>\n<li><p>It is slower (by at least a factor of 5) than minimally optimized C++. </p></li>\n<li><p>Debugging messages are much more cryptic than those produced by g++. </p></li>\n<li><p>Scoping is inconsistent with compiled C++: it\'s quite common to see code of the form </p>\n\n<pre><code>if (energy &gt; 30) { \n    float correction = 2.4;\n}\nelse {\n    float correction = 6.3;\n}\n\nsomevalue += correction; \n</code></pre>\n\n<p>whereas any working C++ compiler would complain that <code>correcton</code> has gone out of scope, CINT allows this. The result is that CINT code isn\'t really C++, just something that looks like it. </p></li>\n</ol>\n\n<p>In short, CINT has none of the advantages of C++, and all the disadvantages plus some. </p>\n\n<p>The fact that CINT is still used at all is likely more of a historical accident owing to its inclusion in the ROOT framework. Back when it was written (20 years ago), there was a real need for an interpreted language for interactive plotting / fitting. Now there are many packages which fill that role, many which have hundreds of active developers. </p>\n\n<p>None of these are written in C++. Why? Quite simply, C++ is not meant to be interpreted. Static typing, for example, buys you great gains in optimization during compilation, but mostly serves to clutter and over-constrain your code if the computer is only allowed to see it at runtime. If you have the luxury of being able to use an interpreted language, learn Python or Ruby, the time it takes you to learn will be less than that you loose stumbling over CINT, even if you already know C++. </p>\n\n<p>In my experience, the older researchers who work with ROOT (the package you must install to run CINT) end up compiling the ROOT libraries into normal C++ executables to avoid CINT. Those in the younger generation either follow this lead or use Python for scripting. </p>\n\n<p>Incidentally, ROOT (and thus CINT) takes roughly half an hour to compile on a fairly modern computer, and will occasionally fail with newer versions of gcc. It\'s a package that served an important purpose many years ago, but now it\'s clearly showing it\'s age. Looking into the source code, you\'ll find hundreds of deprecated c-style casts, huge holes in type-safety, and heavy use of global variables. </p>\n\n<p>If you\'re going to write C++, write C++ as it\'s meant to be written. If you absolutely must have a C++ interpretor, CINT is probably a good bet. </p>\n'}, {'answer_id': 12116668, 'author': 'Grzegorz Wierzowiecki', 'author_id': 544721, 'author_profile': 'https://Stackoverflow.com/users/544721', 'pm_score': 6, 'selected': True, 'text': '<p>There is <strong><a href="http://cern.ch/cling" rel="noreferrer">cling</a> Cern\'s project</strong> of C++ interpreter based on <a href="http://clang.llvm.org/" rel="noreferrer">clang</a> - it\'s <em>new approach</em> based on 20 years of experience in <em>ROOT cint</em> and it\'s quite stable and recommended by Cern guys.</p>\n\n<p>Here is nice <a href="http://www.youtube.com/watch?v=f9Xfh8pv3Fs" rel="noreferrer">Google Talk: Introducing cling, a C++ Interpreter Based on clang/LLVM</a>.</p>\n'}]
['https://Stackoverflow.com/questions/69539', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/9706/']