Re: [polyml] New Foreign Function Interface

2015-10-12 Thread David Matthews
On 10/10/2015 17:45, Artella Coding wrote: I get double speedup using the new ffi (see timings at top of files below). Strangely passing integers by ref is actually slower than passing by value (see last program right at the bottom) : I'm not actually surprised that passing by reference is

Re: [polyml] tracing

2015-10-12 Thread David Matthews
Hi Ramana, There's nothing specific but the new DebuggingInterface structure should allow you to build this yourself. First build the new compiler with "make compiler" then compile your function with PolyML.Compiler.debug := true; before it. You don't need to compile your whole program with

Re: [polyml] tracing

2015-10-12 Thread Ramana Kumar
Thanks David! That looks very promising. Rather than printing the arguments using displayVal each time, would it be possible to instead print a number identifying the argument value, so that multiple calls to traced functions where some of the arguments are the same re-use the same numbers? I