- 18 May, 2019 7 commits
-
-
Yukihiro "Matz" Matsumoto authored
Move `Object#(Rational|Complex)` to `Kernel`
-
Yukihiro "Matz" Matsumoto authored
Move `Numeric#__coerce_step_counter` to `Integral`
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
This method is only used in `Integral#step`
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 17 May, 2019 29 commits
-
-
Yukihiro "Matz" Matsumoto authored
I assume there's no realistic usage of `Rational` with `MRB_WITHOUT_FLOAT`. But just for consistency.
-
Yukihiro "Matz" Matsumoto authored
(Proof of Concept) mruby tuning profiles [ci skip]
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
This reverts commit d5c88683.
-
dearblue authored
Not only mruby, it is one of the difficult things to adjust the performance vs. memory efficiency of the software. If the approximate target device is divided and the adjustment value for it is prepared by default, it is a good indicator to do fine adjustment. This PR divides into four profiles. ***Caution: There is no basis for the definitions in the patch.*** - `MRB_CONSTRAINED_BASELINE_PROFILE` - for microprocessors. Reduce memory consumption. - `MRB_BASELINE_PROFILE` - Default value of mruby. - `MRB_MAIN_PROFILE` - For desktop computers. Assume that a huge amount of RAM, 10 MiB or more, is on board. - `MRB_HIGH_PROFILE` - for servers. Assume that mruby VM has a long life. As you can see the profile name has been ~~stolen~~ imitated from H.264.
-
Yukihiro "Matz" Matsumoto authored
Add/Edit ossfuzz config options
-
Yukihiro "Matz" Matsumoto authored
Move `Integral#(zero|nonzero|positive|negative)?` to `Numeric`
-
Yukihiro "Matz" Matsumoto authored
proto fuzzer: Add source files necessary to compile proto fuzzer
-
Bhargava Shastry authored
-
Yukihiro "Matz" Matsumoto authored
Drop dependency from `mruby-rational` to `mruby-numeric-ext`
-
Yukihiro "Matz" Matsumoto authored
Fix `Numeric#to_r`
-
Bhargava Shastry authored
-
Yukihiro "Matz" Matsumoto authored
Add support for CC="gcc --option ..." again
-
KOBAYASHI Shuji authored
Because these methods work if object is `Comparable`, and `Numeric` is `Comparable`.
-
KOBAYASHI Shuji authored
-
KOBAYASHI Shuji authored
-
Kouhei Sutou authored
If $rake_root_fiber is used, sh runs command in another Fiber. If command is ran in another Fiber, "rescue RuntimEerror" can't rescue exception for system(...) failure. How to reproduce: $ CC="gcc -std=gnu99" ./minirake (in /home/kou/work/ruby/mruby.kou) CC mrbgems/mruby-compiler/core/codegen.c -> build/test/mrbgems/mruby-compiler/core/codegen.o sh: 1: gcc -std=gnu99: not found rake aborted! Command Failed: ["gcc -std=gnu99" -g -std=gnu99 ...]
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
`float op rational` should return `float`, since float is an inexact value.
-
Yukihiro "Matz" Matsumoto authored
* mrb_fixnum_plus() * mrb_fixnum_minus() * mrb_fixnum_mul()
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
This function returns `Fixnum` if the value fits in `mrb_int`, otherwise it returns `Float` value (mruby behavior of handling integers).
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
-
- 16 May, 2019 4 commits
-
-
Yukihiro "Matz" Matsumoto authored
-
Yukihiro "Matz" Matsumoto authored
Fix `Rational#==`
-
KOBAYASHI Shuji authored
-
Yukihiro "Matz" Matsumoto authored
It used heap allocated memory for the parser stack, but there's possibility of parser termination by exceptions. In that case, the parser stack memory is leaked. We were afraid of stack consumption, but parser stack size is only 4KB, so we don't have to worry about it (at least for the parser).
-