Tourist Trap wrote:fxm wrote:I do not see the interest of such a method compared to the command "Quick run" of all IDEs.
For instance, I think you could make the compiler evaluate ("on the fly") only math expressions.
The faster expression evaluators usually generate fairly straightforward (and linear) code directly to a memory block for which executable rights are obtained (on *nix with mprotect), and use neither of these "real compile" methods.
Simply because they don't really need a complete compiler/assembler, usually it is only a short sequence of asm instructions per construct (value or operator), without complicated extra passes for labels. (and still already a major boost over an interpreter)
It would maybe be less smooth than a true interpreter, but fast enough if you just compile the math instruction. It's then more general than if you stick with the IDE because you can write a custom frontend.
Well, maybe if you make it directly generate a series. To plot a graph, an execution per value might be a bit much.