Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92557:63bf91dc13e5
Date: 2017-10-02 15:36 +0200
http://bitbucket.org/pypy/pypy/changeset/63bf91dc13e5/
Log:(antocuni, arigo): move these two api functions to C
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92558:98f6749ae4ed
Date: 2017-10-02 16:31 +0200
http://bitbucket.org/pypy/pypy/changeset/98f6749ae4ed/
Log:(antocuni, arigo): port more functions to C, and mark some others
which we would like to port
diff --git a/pypy
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92570:5286504e4045
Date: 2017-10-03 14:19 +0200
http://bitbucket.org/pypy/pypy/changeset/5286504e4045/
Log:(antocuni, ronan): rename nowrapper into no_gc: this new flag imply
@rgc.no_collect now
diff --git a/pypy/module
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92571:1fd69c872733
Date: 2017-10-03 14:20 +0200
http://bitbucket.org/pypy/pypy/changeset/1fd69c872733/
Log:merge heads
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/p
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92586:3ad28c3bd8e4
Date: 2017-10-03 19:42 +0200
http://bitbucket.org/pypy/pypy/changeset/3ad28c3bd8e4/
Log:typo
diff --git a/pypy/module/cpyext/test/test_memoryobject.py
b/pypy/module/cpyext/test/test_memoryobject.py
--- a/pypy/modul
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92583:7fef75641ebf
Date: 2017-10-03 17:54 +0200
http://bitbucket.org/pypy/pypy/changeset/7fef75641ebf/
Log:typo
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
--- a/pypy/module/cpyext/typeobject.py
++
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92587:97550ad28d1a
Date: 2017-10-03 20:27 +0200
http://bitbucket.org/pypy/pypy/changeset/97550ad28d1a/
Log:(antocuni, ronan): fix the Py_DecRef usages inside cppyy
diff --git a/pypy/module/_cppyy/converter.py b/pypy/module/_cppyy
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92582:a11cce743736
Date: 2017-10-03 17:53 +0200
http://bitbucket.org/pypy/pypy/changeset/a11cce743736/
Log:(antocuni, ronan, armin) kill the @rgc.no_collect for now, as it
doesn't do exactly what we need. Eventually we s
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92588:fccecff29953
Date: 2017-10-03 20:39 +0200
http://bitbucket.org/pypy/pypy/changeset/fccecff29953/
Log:forgot to rename these
diff --git a/pypy/module/cpyext/pystate.py b/pypy/module/cpyext/pystate.py
--- a/pypy/module/cpyext/pyst
Author: Antonio Cuni
Branch: extradoc
Changeset: r5832:2f9fbc4cb3d1
Date: 2017-10-04 16:00 +0200
http://bitbucket.org/pypy/extradoc/changeset/2f9fbc4cb3d1/
Log:(antocuni, arigo, ronan): a picture of what we are seeing right now
diff --git a/sprintinfo/cape-town-2017/2017-10-04-155524.jpg
b
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92602:e92d38869b79
Date: 2017-10-04 18:00 +0200
http://bitbucket.org/pypy/pypy/changeset/e92d38869b79/
Log:(antocuni, arigo, ronan): make PyObject_dealloc no_gc=True
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92601:a4307fb5912e
Date: 2017-10-04 16:03 +0200
http://bitbucket.org/pypy/pypy/changeset/a4307fb5912e/
Log:(antocuni, arigo, ronan): fix translation
Directly from table mountain, cape town:
https://bytebucket.org/pypy
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92610:b2d93af76cb7
Date: 2017-10-05 14:33 +0200
http://bitbucket.org/pypy/pypy/changeset/b2d93af76cb7/
Log:(antocuni, ronan around): WIP: refactor _PyObject_NewVar to avoid
references to w_* and make it more similar to what
Author: Antonio Cuni
Branch: extradoc
Changeset: r5835:6cd4c639387a
Date: 2017-10-05 23:22 +0200
http://bitbucket.org/pypy/extradoc/changeset/6cd4c639387a/
Log:use a better quality picture
diff --git a/sprintinfo/cape-town-2017/2017-10-04-155524.jpg
b/sprintinfo/cape-town-2017/2017-10-04-15
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92626:15a548a8aebf
Date: 2017-10-07 01:23 +0200
http://bitbucket.org/pypy/pypy/changeset/15a548a8aebf/
Log:WIP: in the quest to remove references to space in _PyObject_NewVar,
manually inline the content of BaseCpyTypedescr.all
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92625:2d5f1e54e903
Date: 2017-10-07 01:00 +0200
http://bitbucket.org/pypy/pypy/changeset/2d5f1e54e903/
Log:WIP: manually revert part of the previous commit and go back to the
old implementation. The plan is to do changes one by
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92627:512a517b4e70
Date: 2017-10-07 01:34 +0200
http://bitbucket.org/pypy/pypy/changeset/512a517b4e70/
Log:merge heads
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy/modul
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92628:d9e6994b8085
Date: 2017-10-07 10:39 +0100
http://bitbucket.org/pypy/pypy/changeset/d9e6994b8085/
Log:change strategy: instead of trying to mimic what CPython does, for
now just try to refactor things in a way whih will al
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92629:9c8e90ccce77
Date: 2017-10-07 12:33 +0200
http://bitbucket.org/pypy/pypy/changeset/9c8e90ccce77/
Log:copy&adapt state.C from the branch cpyext-avoid-roundtrip, to be
able to directly call functions defined in C; improve
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92630:259118ef27be
Date: 2017-10-07 12:45 +0200
http://bitbucket.org/pypy/pypy/changeset/259118ef27be/
Log:bah
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/object.py
+++ b/pypy/modu
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92660:32f97b462003
Date: 2017-10-07 18:47 +0200
http://bitbucket.org/pypy/pypy/changeset/32f97b462003/
Log:forgot to save and commit this change
diff --git a/pypy/module/cpyext/dictobject.py b/pypy/module/cpyext/dictobject.py
--- a/py
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92658:aae2bc78be74
Date: 2017-10-07 18:35 +0200
http://bitbucket.org/pypy/pypy/changeset/aae2bc78be74/
Log:(antocuni, ronan): make Py_IncRef no_gc=True, rewrite incref not to
take the space
diff --git a/pypy/module/cpyext
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92663:2754d331493b
Date: 2017-10-07 19:36 +0200
http://bitbucket.org/pypy/pypy/changeset/2754d331493b/
Log:this is no longer needed
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/module/cpyext/obje
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92664:ab603c05de2d
Date: 2017-10-08 00:41 +0200
http://bitbucket.org/pypy/pypy/changeset/ab603c05de2d/
Log:(antocuni, ronan): try to avoid using the space inside
PyErr_NoMemory, so that we can later declare it as no_gc=True
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92661:194a4564f528
Date: 2017-10-07 19:23 +0200
http://bitbucket.org/pypy/pypy/changeset/194a4564f528/
Log:call directly ll_type_allocate from here, bypassing the space
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/ob
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92659:0fd504cab8d9
Date: 2017-10-07 18:38 +0200
http://bitbucket.org/pypy/pypy/changeset/0fd504cab8d9/
Log:finally, this no longer needs the space
diff --git a/pypy/module/cpyext/object.py b/pypy/module/cpyext/object.py
--- a/pypy/mod
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92665:e088311fc427
Date: 2017-10-08 00:50 +0200
http://bitbucket.org/pypy/pypy/changeset/e088311fc427/
Log:(antocuni, ronan): try to fix translation
diff --git a/pypy/module/cpyext/pyobject.py b/pypy/module/cpyext/pyobject.py
--- a
Author: Antonio Cuni
Branch: cpyext-nowrapper
Changeset: r92662:aa3ffaa3a670
Date: 2017-10-07 19:24 +0200
http://bitbucket.org/pypy/pypy/changeset/aa3ffaa3a670/
Log:this was supposed to continue, not to return; it's 'funny' that
tests pass anyway :-/
diff --git a/pypy/module/cpyext/o
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92666:e5413301904e
Date: 2017-10-09 00:12 +0200
http://bitbucket.org/pypy/pypy/changeset/e5413301904e/
Log:implement _PyObject_New, _PyObject_NewVar and _PyObject_GC_New in C
diff --git a/pypy/module/cpyext/api.py b/pypy/module/
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92667:a7a6b42a7803
Date: 2017-10-09 00:41 +0200
http://bitbucket.org/pypy/pypy/changeset/a7a6b42a7803/
Log:now the signature of _PyObject_NewVar returns PyVarObject*, as
CPython; previously, it returned PyObject*; fix thi
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92668:ed10b210f7b9
Date: 2017-10-09 08:56 +0200
http://bitbucket.org/pypy/pypy/changeset/ed10b210f7b9/
Log:port PyObject_Init{,Var} to C
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92670:c0c845f0324a
Date: 2017-10-09 09:04 +0200
http://bitbucket.org/pypy/pypy/changeset/c0c845f0324a/
Log:we can use the macros now
diff --git a/pypy/module/cpyext/src/object.c b/pypy/module/cpyext/src/object.c
--- a/pypy/modul
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92669:f91e599505d5
Date: 2017-10-09 09:00 +0200
http://bitbucket.org/pypy/pypy/changeset/f91e599505d5/
Log:try to be a bit more similar to CPython and raise PyExc_NoMem()
inside _PyObject_NewVar() instead of PyObject_Init
Author: Antonio Cuni
Branch: extradoc
Changeset: r5837:5a8c64c3a71f
Date: 2017-10-09 14:55 +0200
http://bitbucket.org/pypy/extradoc/changeset/5a8c64c3a71f/
Log:(antocuni, arigo): another idea
diff --git a/planning/cpyext.txt b/planning/cpyext.txt
--- a/planning/cpyext.txt
+++ b/planning
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92676:c84be963f330
Date: 2017-10-09 16:08 +0200
http://bitbucket.org/pypy/pypy/changeset/c84be963f330/
Log:(antocuni, arigo): use make_ref+decref instead of as_pyobj to
convert arguments inside generic_cpy_call: the plan
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92688:abffbc3948ea
Date: 2017-10-09 18:40 +0200
http://bitbucket.org/pypy/pypy/changeset/abffbc3948ea/
Log:(antocuni, arigo): write a passing test
diff --git a/pypy/module/cpyext/test/test_intobject.py
b/pypy/module/cpyext
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92689:3f54b35142d4
Date: 2017-10-09 18:42 +0200
http://bitbucket.org/pypy/pypy/changeset/3f54b35142d4/
Log:(antocuni, arigo): we concluded that we cannot kill these: they are
needed e.g. by as_pyobj and int subclasses
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92687:79a097e55085
Date: 2017-10-09 18:35 +0200
http://bitbucket.org/pypy/pypy/changeset/79a097e55085/
Log:(antocuni, arigo): hoorray: finally add an optimized special case to
make_ref for integers, so that they are
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92686:e5c7b7f85187
Date: 2017-10-09 18:26 +0200
http://bitbucket.org/pypy/pypy/changeset/e5c7b7f85187/
Log:(antocuni, arigo): implement PyInt_FromLong in C and use freelists
for allocation, copying the code from CPython
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92697:a6058690cb67
Date: 2017-10-10 10:32 +0200
http://bitbucket.org/pypy/pypy/changeset/a6058690cb67/
Log:(antocuni, arigo): we can no longer call decref on w_obj now,
because make_ref returns an unliked PyObject for
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92707:648fa5150fa6
Date: 2017-10-10 17:51 +0200
http://bitbucket.org/pypy/pypy/changeset/648fa5150fa6/
Log:(antocuni, arigo): hopefully fix translation, and add a sanity check
to catch these errors earlier in the tests
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92708:160e55b245b0
Date: 2017-10-10 17:54 +0200
http://bitbucket.org/pypy/pypy/changeset/160e55b245b0/
Log:(antocuni, arigo): blindly try to fix cppyy
diff --git a/pypy/module/_cppyy/converter.py b/pypy/module/_cppyy
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92717:70284cb08d7e
Date: 2017-10-11 14:39 +0200
http://bitbucket.org/pypy/pypy/changeset/70284cb08d7e/
Log:(antocuni, arigo, ronan): hg merge default
diff too long, truncating to 2000 out of 8986 lines
diff --git a/.hgtags b
Author: Antonio Cuni
Branch: extradoc
Changeset: r5838:fada16ff748b
Date: 2017-10-11 16:24 +0200
http://bitbucket.org/pypy/extradoc/changeset/fada16ff748b/
Log:(antocuni, arigo): first draft for the sprint report
diff --git a/blog/draft/2017-10-cape-town-report.rst
b/blog/draft/2017-10
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92732:226ccce93e52
Date: 2017-10-12 10:30 +0200
http://bitbucket.org/pypy/pypy/changeset/226ccce93e52/
Log:merge heads"
diff --git a/pypy/module/cpyext/test/test_api.py
b/pypy/module/cpyext/test/test_api.py
--- a/pypy/module/cp
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92730:a79aad3bfd78
Date: 2017-10-12 10:20 +0200
http://bitbucket.org/pypy/pypy/changeset/a79aad3bfd78/
Log:add a proper repr for this class, else its repr() is StdObjSpace,
which is vry confusing. Hoorray old style cl
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92731:aab2478d4f85
Date: 2017-10-12 10:29 +0200
http://bitbucket.org/pypy/pypy/changeset/aab2478d4f85/
Log:call PyTuple_New from here
diff --git a/pypy/module/cpyext/test/test_tupleobject.py
b/pypy/module/cpyext/test/test_tuple
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92729:ccf12107e805
Date: 2017-10-12 10:09 +0200
http://bitbucket.org/pypy/pypy/changeset/ccf12107e805/
Log:WIP: copy the tupleobject freelist logic from CPython, and whack
around until we can use it from cpyext/tupleobjec
Author: Antonio Cuni
Branch: extradoc
Changeset: r5840:af8c66a99b6f
Date: 2017-10-12 12:27 +0200
http://bitbucket.org/pypy/extradoc/changeset/af8c66a99b6f/
Log:don't forget this
diff --git a/blog/draft/2017-10-cape-town-report.rst
b/blog/draft/2017-10-cape-town-report.rst
--- a/blog/draft/2
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92745:888c6f93963d
Date: 2017-10-13 18:02 +0100
http://bitbucket.org/pypy/pypy/changeset/888c6f93963d/
Log:implement _Py_NewReference directly in C
diff --git a/pypy/module/cpyext/include/object.h
b/pypy/module/cpyext/include/o
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92746:5b20c5296b9f
Date: 2017-10-13 18:02 +0100
http://bitbucket.org/pypy/pypy/changeset/5b20c5296b9f/
Log:merge heads
diff --git a/pypy/module/cpyext/api.py b/pypy/module/cpyext/api.py
--- a/pypy/module/cpyext/api.py
+++ b/pypy
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92747:014910472387
Date: 2017-10-13 19:06 +0200
http://bitbucket.org/pypy/pypy/changeset/014910472387/
Log:kill new_empty_tuple and fix PyTuple_Resize
diff --git a/pypy/module/cpyext/tupleobject.py
b/pypy/module/cpyext/tupleobj
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92748:cfae668eb6e9
Date: 2017-10-13 23:25 +0200
http://bitbucket.org/pypy/pypy/changeset/cfae668eb6e9/
Log:fix this test, now that the empty tuple is cached also on pypy; fix
also the type of initial_item_refcount, becaus
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92758:59c2a72f8c1f
Date: 2017-10-14 00:24 +0200
http://bitbucket.org/pypy/pypy/changeset/59c2a72f8c1f/
Log:missing import
diff --git a/pypy/module/cpyext/tupleobject.py
b/pypy/module/cpyext/tupleobject.py
--- a/pypy/module/cpye
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92761:5c27ff8fb77b
Date: 2017-10-14 15:27 +0200
http://bitbucket.org/pypy/pypy/changeset/5c27ff8fb77b/
Log:fix
diff --git a/pypy/module/cpyext/test/test_methodobject.py
b/pypy/module/cpyext/test/test_methodobject.py
--- a
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92759:c549ac0e8be0
Date: 2017-10-14 11:08 +0200
http://bitbucket.org/pypy/pypy/changeset/c549ac0e8be0/
Log:a (hopefully quick) 'sub-branch' of cpyext-avoid-roundtrip to
refactor and cleanup methodobject.py
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92757:7860795a7204
Date: 2017-10-14 00:06 +0200
http://bitbucket.org/pypy/pypy/changeset/7860795a7204/
Log:we cannot cache the empty tuple as CPython does, else we end up
having the same py_obj for different w_objs
diff
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92762:b05962717d68
Date: 2017-10-14 15:32 +0200
http://bitbucket.org/pypy/pypy/changeset/b05962717d68/
Log:rename these classes
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/methodobject.py
--- a/py
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92763:0509cab76af7
Date: 2017-10-14 15:54 +0200
http://bitbucket.org/pypy/pypy/changeset/0509cab76af7/
Log:move the descr_call inside the classes, to reduce a bit the
cluttering
diff --git a/pypy/module/cpyext/meth
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92760:1ca2a0f2262f
Date: 2017-10-14 11:47 +0200
http://bitbucket.org/pypy/pypy/changeset/1ca2a0f2262f/
Log:split this one gigantic test into smaller ones
diff --git a/pypy/module/cpyext/test/test_methodobject.py
b/pypy/mo
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92764:1fe00f592e00
Date: 2017-10-14 17:23 +0200
http://bitbucket.org/pypy/pypy/changeset/1fe00f592e00/
Log:fix this test
diff --git a/pypy/module/cpyext/test/test_sequence.py
b/pypy/module/cpyext/test/test_sequence.py
--- a/pyp
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92765:e627947095d3
Date: 2017-10-14 17:24 +0200
http://bitbucket.org/pypy/pypy/changeset/e627947095d3/
Log:merge the fix from cpyext-avoid-roundtrip
diff --git a/pypy/module/cpyext/test/test_sequence.py
b/pypy/module/cpye
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92766:e06951cd3fe6
Date: 2017-10-14 18:11 +0200
http://bitbucket.org/pypy/pypy/changeset/e06951cd3fe6/
Log:introduce a specialized class for METH_VARARGS functions
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/mo
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92767:cefeba1a1de2
Date: 2017-10-14 18:30 +0200
http://bitbucket.org/pypy/pypy/changeset/cefeba1a1de2/
Log:when calling a METH_VARARGS, create directly a PyTuple, instead of
passing from a w_tuple; in theory, this s
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92775:0cd1a1fbbad9
Date: 2017-10-16 12:22 +0200
http://bitbucket.org/pypy/pypy/changeset/0cd1a1fbbad9/
Log:_Py_NewReference did not initialize pypy_link: as such, reused
tuples from the freelist could contain a wrong valu
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92774:718a91452806
Date: 2017-10-16 11:42 +0200
http://bitbucket.org/pypy/pypy/changeset/718a91452806/
Log:add a comment about a potential issue
diff --git a/pypy/module/cpyext/tupleobject.py
b/pypy/module/cpyext/tupleobject.py
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92776:a5eb32fe2228
Date: 2017-10-16 12:23 +0200
http://bitbucket.org/pypy/pypy/changeset/a5eb32fe2228/
Log:merge cpyext-avoid-roundtrip inside this
diff --git a/pypy/module/cpyext/include/object.h
b/pypy/module/cpyext/inc
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92782:17fd1d984f1d
Date: 2017-10-17 00:47 +0200
http://bitbucket.org/pypy/pypy/changeset/17fd1d984f1d/
Log:write a specialized function to convert args_w into a py_tuple,
which sets directly c_ob_item[*] instead of
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92783:371b5a6f2316
Date: 2017-10-17 00:53 +0200
http://bitbucket.org/pypy/pypy/changeset/371b5a6f2316/
Log:fix test_arraymodule:test_pickle by teaching pickle about all the
W_PyCFunctionObject variants
diff --git a
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92784:84feef42c1ac
Date: 2017-10-17 01:32 +0200
http://bitbucket.org/pypy/pypy/changeset/84feef42c1ac/
Log:fix translation
diff --git a/pypy/module/cpyext/__init__.py b/pypy/module/cpyext/__init__.py
--- a/pypy/module/cpye
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92819:1c00ece5b913
Date: 2017-10-21 15:55 +0200
http://bitbucket.org/pypy/pypy/changeset/1c00ece5b913/
Log:implement call_KEYWORDS and fix the test
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/meth
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92821:6a0f6b5d4571
Date: 2017-10-22 00:01 +0200
http://bitbucket.org/pypy/pypy/changeset/6a0f6b5d4571/
Log:kill the now-obsolete W_PyCFunctionObject_{NOARGS,O,VARARGS}
diff --git a/pypy/module/cpyext/__init__.py b/pypy/mod
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92817:26eed5075896
Date: 2017-10-21 15:22 +0200
http://bitbucket.org/pypy/pypy/changeset/26eed5075896/
Log:WIP: try a different approach for descr_call: instead of creating a
different class/typedef for each calling
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92820:071be7b3d869
Date: 2017-10-21 23:54 +0200
http://bitbucket.org/pypy/pypy/changeset/071be7b3d869/
Log:fix W_PyCMethodObject.descr_call, so that it uses the same logic as
W_PyCFunctionObject
diff --git a/pypy/m
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92822:ae86725f484f
Date: 2017-10-22 00:26 +0200
http://bitbucket.org/pypy/pypy/changeset/ae86725f484f/
Log:fix W_PyCClassMethodObject.descr_call
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/methodo
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92816:8823f6116665
Date: 2017-10-21 02:28 +0200
http://bitbucket.org/pypy/pypy/changeset/8823f6116665/
Log:XXX: this is just a test to see how much performance we loose if we
go through the slow __args__ dance inste
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92818:094b65ff1d96
Date: 2017-10-21 15:46 +0200
http://bitbucket.org/pypy/pypy/changeset/094b65ff1d96/
Log:add a test for METH_KEYWORDS; the test passes with -A, but is
currently broken in pypy
diff --git a/pypy/mo
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92823:7501b268c626
Date: 2017-10-22 00:43 +0200
http://bitbucket.org/pypy/pypy/changeset/7501b268c626/
Log:add this fix, because now pass w_kwds=None directly; we should
investigate better whether the check is still
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92824:a41f31f17cfe
Date: 2017-10-22 11:48 +0200
http://bitbucket.org/pypy/pypy/changeset/a41f31f17cfe/
Log:try to add flags as an immutable fields, to constant-fold away the
checks inside call()
diff --git a/pypy/m
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92826:1bd92743748b
Date: 2017-10-22 17:36 +0200
http://bitbucket.org/pypy/pypy/changeset/1bd92743748b/
Log:close this branch, will be merged into cpyext-avoid-roundtrip
___
pypy-
Author: Antonio Cuni
Branch: cpyext-refactor-methodobject
Changeset: r92825:42834b4486db
Date: 2017-10-22 12:05 +0200
http://bitbucket.org/pypy/pypy/changeset/42834b4486db/
Log:fix this CCC and pass a py_tuple also to METH_OLDARGS calls
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92827:770b53602445
Date: 2017-10-22 17:39 +0200
http://bitbucket.org/pypy/pypy/changeset/770b53602445/
Log:merge the branch cpyext-refactor-methodobject: now W_PyCMethodObject
and W_PyCFunctionObject use the same code to
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92828:85dbd5c26f1d
Date: 2017-10-22 17:49 +0200
http://bitbucket.org/pypy/pypy/changeset/85dbd5c26f1d/
Log:bah, the flags attribute was not set because this class didn't call
the parent __init__; fix
diff --git a/pypy/mo
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92831:79e9438da998
Date: 2017-10-22 19:41 +0200
http://bitbucket.org/pypy/pypy/changeset/79e9438da998/
Log:bah, fix this one as well
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/methodobject.py
--- a/pyp
Author: Antonio Cuni
Branch:
Changeset: r92832:b015a2924278
Date: 2017-10-23 17:55 +0200
http://bitbucket.org/pypy/pypy/changeset/b015a2924278/
Log:improve this test by using the same 'seen' pattern also used by
other tests, so that it's easier to follow the control flow
diff --git
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92833:a1ed00dd3eba
Date: 2017-10-22 20:08 +0200
http://bitbucket.org/pypy/pypy/changeset/a1ed00dd3eba/
Log:kill this check; all the tests pass
diff --git a/pypy/module/cpyext/typeobject.py b/pypy/module/cpyext/typeobject.py
---
Author: Antonio Cuni
Branch: cpyext-avoid-roundtrip
Changeset: r92834:7b4e95e7c3b7
Date: 2017-10-23 17:56 +0200
http://bitbucket.org/pypy/pypy/changeset/7b4e95e7c3b7/
Log:merge heads
diff --git a/pypy/module/cpyext/methodobject.py
b/pypy/module/cpyext/methodobject.py
--- a/pypy/module/cpyex
Author: Antonio Cuni
Branch:
Changeset: r92835:94ddc680fce1
Date: 2017-10-23 17:58 +0200
http://bitbucket.org/pypy/pypy/changeset/94ddc680fce1/
Log:fix whitespace
diff --git a/pypy/module/_continuation/test/test_stacklet.py
b/pypy/module/_continuation/test/test_stacklet.py
--- a/pypy/modul
Author: Antonio Cuni
Branch:
Changeset: r92836:1c3af3c4a095
Date: 2017-10-23 18:21 +0200
http://bitbucket.org/pypy/pypy/changeset/1c3af3c4a095/
Log:improve this test by giving more descriptive names to variables; in
particular, f vs f* was a bit confusing, at least for me :)
diff --
xt-refactor-methodobject branch
+noargs : 0.31 secs
+onearg : 0.37 secs
+varargs: 0.49 secs
+
+
+.. _microbenchmarks: https://github.com/antocuni/cpyext-benchmarks
- bla bla bla
+So yes: before the sprint, we were ~2-6x slower than CPython. Now, we are
+**faster** than it!
)
+quadcopter, i.e. a `PID controller`_ (**spoiler**: it doesn't fly).
+
+.. _`played a bit`: https://github.com/antocuni/evolvingcopter
+.. _`PID controller`: https://en.wikipedia.org/wiki/PID_controller
+
+The idea is to have an initial population of random creatures: at each
+generation, the
Author: Antonio Cuni
Branch: extradoc
Changeset: r5846:afd53b75cebe
Date: 2017-10-27 12:00 +0200
http://bitbucket.org/pypy/extradoc/changeset/afd53b75cebe/
Log:rename... it's actually 80x faster, not just 50x :)
diff --git a/blog/draft/2017-10-how-to-make-50x-faster.rst
b/blog/draft/2017-10
I gave at last EuroPython, in which I
+talk about a similar topic: "The Joy of PyPy JIT: abstractions for free"
+(abstract_, slides_ and video_).
+
+.. _abstract:
https://ep2017.europython.eu/conference/talks/the-joy-of-pypy-jit-abstractions-for-free
+.. _slides:
https://speakerdeck.com/ant
ty is
+progressing fast, we have discontinued support for ``numpypy``.
+
+.. _`started to reimplement`:
https://morepypy.blogspot.co.il/2011/05/numpy-in-pypy-status-and-roadmap.html
+.. _fork: https://bitbucket.org/pypy/numpy
+.. _`PyPy binary wheels`: https://github.com/antocuni/pypy-wheels
+
+
Is
reat.
.. _`we are working on that`:
https://morepypy.blogspot.it/2017/10/cape-of-good-hope-for-pypy-hello-from.html
+.. _numpypy:
http://doc.pypy.org/en/latest/faq.html#what-about-numpy-numpypy-micronumpy
.. _hack:
https://github.com/antocuni/evolvingcopter/blob/master/ev/pypycompat.py
In g
-80x-faster.rst
--- a/blog/draft/2017-10-how-to-make-80x-faster.rst
+++ b/blog/draft/2017-10-how-to-make-80x-faster.rst
@@ -240,3 +240,15 @@
.. _abstract:
https://ep2017.europython.eu/conference/talks/the-joy-of-pypy-jit-abstractions-for-free
.. _slides:
https://speakerdeck.com/antocuni/the-joy-of
Author: Antonio Cuni
Branch: extradoc
Changeset: r5850:b876e412d58c
Date: 2017-10-27 15:43 +0200
http://bitbucket.org/pypy/extradoc/changeset/b876e412d58c/
Log:rename all the files to follow -MM-title, because this directory
is a mess
diff --git a/blog/draft/thank-you-psf.rst b/b
Author: Antonio Cuni
Branch: extradoc
Changeset: r5851:c08fe2c2dbef
Date: 2017-10-28 12:10 +0200
http://bitbucket.org/pypy/extradoc/changeset/c08fe2c2dbef/
Log:put screenshots of parts of the trace, as suggested by fijal
diff --git a/blog/draft/2017-10-how-to-make-80x-faster.rst
b/blog/draf
Author: Antonio Cuni
Branch: extradoc
Changeset: r5852:fb3978e5d935
Date: 2017-10-28 12:11 +0200
http://bitbucket.org/pypy/extradoc/changeset/fb3978e5d935/
Log:another disclaimer
diff --git a/blog/draft/2017-10-how-to-make-80x-faster.rst
b/blog/draft/2017-10-how-to-make-80x-faster.rst
--- a
27;s `list
strategies`_
-optimizations, ``self.data`` as a simple list of floats is internally
represented
-as a flat array of C doubles, i.e. very fast and compact.
-
.. _`actual code`:
https://github.com/antocuni/evolvingcopter/blob/master/ev/creature.py#L100
-.. _`list strategie
501 - 600 of 2514 matches
Mail list logo