C++0x 的 REPL / LINQpad / F# 交互式替代方案?
我喜欢在开发 C# 和 F# 代码时使用 LINQpad 和 FSI。对于 haskell,我使用了拥抱。当然,脚本语言几乎总是带有 REPL。几乎每个现代浏览器都附带了相当奇特的 javascript repl/ide。
C++0x 有类似的东西吗?
简洁的功能是:
- 可以包含/链接到预先存在的代码,
- 编译周期又短又快——花一秒钟就可以了,花几分钟就不行了。
- autocomplete/intellisense 或类似的功能会很好,或者至少有一个不错的 google-this-function-for-me 快捷键,
- 至少有部分 C++0x 支持。
我主要使用 Windows,但如果 Linux 上有一个很棒的工具不需要 1337 小时在每个新发行版上进行配置(即不是大多数 emacs 配置),我也会有兴趣了解这些。
相关: C++ 解释器/控制台/代码片段编译器(两个几年前,以 Linux 为中心)
编辑: 一个并非完全不相关的注释是,我想用它来感受 C++0x 以及其他东西 -所以尽可能多的 C++0x 支持 - 至少对于 auto 和 lambdas - 会很好。我并不是在寻找逐条语句的复制,而是在寻找快速开发环境。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同一个地方,尝试粘住: http://root.cern.ch/drupal/类别/包上下文/cling
这是一个相当年轻的项目,它是 cint 的继承者。
它将支持 clang 支持的所有 c++0x 功能。
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.
试试这个:http://root.cern.ch/drupal/content/cint
Try this one: http://root.cern.ch/drupal/content/cint