_ [言語]pycore: Python on VisualWorks VM
「RECONDITE - You don't tug on Superman's cape...」によると、あのL. Peter DeutcheがpycoreなるPython処理系を作成中らしい。
これは、PythonのバイトコードをVisualWorks(Cincom Smalltalk) VMのバイトコードにトランスレートするPython処理系で、レポートによれば、
- Radically improve the performance of many Python programs.
- Reimplement as many C-coded Python libraries as possible in Python while retaining acceptable performance.
- Be able to run any Python program (some possibly slower than CPython) that does not:
- Depend on libraries implemented in C that haven't been recoded in Python;
- Use some of the more arcane customization facilities;
- Depend on being able to manipulate 'int' and 'long' as separate types, rather than having the implementation choose how integers are stored;
- Subclass any of the built-in types (bool, int, long, tuple, list, str, unicode, and possibly others).
であり、
- Recursive fibonacci function, 9x faster
- Iterating over a large list of integers, 5x faster
- Creating a list element-by-element, 2x faster
- Accessing an attribute by calling a method, 2.5x faster
- On the other hand, replicating a collection: (1000000 * 'x'), is 7x slower
なのだそうだ。なんか、すっごいエキサイティングな試みだ。
しかし、Jython、IronPythonといい、Pythonは処理系が次々と登場する。
これは文法がシンプルなのと、ドキュメントがきちんとしていることによるのだろう。
そのぶん、言語屋にとっての面白さは少ないのだが。
しかし、Rubyは別の点で「影響」を与えつつあるのだ(...続きは18日のエントリで)。