| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2019-09-14 | Add a macro `mrb_frozen_p` that points to `MRB_FROZEN_P`. | Yukihiro "Matz" Matsumoto | |
| 2019-09-14 | Replace `String#byteslice` by custom `IO._bufread`. | Yukihiro "Matz" Matsumoto | |
| `byteslice` creates 2 string objects. `_bufread` creates one, and modifies the original buffer string, that is more efficient. | |||
| 2019-09-14 | Revert "Update `%pure-parser` to `%define api.pure` for newer `bison`; fix ↵ | Yukihiro "Matz" Matsumoto | |
| #4706" The `bison` on MacOS does not support `%define api.pure`. This reverts commit f7c9f1f796d83b9316917681ea068ff648248425. | |||
| 2019-09-14 | Update `%pure-parser` to `%define api.pure` for newer `bison`; fix #4706 | Yukihiro "Matz" Matsumoto | |
| 2019-09-14 | Remove `mrb_funcall` from `<=>` operations. | Yukihiro "Matz" Matsumoto | |
| 2019-09-14 | Replace `loop` method with `while true` loop to gain performance. | Yukihiro "Matz" Matsumoto | |
| 2019-09-13 | Update `assert_take` for zero size take. | Yukihiro "Matz" Matsumoto | |
| 2019-09-13 | Add `Enumerator.produce` from Ruby2.7 | Yukihiro "Matz" Matsumoto | |
| 2019-09-13 | Remove unnecessary files from `mruby-{io,pack,socket}`. | Yukihiro "Matz" Matsumoto | |
| 2019-09-12 | Remove `$/` from mruby implementation. | Yukihiro "Matz" Matsumoto | |
| 1. `$/` and other Perl-ish global variables are not defined in ISO. 2. The current Ruby policy do not encourage those variables. 3. Those variables has global effect and can cause troubles. | |||
| 2019-09-12 | Removed unnecessary files from `mruby-sleep`; #4702 | Yukihiro "Matz" Matsumoto | |
| 2019-09-11 | Remove `Rakefile` from `mruby-sleep` gem; fix #4702 | Yukihiro "Matz" Matsumoto | |
| The `Rakefile` was a leftover from the time it was an independent gem. | |||
| 2019-09-11 | Move tests related to `getbyte`, `setbyte`, byteslice` to core. | Yukihiro "Matz" Matsumoto | |
| 2019-09-11 | Fixed `length` for IO should be in bytes, not in characters; #4696 | Yukihiro "Matz" Matsumoto | |
| E.g. `io.read(5)` should read 5 byte string, not 5 characters. | |||
| 2019-09-11 | Move `String#{getbyte,setbyte,byteslice}` to the core; #4696 | Yukihiro "Matz" Matsumoto | |
| Unlike CRuby, there's no way to process strings byte-wise by core methods because there's no per string encoding in mruby, so that we moved 3 byte-wise operation methods from `mruby-string-ext` gem. | |||
| 2019-09-11 | Drop test dependency from `mruby-string-ext` to `mruby-enumerator` | KOBAYASHI Shuji | |
| 2019-09-09 | change _ variable in mirb to be enable by default | takkaw | |
| 2019-09-09 | add special local variable _ in mirb | takkaw | |
| 2019-09-05 | Fix `Range#max` test (`TypeError` is raised) on 32-bit mode with word boxing | KOBAYASHI Shuji | |
| 2019-09-02 | Merge pull request #4683 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/enumeratorChain-rewind-shouldnt-rewind-elements-arent-iterated `Enumerator::Chain#rewind` shouldn't rewind elements aren't iterated | |||
| 2019-09-02 | `Enumerator::Chain#rewind` shouldn't rewind elements aren't iterated | KOBAYASHI Shuji | |
| ### Example: ```ruby # example.rb e = [1] def e.rewind; p :r end c = e.chain(e) c.each{break c}.rewind ``` #### Before this patch: ```terminal $ bin/mruby example.rb :r :r ``` #### After this patch (same as Ruby): ```terminal $ bin/mruby example.rb :r ``` | |||
| 2019-09-02 | Small refactoring in `fiber.c`. | Yukihiro "Matz" Matsumoto | |
| 2019-09-01 | Merge pull request #4681 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/array-permutation-with-a-negative-argument-should-not-yield `Array#permutation` with a negative argument should not yield | |||
| 2019-09-01 | `Array#permutation` with a negative argument should not yield | KOBAYASHI Shuji | |
| Before this patch: $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> [1] After this patch (same as Ruby): $ bin/mruby -e '[1].permutation(-1){|v| p v}' #=> no output | |||
| 2019-08-31 | Skip `nil?` method call in `if` conditionals. | Yukihiro "Matz" Matsumoto | |
| Compile `if expr.nil?` to use `OP_JMPNIL` instead of calls. | |||
| 2019-08-30 | `Array#(permutation|combination)` without block should return `self` | KOBAYASHI Shuji | |
| 2019-08-27 | Fix build of `mruby-random` on 32-bit mode | KOBAYASHI Shuji | |
| 2019-08-26 | Fix `Array#sample` with `MRB_INT32` | KOBAYASHI Shuji | |
| Array index became potentially negative because `uint32_t` is cast to `mrb_int`. | |||
| 2019-08-26 | Merge pull request #4635 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-wrong-argument-for-fprintf-in-mruby-bin-mrbc Fix wrong argument for `fprintf` in `mruby-bin-mrbc` | |||
| 2019-08-26 | Remove unused `random.h` | KOBAYASHI Shuji | |
| 2019-08-25 | Merge pull request #4667 from ↵ | Yukihiro "Matz" Matsumoto | |
| shuujii/fix-Range-max-test-TypeError-is-raised-on-32-bit-mode Fix `Range#max` test (`TypeError` is raised) on 32-bit mode | |||
| 2019-08-24 | Fix `Range#max` test (`TypeError` is raised) on 32-bit mode | KOBAYASHI Shuji | |
| 2019-08-24 | Create a symbolic link in the temporary directory; fix #4642 | dearblue | |
| Because the linker gives a warning on FreeBSD 12.0. ``` warning: mktemp() possibly used unsafely; consider using mkstemp() ``` | |||
| 2019-08-21 | Merge pull request #4650 from take-cheeze/patch-5 | Yukihiro "Matz" Matsumoto | |
| Remove deprecated iij stuffs | |||
| 2019-08-20 | Remove deprecated iij stuffs | Takeshi Watanabe | |
| 2019-08-20 | Fix link of mruby-io | Takeshi Watanabe | |
| 2019-08-20 | Fixed a bug in the `OP_JMPNOT` optimization (13eaff4); fix #4644 | Yukihiro "Matz" Matsumoto | |
| 2019-08-19 | Merge pull request #4639 from dearblue/suppress-Wstringop-truncation | Yukihiro "Matz" Matsumoto | |
| Suppress warnings for `strncat()` | |||
| 2019-08-19 | Merge pull request #4638 from dearblue/simplify-get-args | Yukihiro "Matz" Matsumoto | |
| Simplify get arguments | |||
| 2019-08-19 | Merge pull request #4642 from dearblue/unique-symlink | Yukihiro "Matz" Matsumoto | |
| Make symbolic link names unique for test | |||
| 2019-08-18 | Make symbolic link names unique for test | dearblue | |
| 2019-08-18 | Suppress warnings for `strncat()` | dearblue | |
| `strncat()` also needs `'\0'`. | |||
| 2019-08-18 | Simplify get arguments | dearblue | |
| - `mrb_str_index_m()` and `mrb_str_rindex()` Make `mrb_get_args()` called only once from called twice. - `mrb_str_byteslice()` Replace `goto` with `if ~ else`. | |||
| 2019-08-18 | Prohibit changes to iseq in principle | dearblue | |
| 2019-08-17 | Fix wrong argument for `fprintf` in `mruby-bin-mrbc` | KOBAYASHI Shuji | |
| 2019-08-17 | Remove unnecessary `OP_JMPNOT` for `unless` statement. | Yukihiro "Matz" Matsumoto | |
| 2019-08-16 | Avoid creating unnecessary empty arrays on splat. | Yukihiro "Matz" Matsumoto | |
| But this changes requires `OP_ARYCAT` and `OP_ARYPUSH` to accept `nil` as their first operand. Alternative VMs (e.g. `mruby/c`) that understand mruby bytecode need to be updated. | |||
| 2019-08-12 | Remove unnecessary prototypes from 'keywords`; fix #4628 | Yukihiro "Matz" Matsumoto | |
| 2019-08-09 | Avoid overflow and underflow in Complex#/ | Ray Chason | |
| 2019-08-08 | Implement Complex#abs in terms of Math.hypot | Ray Chason | |
| Math.hypot avoids premature overflow and underflow | |||
