Permalink
Commits on May 16, 2012
  1. [fix #74] should not define the method into special constant objects …

    …and symbols via instance_{eval, exec}
    Watson1978 committed May 16, 2012
  2. [fix #73] should not remove the method from special constant objects …

    …and symbols via instance_{eval, exec}
    Watson1978 committed May 16, 2012
  3. Revert "does not get the information of included module recursively i…

    …n Module#included_modules"
    
    This reverts commit 677f704.
    
    Sequel gem need this revert (#66)
    Watson1978 committed May 16, 2012
Commits on May 15, 2012
  1. fix an overflow by multiplying

    if multiply Fixnum value between about half of max of long type (32bit), calculated value is broken.
    
    Test Script
    ----
    require 'test/unit/assertions.rb'
    include Test::Unit::Assertions
    
    a = 2147483648
    b = 2147483647
    
    assert_equal(4611686016279904256, a * b)
    assert_equal(-4611686016279904256, (-a) * b)
    assert_equal(-4611686016279904256, a * (-b))
    assert_equal(4611686016279904256, (-a) * (-b))
    Watson1978 committed May 15, 2012
  2. should not raise an exception, so implement vm_fast_mod(). fix #1471

    The modulo between the Fixnum/Float is improved the performance by this patch.
    
    * before
          user     system      total        real
      1.000000   0.000000   1.000000 (  1.000743)
      1.030000   0.000000   1.030000 (  1.030479)
      1.090000   0.000000   1.090000 (  1.097021)
    
    * after
          user     system      total        real
      0.570000   0.000000   0.570000 (  0.577238)
      1.040000   0.000000   1.040000 (  1.031634)
      0.540000   0.000000   0.540000 (  0.539968)
    
    Test Script:
    ----
    require 'benchmark'
    
    Benchmark.bm do |x|
      x.report do
        10_000_000.times do
          42 % 1
        end
      end
    
      x.report do
        10_000_000.times do
          42 % 1.0
        end
      end
    
      x.report do
        10_000_000.times do
          42.0 % 1.0
        end
      end
    end
    Watson1978 committed May 15, 2012
Commits on Apr 24, 2012
  1. Merge pull request #64 from ferrous26/master

    Begin a new era for MacRuby
    ferrous26 committed Apr 24, 2012
Commits on Apr 23, 2012
Commits on Apr 17, 2012
  1. sample-macruby/RoundTransparentWindow: remove InfoPlist.strings from …

    …Project, because it does not exist
    Watson1978 committed Apr 17, 2012
Commits on Apr 14, 2012
  1. Don't JIT rubyc during stdlib compilation

    This cuts about 1/3 of the stdlib time for me.
    ferrous26 committed Apr 14, 2012
Commits on Apr 13, 2012
  1. sample-macruby/MarkdownViewer: Change the Markdown engine to support …

    …the GitHub Flavored Markdown
    Watson1978 committed Apr 13, 2012
Commits on Apr 11, 2012
Commits on Apr 10, 2012
Commits on Apr 9, 2012
Commits on Apr 6, 2012
  1. add an Enumeration process in String#upto

    This commit supports following:
    	"9".upto("11").to_a  # => ["9", "10", "11"]
    Watson1978 committed Apr 6, 2012
  2. trim a colon from method name which is returned by Enumerator#inspector

    before:
    #<Enumerator: "1":upto:("10")>
    
    after:
    #<Enumerator: "1":upto("10")>
    Watson1978 committed Apr 6, 2012
  3. return from first i() if n is equal and less than zero, because rb_it…

    …er_break() does not return like CRuby. fix #1496
    Watson1978 committed Apr 6, 2012
Commits on Apr 5, 2012