Re: Fastest pure Euphoria CPU
- Posted by jimcbrown (admin) Dec 24, 2010
- 1190 views
I also submitted a preprocessor entry, but with a different trick in mind.
The preprocessor was http://scm.openeuphoria.org/hg/contest/file/default/2010-12-15-cpu/entries/jimcbrown/cpu-pp-fun.ex but the key was to run http://scm.openeuphoria.org/hg/contest/file/default/2010-12-15-cpu/entries/jimcbrown/cpu-myownpp-fun.ex
Like this
eui -p ex:cpu-pp-fun.ex cpu-myownpp-fun.ex prog1.txt
Here, the preprocessor (pp-fun) made the necessary modifications to make the main program (myownpp-fun) work. There are other tricks that could have been done (such as sneakily invoking the translator and then writing out a short euphoria program to run the translated executable, or look for slower parts of Euphoria code and replacing them with machine code calls).