1. Compiler Vs. Interpretter

Hi y'all!

I thought it'd be nice to talk about the Euphoria Compiler's new window of
opertunities opening up soon. Robert told us numerous times that the project
is going along well, and that he can even compile several small Euphoria
apps to machine code with increased performance
allready.

What does this compiler bring us that the interpetter doesn't?

My four guesses would be the following;

1. Optimisations. The Interpretter can't realy afford to do complex
optmisations on the source fed to it since that would degrade start-up time.
This compiler however can take all the time optimising the code it needs,
since it's a once-and-for-all operation, resulting in fast optimised
applications and code! Plus, the C compiler can top that and do even more
optimisations of its own aswell!

2. API creation. It's virtually impossible for us now to write a
multi-platform API for C/C++ programmers in Euphoria. We can't compile our
programs into DLLs, static and shared libraries, object files and header
files for use by other programs. Since the compiler produces C code, we can
compile the translated code in something both Euphoria, C/C++ and other
programmers can use and call in their own programs, resulting in a
mainstream Euphoria programming medium.

3. Extensibility. Just imagine you compiling a C program to Machine Code
using a C compiler, and then adding new features to it by fiddling with the
produced Machine Code. Not a very nice job eh?
But since this Euphoria compiler compiles into a high-level programming
language easily mapped upon Euphoria, we can add new features to it directly
in C, modifying the produced source, and doing things that can't be done in
Euphoria directly right now.

4. Multi-language programming. You can now use that OpenGL, Direct X, MESA
or Glide API that you always wanted to use in Euphoria! There's no way to
use OpenGL or Glide for DOS32 in Euphoria, and under Win32 and Linux you
can't use the GLut library since it's implemented as a C
static link library and not a DLL. Use that source! Blend languages! Do
MORE!


Now what's your oppinion on the Compiler Vs. Interpretter situation?



Jason Leit,
Greetings! ;)
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu