LoginSignup
3
1

More than 3 years have passed since last update.

Scratch 3.0のインタプリタ比較

Posted at

Scratch 3.0はScratch 2.0と違って、インタプリタがいろいろあります。以下では知っているものをすべて紹介します。(いやこれJITコンパイラだ、とは言わないでください)

公式 (scratch-vm)

互換性: ★★★★★
速度: ★
URL: https://github.com/LLK/scratch-vm
eval: なし

公式のインタプリタ。速度には劣る。

Forkphorus

互換性: ★★★
速度: ★★★★
URL: https://github.com/forkphorus/forkphorus
eval: あり

インタプリタというよりはコンパイラ。速度はscratch-vmより数十倍良いが、互換性に難がある。

TurboWarp

互換性: ★★★★
速度: ★★★★★
URL: https://github.com/TurboWarp/scratch-vm
eval: あり

scratch-vmのforkだけどJITコンパイラ。速度はこの中ではベストと思われる。コンパイルするせいで一部の機能に互換性がない。

sb-edit + leopard

互換性: ★
速度: ★★★
URL: https://github.com/PullJosh/leopard-website
eval: なし?

sb3ファイルを単独実行できるJavaScriptファイルに変換して実行する。利用できないブロックが多くあり、互換性が弱点。変換部分をsb-editが、実行部分をleopardが担う。

bismuth

互換性: ★
速度: ★★★
URL: https://github.com/Adjacent-Topics/bismuth
eval: あり

JankyScriptという独自言語を使ってASTを生成しそこからJavaScriptを作成するというスゴ技使用。開発停止中の模様。

3
1
1

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
3
1