PicoRuby is the smallest Ruby implementation for one-chip microcontrollers
PicoRuby is the smallest Ruby implementation for one-chip microcontrollers
PicoRuby is an alternative mruby implementation which is:
From version 4.x, we call the artifacts below:
mruby VM version is mainly being developed.
For detailed information on testing PicoRuby, refer to the Testing Guide.
git clone --recurse-submodules https://github.com/picoruby/picoruby
cd picoruby/
git submodule update --init --recursive # If you forgot --recurse-submodules when git clone
rake # same for `rake picoruby:prod`
rake picoruby:debug # for debug build
bin/picoruby -e 'puts "Hello World!"'
rake LDFLAGS=-L$(brew --prefix openssl@3)/lib CFLAGS=-I$(brew --prefix openssl@3)/includerake femtoruby:prod
# or
rake femtoruby:debugSee an example: build_config/r2p2-picoruby-pico2.rb
rake command will make three kinds of executable binary
bin/mrbc path/to/source.rb makes path/to/source.mrb that is VM code runs on an mruby-compatible virtual machinebin/picoruby source.rb executes Ruby just like normal ruby commandbin/picoruby -e "puts 'Hello1'" also worksPart of this project was coded by Monstarlab with the support of the Ruby Association Grant Program 2020 and 2021.
See also picoruby/picoruby/wiki.
Copyright © 2020- HASUMI Hitoshi. See MIT-LICENSE for further details.
Copyright © 2020-2021 Monstarlab. See MIT-LICENSE for further details.
No open issues yet, or sync has not completed.