Not in (interpreted) Kansas anymore - DelphiTools.info


http://delphitools.info/2013/04/24/not-in-interpreted-kansas-anymore/

Comments

  1. Very cool! Do you also have numbers of DWScript without JIT? (so how much faster is it now?).

    ReplyDelete
  2. About 20x faster for SciMark, 12x faster for Mandelbrot and 40x for array stats.
    However those ratios aren't set in stone, while the JIT is still work in progress, the script engine is getting better as well.

    ReplyDelete
  3. Eric Grange impressive! so it's getting "native" too :)

    ReplyDelete
  4. André Mussche LLVM is being investigated by Christian Budde for "full blown" compilation (nothing ready yet). I haven't been convinced by samples I've seen of LLVM as a JIT (notably by the Lua guys).
    While LLVM does achieve nice speeds, the JIT times are not insignificant, and the LLVM overhead is huge, so it was only beneficial for truly CPU intensive, frequently used scripts.

    While the DWScript JIT isn't yet complete, it's just 50 kB when compiled, and JITting itself is very fast.

    ReplyDelete
  5. The basic DWS interface to LLVM has been established and I was able to compile very simple scripts already. However, after being not careful enough, I lost one unit, which was not committed already. Thus I need to rewrite it again. I'm back on track today and I hope to have something to show in the next days...

    ReplyDelete
  6. Christian Budde cool! 
    btw: didn't you have a local __history copy of it? saved me a couple of times...

    ReplyDelete
  7. Not if you hit 'clean up' with the option 'remove all unversioned files' checked. Though it went to the recycle bin, I cleared it after cleaning up my HD as well. I scrolled through the files in the bin, but must have missed that important file.
    Anyway not as bad it might sound like, because most of the code was trial and error or hardcoded LLVM calls to produce a Hello World sample.

    ReplyDelete

Post a Comment