of the Ruby ISO standard • sponsored by the Regional Innovation Creation R&D Programs of the Ministry of Economy, Trade and Industry of Japan. • mRuby the language, mruby the interpreter 2
$ mrbc hello.rb # <<<< produces byte-coded hello.mrb $ hexdump -c hello.mrb 0000000 R I T E 0 0 0 3 � � \0 \0 \0 e M A 0000010 T Z 0 0 0 0 I R E P \0 \0 \0 G 0 0 $ mruby -b hello.mrb hello world 15
no classes or inheritance - simple (nil, boolean, number, string, function, thread, table) - compiles to bytecode - has stack-based C API - VM is register based - smaller / faster - came out in 1993 - has luajit mRuby: - class based - single inheritance - complex ( ~ 36 classes ) - compiles to bytecode - has stack-based C API - VM is stack based - bigger / slower - came out in 2014 - mruby jit (???) 19