The interpreter and dynamic compiler would be for testing/prototyping and when im done testing i use the static compiler.

3

There are 3 answers

0
psihodelia On

The best option for you depends on the kind of your application. If it is a real-time program, then just stay with C++ (or ever with C) because no high-level language like Ruby/Perl/Python will beat them in this domain. But if the complexity of your future program is high enough, the best option I see in Python + PyOpenGL (for graphics) +PyOpenAL (for sound) and PyODE (for real-time physics). Actually, Python's VM is fast enough but you can also (with some efforts) compile it into a platform-dependent optimized code.

Alternatively you can use PyGame for 2D graphics and a way comfortable sound/music management.

1
Chip Uni On

There are many.

One such language is Objective Caml. Let's check it against your requirements:

The bigger question is finding the best tool for your job. Many languages meet those requirements, but the most used languages have the best documentation and the most tested bindings to libraries. If you're going to use a language like Caml, there should be some overriding benefit to that language that can't be found in other languages.

Good luck!

0
Steven Schlansker On

Java has all of these - the stock Sun JVM has both an interpreter and dynamic compiler, and the GNU Compiler for Java (GCJ) can statically compile to machine code.