473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C++ interpreter

Hi,

Once C++ program use a lot of metaprogramming, the compilation of the
code takes a lot of time. I'm wondering if there is any C++ interpreter
available such that I don't have to wait for too long to run the binary
code.

Thanks,
Peng

Jul 12 '06 #1
3 3469
PengYu.UT wrote:
Once C++ program use a lot of metaprogramming, the compilation of the code
takes a lot of time. I'm wondering if there is any C++ interpreter
available such that I don't have to wait for too long to run the binary
code.
I would guess that any interpreters cannot evaluate templates as
correctly as a real compiler. And metaprogramming is supposed to be about
speed of execution, so you would lose that, too.

Have you followed sane coding practices, so each recompile is as short as
possible?

--
Phlip
Jul 12 '06 #2
On Wed, 12 Jul 2006 18:21:10 GMT, Phlip <ph*******@gEEEmail.com>
wrote:
>PengYu.UT wrote:
>Once C++ program use a lot of metaprogramming, the compilation of the code
takes a lot of time. I'm wondering if there is any C++ interpreter
available such that I don't have to wait for too long to run the binary
code.

I would guess that any interpreters cannot evaluate templates as
correctly as a real compiler. And metaprogramming is supposed to be about
speed of execution, so you would lose that, too.
Templates constitute a Turing complete sublanguage (macro-language)
within C++. In that sense, the template evaluation machanism is the
interpreter.

Best wishes,
Roland Pibinger
Jul 12 '06 #3
Once C++ program use a lot of metaprogramming, the compilation of the
code takes a lot of time. I'm wondering if there is any C++ interpreter
available such that I don't have to wait for too long to run the binary
code.
You may try
http://www.softintegration.com/
whether it will work with your code.

Also CINT interpreter exists
http://root.cern.ch/root/CintInterpreter.html
but it is not very string in dealing with metaprograms.

My feeling is that no interpreter will be significantly
faster than a compiler, just because most of the
work is spent in front-end and all this needs to
be made during interpretation.

/Pavel
Jul 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Neil Benn | last post by:
Hello, I'm looking at a small app which would need a very quick startup time for the Python interpreter. It doesn't do much (copying and caching of files, no GUI) but I need the Python...
12
by: Anon | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello all I am a beginner teaching myself python, and I am enjoying it immensely :) As a language it is great, I real treat to study, I actually...
1
by: Donnie Leen | last post by:
I wrote a program embbed boost.python, each thread running a sub-interpreter, i made a module implement by boost.python, and i wish this module imported in each sub-interpreter, i find that the...
12
by: Rex Eastbourne | last post by:
Hi, I'm interested in running a Python interpreter in Emacs. I have Python extensions for Emacs, and my python menu lists "C-c !" as the command to run the interpreter. Yet when I run it I get...
4
by: Ian Giblin | last post by:
I am an experienced C programmer, learning C++ by writinging a mathematical toolkit in the framework of a script interpreter. I am posting here to ask for advice (or references) on the object...
12
by: ozbear | last post by:
If one were writing a C interpreter, is there anything in the standard standard that requires the sizeof operator to yield the same value for two different variables of the same type? Let's...
6
by: gr | last post by:
hi.. I must implement an interpreter in C programming language that will get the source code of a program in text file format and execute it. but i don't know C language enough to write this...
3
by: Robin Becker | last post by:
As part of some django usage I need to get some ReportLab C extensions into a state where they can be safely used with mod_python. Unfortunately we have C code that seems incompatible with...
40
by: castironpi | last post by:
I'm curious about some of the details of the internals of the Python interpreter: I understand C from a hardware perspective. x= y+ 1; Move value from place y into a register Add 1 to the...
5
by: Erik Hahn | last post by:
I'm looking for a standalone Javascript interpreter like the ones of Perl and Python. Does such a thing exist for Linux? Thanks in advance. -Erik --...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.