Re: Euphoria Interpreter
- Posted by "Cuny, David" <David.Cuny at DSS.CA.GOV> Jul 15, 1999
- 360 views
LEVIATHAN wrote: > ... Ah. So, this is only to show that one cannot > make an interpreter (especially its own language) > under Eu? No, it actually runs pretty fast, in a relative sense. I ran the benchmarks that were supplied with Euphoria, and it was lightyears behind Euphoria and QBasic. But when I removed the DEFINT from the QBasic code, it actually ran faster than QBasic! The main reason for the slow speed stems from storing values in sequences. The difference between: a[1] += 1 and a += 1 is staggering. I found this out when I wrote my Basic to Euphoria interpreter some time back. The interpreter can't perform all it's cool optimizations on data stored in sequences. So it's pathetically slow relative to Euphoria. > Where is it? perhaps I can take a peek at it. It's posted on the Euphoria page. > But, if this CAN be done, perhaps a cpp interpreter > under Eu could work too. Go for it! Just make sure that it's got garbage collection built in, and a nice trace routine, and ... ooops, that's Euphoria, isn't it? -- David Cuny