Author: Armin Rigo <[email protected]> Branch: extradoc Changeset: r4253:9d65d263f8d4 Date: 2012-07-02 09:59 +0200 http://bitbucket.org/pypy/extradoc/changeset/9d65d263f8d4/
Log: Add diff --git a/talk/ep2012/stm/GIL.png b/talk/ep2012/stm/GIL.png new file mode 100644 index 0000000000000000000000000000000000000000..aba489c1cacb9e419d76cff1b59c4a395c27abb1 GIT binary patch [cut] diff --git a/talk/ep2012/stm/STM-conflict.png b/talk/ep2012/stm/STM-conflict.png new file mode 100644 index 0000000000000000000000000000000000000000..d161f014c344c5fe3aa4d28c77388472f56122f5 GIT binary patch [cut] diff --git a/talk/ep2012/stm/STM.png b/talk/ep2012/stm/STM.png new file mode 100644 index 0000000000000000000000000000000000000000..2de6551346d2db3ad3797f265f2b88a232b387fa GIT binary patch [cut] diff --git a/talk/ep2012/stm/stmdemo2.py b/talk/ep2012/stm/stmdemo2.py new file mode 100644 --- /dev/null +++ b/talk/ep2012/stm/stmdemo2.py @@ -0,0 +1,33 @@ + + + def specialize_more_blocks(self): + while True: + # look for blocks not specialized yet + pending = [block for block in self.annotator.annotated + if block not in self.already_seen] + if not pending: + break + + # specialize all blocks in the 'pending' list + for block in pending: + self.specialize_block(block) + self.already_seen.add(block) + + + + + def specialize_more_blocks(self): + while True: + # look for blocks not specialized yet + pending = [block for block in self.annotator.annotated + if block not in self.already_seen] + if not pending: + break + + # specialize all blocks in the 'pending' list + # *using transactions* + for block in pending: + transaction.add(self.specialize_block, block) + transaction.run() + + self.already_seen.update(pending) diff --git a/talk/ep2012/stm/talk.pdf b/talk/ep2012/stm/talk.pdf new file mode 100644 index 0000000000000000000000000000000000000000..a018303f929668c5559f83a65b85a8ba6c45c616 GIT binary patch [cut] diff --git a/talk/ep2012/stm/talk.rst b/talk/ep2012/stm/talk.rst --- a/talk/ep2012/stm/talk.rst +++ b/talk/ep2012/stm/talk.rst @@ -212,6 +212,8 @@ Py3k: what's left? ------------------- +* First 90% done, remaining 90% not done + * Tons of small issues * Extension modules / stdlib _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
