General

Profile

sunkai612 (Kai Sun)

  • Login: sunkai612
  • Registered on: 11/06/2016
  • Last sign in: 11/26/2016

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

11/06/2016

04:46 PM Ruby Bug #12905: tailcall_optimization not working as expected under certain condition order
I have also tried below and still get SystemStackError:
~~~ ruby
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}
RubyVM::InstructionSequence.new(<<-EOF).eval
def...
sunkai612 (Kai Sun)
03:58 PM Ruby Bug #12905: tailcall_optimization not working as expected under certain condition order
Shugo Maeda wrote:
> Kai Sun wrote:
> ...
I have tried with eval but seems still getting stack level too deep error.
sunkai612 (Kai Sun)
03:37 PM Ruby Bug #12905 (Closed): tailcall_optimization not working as expected under certain condition order
Below code gets stack too deep error:
~~~ ruby
RubyVM::InstructionSequence.compile_option = {
:tailcall_optimization => true,
:trace_instruction => false
}
def run_forever(current, final)
if current < final
run_fore...
sunkai612 (Kai Sun)

Also available in: Atom