summaryrefslogtreecommitdiffhomepage
path: root/mrbgems
AgeCommit message (Collapse)Author
2016-07-27Reduce needless Array generation in some String methodsKouhei Sutou
Here are some benchmarks: each_char: # /tmp/each_char.rb a = "a" * 1000000 a.each_char do |x| end Without this change: % time bin/mruby /tmp/each_char.rb bin/mruby /tmp/each_char.rb 1.07s user 0.02s system 99% cpu 1.088 total With this change: % time bin/mruby /tmp/each_char.rb bin/mruby /tmp/each_char.rb 0.52s user 0.01s system 99% cpu 0.530 total 2 times faster with this change. codepoints: # /tmp/codepoints.rb a = "a" * 1000000 a.codepoints do |x| end Without this change: % time bin/mruby /tmp/codepoints.rb bin/mruby /tmp/codepoints.rb 1.16s user 0.05s system 99% cpu 1.216 total With this change: % time bin/mruby /tmp/codepoints.rb bin/mruby /tmp/codepoints.rb 0.56s user 0.02s system 99% cpu 0.589 total
2016-07-26Support to call without block to String#each_charksss
2016-07-26Merge pull request #3181 from sdottaka/fix-crash-on-mrb_parser_freeYukihiro "Matz" Matsumoto
Fix crash in mrb_parser_free() due to freed memory access
2016-07-25Merge pull request #3179 from ksss/structYukihiro "Matz" Matsumoto
Should not define to `Struct` class
2016-07-25OP_ASGN vsp may be negativeYukihiro "Matz" Matsumoto
reported by https://gist.github.com/miura1729/53fbd8af889c289a79108e38635b2378 fix proposed by @miura1729 in https://github.com/miura1729/mruby/commit/b1b7933f7aa950cfb747b06327a0d0340f3e4ff8
2016-07-25Fixed crash error when #initialize is redefined for Struct; fix #3177Yukihiro "Matz" Matsumoto
refactored redundant functions; removed optimized accessors for safety this fix also close #3178
2016-07-23Fix crash in mrb_parser_free() due to freed memory accessTakashi Sawanaka
2016-07-22Add regression testksss
2016-07-22Should not define to `Struct` classksss
2016-07-14String#insert should be destructiveksss
2016-07-13relax string length limitation to 64KB; fix #2725Yukihiro "Matz" Matsumoto
2016-07-01Fix warning shift-negative-valueksss
2016-06-10fix a compiler warning for uninitialized variableYukihiro "Matz" Matsumoto
2016-05-16fixed remaining bugs in OP_ASGN stack adjustment; close #3159Yukihiro "Matz" Matsumoto
2016-05-16stack adjustment after NODE_OP_ASGN with NODE_CALL was wrong; fix #3159Yukihiro "Matz" Matsumoto
2016-05-16parser_dump() to show symbol number for NODE_SYMYukihiro "Matz" Matsumoto
2016-05-09raise the error at runtime; fix #3152cremno
2016-04-23mruby-sprintf:fix double negative signs in printf; fix #3148Yukihiro "Matz" Matsumoto
MRB_INT_MAX does not have corresponding positive integer
2016-04-23mruby-sprintf: format specifiers o,u,x,b ignore sign(+); ref #3148Yukihiro "Matz" Matsumoto
2016-04-11mruby-eval: instance_eval should keep target_class; close #3141Yukihiro "Matz" Matsumoto
2016-04-04fix possible memory leak in mruby-time gemYukihiro "Matz" Matsumoto
2016-04-01fix too much optimization for `||=`Yukihiro "Matz" Matsumoto
2016-03-30fix duplicated eval in op_asgnYukihiro "Matz" Matsumoto
`a` in `a.m += c` or `a[b] += c` should be evaluated only once.
2016-03-30reduce OP_ARRAY in argument splatYukihiro "Matz" Matsumoto
2016-03-30mruby-enum-ext: refine minmaxYukihiro "Matz" Matsumoto
2016-03-24better code generation for `||=`; #3138Yukihiro "Matz" Matsumoto
2016-03-24`||=` with cvars and constants should work with false values; #3138Yukihiro "Matz" Matsumoto
2016-03-23`||=` reference error can happen with constants as well; #3138Yukihiro "Matz" Matsumoto
2016-03-23add #dig testsYukihiro "Matz" Matsumoto
2016-03-23add #dig to Array,Hash and StructYukihiro "Matz" Matsumoto
2016-03-23add safe-navigation (aka lonely) operator `&.`Yukihiro "Matz" Matsumoto
2016-03-22fixed silly class variable/constant confusion; #3138Yukihiro "Matz" Matsumoto
2016-03-21rescue NameError from class variable access like `@@foo ||= 42`; fix #3138Yukihiro "Matz" Matsumoto
2016-03-07fix dump_prefix() with wrong type argument; fix #3128Yukihiro "Matz" Matsumoto
2016-03-06Suppress a warningKouhei Sutou
mrbgems/mruby-eval/src/eval.c: In function ‘create_proc_from_string’: mrbgems/mruby-eval/src/eval.c:152:10: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] file = "(eval)"; ^
2016-02-22too many register push for else-less condtions; fix #3117Yukihiro "Matz" Matsumoto
2016-02-19mruby-struct: copied Struct length is not initialized; fix #3114Yukihiro "Matz" Matsumoto
2016-02-17peephole optimization for LOADNIL before STRCAT; ref #3110Yukihiro "Matz" Matsumoto
2016-02-17push value for NULL AST when value is required; fix #3110Yukihiro "Matz" Matsumoto
2016-02-16syntax error in interpolated symbol; fixed #3108Yukihiro "Matz" Matsumoto
2016-02-15Fix segfault when `eval("__FILE__")` is executedYusuke Endoh
2016-02-12Fix bug in mruby-test gem.Daniel Bovensiepen
In an used build path mruby-test wasn't updating mrbtest.c in the case that the mgem selection was changed. This lead to: - a missing reference in case a GEM was removed - ignoring all new GEMs added to the build configuration This fix keeps track of the active gems and demands a rebuild of mrbtest.c in case that the gem selection changed.
2016-01-31Merge pull request #3093 from retrage/retrage/devYukihiro "Matz" Matsumoto
Add String#rjust to mruby-string-ext
2016-01-31Fix a typoHAYASHI Kentaro
su ported -> supported ^
2016-01-30Add String#rjust test to mruby-string-extAkira Moroo
2016-01-30Add String#rjust to mruby-string-extAkira Moroo
2016-01-21mruby-random: fixed wrong fixnum conversionYukihiro "Matz" Matsumoto
2016-01-14Add tests which passes all zero string to Kernel#IntegerSyohei YOSHIDA
2016-01-08fixed a problem with upvar access from instance_eval; ref #3072Yukihiro "Matz" Matsumoto
2016-01-07mruby-eval: fixed receiver value in eval context; close #3072Yukihiro "Matz" Matsumoto