6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pythonで実装されたRuby処理系らしいTopazをビルドする

Posted at

pypyプロジェクトの成果物を利用しているらしい。
詳しい事は知らないけど、とりあえずビルドしてみた。

環境は Ubuntu 12.04 です。

まず、ビルドに必要なパッケージをインストールする。

sudo apt-get install mercurial
sudo apt-get install python-pip
sudo apt-get install libffi-dev

~/package 以下で作業する

cd ~/package
git clone http://github.com/topazproject/topaz
hg clone https://bitbucket.org/pypy/pypy

cd topaz
sudo pip install -r requirements.txt
python ~/package/pypy/rpython/bin/rpython -Ojit targettopaz.py

仮想マシンでビルドしているせいかめっちゃ時間掛かった。。。
~/package/topaz/bin/topaz が生成されます。
とりあえず、Hello, Worldでも出力して今回は終わり。

bin/topaz -e "puts 'Hello, world'"
> Hello, world
6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?