-
Notifications
You must be signed in to change notification settings - Fork 26
Proposal for the Grant Program 2021 of Ruby Association
- Monstarlab
- Hasumi Hitoshi
- A programmer of Monstarlab
- The author of https://github.com/picoruby/picoruby
- The author of https://github.com/picoruby/prk_firmware
- Appeared in RubyKaigi Takeout 2021, Takeout 2020, 2019 and 2018, RubyConf 2019, RubyWorld Conference 2018
- The first prize winner of Fukuoka Ruby Award 2020
- picoruby-compiler: An alternative mruby-compiler
2020年のRA Grantに採択されたPicoRuby compilerは一定の成果を収め、mruby/cと統合されてワンチップマイコン向けRubyインタプリタ実装 "PicoRuby" になった。 他方、PicoRuby compilerの特長である省メモリ性能は、mrubyとの統合においてもメリットがあると考えられる。 本プロジェクトは、PicoRuby compilerがmrubyの第二のコンパイラとして実用可能なモジュールになるようソースコードを再編成し、必要なAPI等を整備することを目標とする。
The PicoRuby compiler adopted for the RA Grant 2020 has achieved great success and has been integrated with mruby/c to become a Ruby interpreter implementation "PicoRuby" for one-chip microcontrollers. On the other hand, the memory-saving performance, which is a feature of the PicoRuby compiler, is considered to be advantageous in integration with mruby. The goal of this project is to reorganize the source code and to prepare necessary APIs so that PicoRuby compiler becomes a module that can be used as an alternative compiler for mruby.
- Making an alternative mruby-compiler which is:
- Smaller footprint than mruby-compiler
- Pluggable and suitable for both mruby and mruby/c
- I am developing PicoRuby compiler. Part of it is an outcome of the RA Grant last year
- It is reaching a practical level and working with mruby/c VM as "PRK Firmware" which is a keyboard firmware framework
- Would be great if picoruby-compiler could easily work with also mruby
- Making an mrbgem named "picoruby-compiler" that can be bundled in an mruby project
- It should be easy to be integrated with mruby/c, too
- This development will mainly focus on:
- Reorganizing source code dependency
- Making proper API that works in mirb
- Kernel#eval should also work though, I'm not sure if it is possible so far
- picoruby-compiler mrbgem -> https://github.com/picoruby/picoruby-compiler (not exists yet)
- PicoRuby that is reorganized to have picoruby-compiler as a submodule -> https://github.com/picoruby/picoruby
Copyright © HASUMI Hitoshi.