1. Interpret()
Is Euphoria a compiled or interpreted language? From what I understand it is
compiled... (Sources are compiled before actually run) But if the compiler is
left in memory after the compilation is complete, what prevents us from using
it again? I think that an interpret-function would really kick ass... (as I've
seen it do elsewhere)
sequence str
integer int
str="int=4" int=2
Interpret(str)
? int --> 4
str[length(str)]=6
Interpret(str)
? int --> 6
Anders
(Stay tuned! Rob will now tell me why this is impossible
--------------------------------------------------------------
Anders Eurenius <c96aes at cs.umu.se> UIN:1453793
Computer Science/Engineering student at the university of Umea
--------------------------------------------------------------
2. Re: Interpret()
On Tue, 10 Jun 1997, Anders Eurenius wrote:
> ------------------------------------------------------------------------------
-
>
> Is Euphoria a compiled or interpreted language? From what I understand it is
> compiled... (Sources are compiled before actually run) But if the compiler is
Euphoria is an interpreted language, a darn quick interpreted language.
Michael Packard
Lord Generic Productions
lgp at exo.com http://exo.com/~lgp
A Crash Course in Game Design and Production
http://exo.com/~lgp/euphoria
3. Re: Interpret()
> > Is Euphoria a compiled or interpreted language? From what I understand it is
> > compiled... (Sources are compiled before actually run) But if the compiler
is
> > left in memory after the compilation is complete, what prevents us from
using
> > it again? I think that an interpret-function would really kick ass... (as
I've
> > seen it do elsewhere)
I have also asked after this topic, as i need it for a complex
roleplaying game.
He replied that it may be easier to make a routine that can call other
routines than to make a interpreter routine.
Still an interpreter routine would be MOST PERFECT :)
--Augorian;
4. Re: Interpret()
>> Is Euphoria a compiled or interpreted language? From what I understand it is
>> compiled... (Sources are compiled before actually run) But if the compiler is
>> left in memory after the compilation is complete, what prevents us from using
>> it again? I think that an interpret-function would really kick ass... (as I'v
e
>> seen it do elsewhere)
> I have also asked after this topic, as i need it for a complex
> roleplaying game.
Oh yeah? Mail me some sneak specs/idea!
> He replied that it may be easier to make a routine that can call other
> routines than to make a interpreter routine.
Oh. Ok, I've seen this work. ML uses that (and treating functions as a
datatype) for almost everything.
> Still an interpreter routine would be MOST PERFECT :)
Yeah... You can do a lot of kinky things with interpret(). Like for example
self-modifying code...
>> Anders
> Augorian (Mark Honnor)
Anders
/Anders
--------------------------------------------------------------
Anders Eurenius <c96aes at cs.umu.se> UIN:1453793
Computer Science/Engineering student at the university of Umea
--------------------------------------------------------------
5. Re: Interpret()
- Posted by Daniel Berstein <architek at GEOCITIES.COM>
Jun 10, 1997
-
Last edited Jun 11, 1997
Anders Eurenius wrote:
> Is Euphoria a compiled or interpreted language? From what I understand it is
> compiled... (Sources are compiled before actually run) But if the compiler is
> left in memory after the compilation is complete, what prevents us from using
> it again? I think that an interpret-function would really kick ass... (as I've
> seen it do elsewhere)
Euphoria is interpreted, it reads your code and "compile" it into an
internal
format... I said "compile", because it doesn't generate any machine code
as
output, but a code for the Euphoria virtual machine (the interpreter).
I think that some optimization could be get from creating "pre-compiled"
files... but as Euphoria is so fast at pre-compilation it wouldn't make
any big difference (10.000 lines of code per second in a 486, that's
what
RDS says). I think "shroud" and "bind" do something like that, they
change
all your statements into one-byte code.
--
Regards,
Daniel Berstein
architek at geocities.com
http://www.geocities.com/SiliconValley/Heights/9316