Save 37% off PRO during our Black Friday Sale! »

mruby is cute♡

mruby is cute♡

#megurorb

4b071f90c5d9c0a58e2d9076460b7be4?s=128

さっちゃん

October 29, 2018
Tweet

Transcript

  1. None
  2. . ) (

  3. ( . ! ! )

  4. Ruby is a family. MRI (Matz Ruby) JRuby (JVM) mruby

    TruffleRuby (GraalVM) RubyMotion Rubinius Opal (JavaScript)
  5. Relatives of Ruby. Rubex Crystal

  6. I introduce MCM-3angle. [MRI-Crystal-mruby]

  7. MCM-3angle Crystal mruby MRI

  8. MCM-3angle Crystal mruby MRI !

  9. MCM-3angle Crystal mruby MRI 1 . . . 1 .

    - 1 : . : . . 1 1 - ./: #
  10. MCM-3angle Crystal mruby MRI

  11. MCM-3angle Crystal mruby MRI / / -

  12. mruby is cuteὑ mitamae haconiwa ngx_mruby H2O mysql-mruby mruby-arduino

  13. Probably we can use mruby more!

  14. But envs running mruby are hard to debug. So, Steep!

  15. Steep is gradual typing for Ruby. Gradual typing : mypy,

    TypeScript, Hack…
  16. # main.rb hiredis = Hiredis.new puts hiredis.incr("momonga") puts hiredis.incr("momonga") puts

    hiredis.flushall
  17. > mruby main.rb 1 2 OK

  18. # main.rbi class Hiredis def initialize: (String, Integer) -> any

    | -> any def incr: (String) -> Integer def flushall: -> String end
  19. > steep check --dump-all-types --strict -I . . 1 2,

    " , " , 3= , ,,. 54 3:1 3= 3 = . 54 1 2, " , " , : 1 7 , ,,. 54 8 54 . 54 5 1 2, " , " , 5 4, ,,. 54 . 54 5 1 2, ") , " , : 1 , ,,. 54 8 54 1 2, " , " , , ,,0 7 = = 71 1 2, " , " , 5 4, = 4 8 54 3 = = 71 1 2, ") , " , 5 4, ,, 575 8 54 3 = = 71 1 2, ") , " , : 1 , ,,. 54 8 54 1 2, " , " , , ,,0 7 = = 71 1 2, " , " , 5 4, = 4 8 54 3 = = 71 1 2, ") , " , 5 4, ,, 575 8 54 3 = = 71 1 2, (") , (" , : 1 , ,,. 54 8 54 1 2, " , (" , 257 , = 4 8 54 . 54 5 1 2, (" , (" , 5 4, = 4 8 54 : 81:: 1 2, (") , (" , 5 4, ,,0 7 8 54 : 81::
  20. • , • , . , • , .