On Friday, December 5, 2014 5:25:18 PM UTC, Steven G. Johnson wrote:
>
> There is no runtime overhead in cases where the types are known at compile 
> time.
>

Be aware of one thing, say you define:

f(x, y) = 1 + 2p(x)y; p(x) = 2x^2 + 1;

You will get the same code even as if you defined p first. UNLESS you try to 
run f first by accident (or intentionally as I did). Then at compile time you 
get complicated assembly code (and an error).

Then if you define p then f is already defined and now works and will not get 
reoptimized. This gives slower result in interactive.

Best regards,
Palli.

Reply via email to