Re: [pypy-dev] CFFI: better performance when calling a function from address

2018-09-27 Thread Dimitri Vorona via pypy-dev
Hi guys, thanks for your replies. 250ns sounded like a lot, and apparently it was. I can't reproduce it anymore. Thanks for the confirmation that API and ABI modes should have the same performance. I looked at the jitlog, and both api, abi and cast pointer seem to produce exactly the same code (a

[pypy-dev] CFFI: better performance when calling a function from address

2018-09-26 Thread Dimitri Vorona via pypy-dev
Hi all, I am JIT-generating functions in my code and call them by first ffi.cast'ing them to a function pointer. In my microbenchmarks its has pretty much the same call performance as when using cffi ABI mode (dumping the functions to a shared library first) and is around 250ns per call slower th

[pypy-dev] Patchpoints in LLVM

2014-07-17 Thread Dimitri Vorona
Hi, just wanted to link this discussion http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-October/066573.html and this piece of docs http://llvm.org/docs/StackMaps.html. As far as I understand, the lack of patchpoints (i.e. a way to patch dynamically generated code) was the major burden on the way t

Re: [pypy-dev] pypy-dev Digest, Vol 33, Issue 6

2014-01-10 Thread Dimitri Vorona
@Wim Where could I find the current state of the cling backend implementation? Regards, Dimitri. On Fri, Jan 10, 2014 at 12:00 PM, wrote: > Send pypy-dev mailing list submissions to > pypy-dev@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://ma

Re: [pypy-dev] cppyy and callbacks

2014-01-10 Thread Dimitri Vorona
@Wim Where could I find the current state of the cling backend implementation? Regards, Dimitri. PS. Please, ignore the email with the wrong subject. > On Fri, Jan 10, 2014 at 12:00 PM, wrote: > >> Send pypy-dev mailing list submissions to >> pypy-dev@python.org >> >> To subscribe or u

[pypy-dev] Pluggable HTM

2013-11-27 Thread Dimitri Vorona
Hi, the original STM proposal spoke of HTM as of a thing of a far future. Now, Haswells are out and provide built-in HTM support in form of TSX. In the near future I expect more and more systems to have it. Are there plan to make PyPy use HTM if it is available on the system? Regards, Dimitri.

[pypy-dev] PyPy-Performance versus various other VMs

2013-04-07 Thread Dimitri Vorona
Hi everyone, just wanted to bring to your attention this blog post: http://attractivechaos.wordpress.com/2013/04/06/performance-of-rust-and-dart-in-sudoku-solving/ . PyPy ist compared with various dynamic and static languages. While the perfomance is still OK (within an order of magnitude of C),