2016-08-01ãã1ã¶æéã®è¨äºä¸è¦§
以åä½ã£ãmruby-at_exitã«åéãããã£ãã®ã§æ¹è¯ããã mruby-at_exit gem ãªãªã¼ã¹ - ã¹ãã¯ãã©ã 以åã¯mrb_state_atexit APIãç´æ¥å¼ãã§ãããã©ãå®ã¯ãããå¼ã°ãªãã¦ãat_exitã¯å®ç¾ã§ããã mrb_state_atexitã¯at_exitçãªãã®å°ç¨APIã ã¨æã£ã¦â¦
é·ãã¨æãã®ã§çµæã ã ãªãã¸ããªã¯ãã¡ãã github.com 使ãæ¹ã¯git cloneãã¦makeããã ãã¨å¤§å¤ãæ軽ã make TESTS="core/nil"ã®ããã«ããã£ã¬ã¯ããªæå®ããã¡ã¤ã«åæå®ãã§ããã å ¨å½ã®mrubyistã®çæ§ã«æ¼ããã¾ãã¦ã¯ãæ¯éã試ãé¡ãããã¨ããâ¦
tl;dr json-expect-parserã¨ããgemãä½ã£ãã github.com gem install json-expect-parser ã§ä½¿ãã¾ãã ããã¡ JSONããã¼ã¹ããå®è£ ã¯ããããããããã§ããã§ã«åè¨èªã«æ¨æºæ·»ä»ããã¦ãããã便å©ãªãã®ãããããããã ããã§ããã¦è»è¼ªã®åçºæã試â¦
mrubyã§at_exitãã§ããmruby-at_exitãä½ã£ãã github.com at_exitã¯rubyã¹ã¯ãªãããä½ããã®çç±ã§çµäºããã¿ã¤ãã³ã°ã§çºåããã³ã¼ã«ããã¯ãç»é²ã§ããã¡ã½ããã mrubyã§ã¯mrb_state_atexitã¨ããCã®é¢æ°ã§mrubyãçµããã¨ããããã¯ããé¢æ°ãç»é²â¦
exported form https://nippo.wikihub.io/@_ksss_/20160731140352 mrubyã§ã®forkã®ãã°ãç´ããã https://github.com/iij/mruby-process/pull/7 å¼æ°ã«åæåããã¦ãªãå¤æ°ããããã¯å¼æ°ã«æ¸¡ããã¦ããã®ã§ã ãããmrubyå´ã§åç §ããã¨æ»ã¬ã ããããfoâ¦
exported from https://nippo.wikihub.io/@_ksss_/20160722124458 mrubyæ¬ä½ã«2ã¤ãã°ããã£ãã ä¸ã¤ã Struct.new(:a) do def foo end end ã¨ããã¨ãfooã¡ã½ããã¯Struct.newã§ä½ãããæ°ããclassã®ã¡ã½ããã«ãªããã¨ãæå¾ ãããã ãªãã¨ãStructclasâ¦
exported form https://nippo.wikihub.io/@_ksss_/20160720141728 åº ãããããããªã®ã§ãã£ã¡ã«æ¸ãã¦ã¿ãã riloã£ã¦ããmrubyã§åããããã ã¨ãã£ã¿ã¼ãä½ã£ã¦ããã https://github.com/ksss/rilo ã¯ã³ãã¤ããªå mruby-cliã«ã¤ãã¦åéããã¦ãã mruâ¦