ウソみたいな本当の話。Ruby でファミコンエミュレータを書いてみました。 気になる速度ですが、自分の環境では 20 fps ちょっと出ます。ファミコンは 60 fps なので、実速の 1/3 です。Ruby3x3 (Ruby 3 は Ruby 2 の 3 倍速い)という matz の宣言が実現すれば、実速が達成されることになりますね! 試してみたい人はこんなふうに実行してください。 $ gem install ffi $ git clone http://github.com/mame/optcarrot.git $ cd optcarrot $ bin/optcarrot examples/Lan_Master.nesSDL2 か SFML が適切にインストールされている必要があります。Debian/Ubuntu なら apt-get install libsdl2-dev で。 Ru
![Optcarrot: Ruby で書かれたファミコンエミュレータ - まめめも](https://cdn-ak-scissors.b.st-hatena.com/image/square/06daaa2ddc1b9e7291e217c3e8e5ad76ac2cb003/height=288;version=1;width=512/https%3A%2F%2Fraw.githubusercontent.com%2Fmame%2Foptcarrot%2Fmaster%2Fdoc%2Fbenchmark-default.png)