Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

REPL / LINQpad / F# interactive alternative for C++0x?

I love using LINQpad and FSI while developing code for C# and F#. For haskell, I've used hugs. And of course, scripting languages almost always come with a REPL. Pretty much every modern browser ships with a fairly fancy javascript repl/ide.

Is there something similar for C++0x?

Neat features would be:

  • can include/link to preexisting code
  • compile cycle is short&fast - taking a second is OK, taking minutes is not.
  • autocomplete/intellisense or similar would be nice, or at least a decent google-this-function-for-me keyshortcut
  • at least partial C++0x support.

I mostly use windows, but if there's a great tool on linux that doesn't require 1337 hours to configure on each new distro (i.e. not most emacs configurations) I'd be interested in hearing of those too.

Related: C++ interpreter / console / snippet compiler (two years ago, linux-focused)

Edit: A not entirely irrelevant note is that I'd like to use this to get a feel for C++0x amongst other things - so as much as possible C++0x support - at least for auto and lambdas - would be nice. I'm not looking for a statement-by-statement repl so much as a rapid development environment.

like image 906
Eamon Nerbonne Avatar asked Feb 03 '11 17:02

Eamon Nerbonne


1 Answers

the same place, try cling: http://root.cern.ch/drupal/category/package-context/cling It's a fairly young project and it is the successor of cint. It will support all the c++0x features which clang supports.

like image 164
inter1965 Avatar answered Sep 27 '22 20:09

inter1965