Compiler (oh no not again)
- Posted by Lmailles at AOL.COM Jul 28, 1998
- 595 views
DISCLAIMER: This subject has probably already been discussed a million times, so anybody interested in a Euphoria please hold your fingers and check the list archives for discussions and explanations. One of the major downfalls of Euphoria is number-crunching, or rather lack of it. This is really inevitable in an interpreted language, and the only way out was either ASM or ****Rude language warning******* C/C++ ..... until now ..... Is there somebody out there who could write a compiler for Euphoria math and logical operations and maybe for loops and convert them into ready-to-call machine code subroutines ? For example, I might have an include file : ----------crunch.ec function lots_of_maths(atom x) x=power(x,2)+6*x-3 if x>=0 then return x+1 else return x-1 end if end function -------------- The compiler would take this and produce crunch.e, an include file with the same named function but ASM code instead of Euphoria. I think Pete might have already done something similar, it would probably take Rob about half an hour. Obviously it would only work on atomic mathematics, sequences are less in need of it. -------------------------- Daniel Johnson Les Mailles Technologies "If you don't stand for God, you won't stand at all" -Isaiah