Medusa: 基于Google Dart虛擬機的超快Python實現版本

pythopen 9年前發布 | 23K 次閱讀 Medusa Python開發

Medusa: 基于Google Dart虛擬機的超快Python實現版本,據稱Medusa比CPython快10~15倍。對CPython不滿意的應該關注。

安裝

Ubuntu/Ubuntu-derived Linux users:

Simply run ./INSTALL after cloning this repo on your Debian based Linux distro. Thats it. All dependencies are installed, code compiled and paths setup automatically.

Mac OSX Users (packaged app): Coming Soon ;) Thanks for your patience.

Mac OSX Users (building from source):

  • Install Xcode if not installed (Sorry for the bandwidth hogging...)
  • Install python 2.7.x if not installed and add it to PATH
  • Download and Install latest Qt5 for Mac from here and add qmake and moc to PATH
  • Download the latest Dart SDK from here, unzip and add the dart executable to PATH
  • Clone this repo and simply run ./INSTALL.mac
  • After a succesful compile medusavm binary is available in /usr/bin/ for use
  • For updates and subsequent builds, fetch changes and just run ./INSTALL.mac

Yeah, I finally have a MacBook! ^_^

Others:

  • Install C++ compilers and Make tools
  • Install Qt5 build tools and libs
  • Install Dart SDK
  • Install Python 2.7.x
  • Rum moc on inc/transform.h to inc/transform_moc.h
  • Run qmake on medusa.pro
  • Run make
  • Use the medusavm executable

運行

Using Medusa:

  • Medusa is available as medusavm after a successful buid and install
  • Python programs can be run by passing them as parameters: medusavm hello.py
  • Medusa can be stopped after the Dart compile phase by passing a -c switch: medusavm -c hello.py. The Dart code is obtained in hello.dart in the same directory.
  • Python files can be globally installed into Medusa for imports by other files: medusavm -install python_file
  • Help is at: medusavm --help

項目主頁:http://www.baiduhome.net/lib/view/home/1421985672734

 本文由用戶 pythopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!