General

Profile

jcole1989 (James Coleman)

  • Login: jcole1989
  • Email: jtc331@gmail.com
  • Registered on: 02/28/2013
  • Last sign in: 12/07/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 2 2

Activity

04/15/2016

04:13 PM Ruby Bug #12291: Struct member accessor is not consistent with hash access when keys are repeated
I would expect that foo['a'] and foo.a to return the same value. jcole1989 (James Coleman)
04:12 PM Ruby Bug #12291 (Closed): Struct member accessor is not consistent with hash access when keys are repeated
~~~
irb(main):001:0> foo = Struct.new(:a, :a).new("1", "2")
=> #<struct a="1", a="2">
irb(main):002:0> foo.a
=> "2"
irb(main):003:0> foo['a']
=> "1"
irb(main):004:0> foo.members
=> [:a, :a]
irb(main):005:0> foo.to_h
=> {:a=>"2"...
jcole1989 (James Coleman)

10/03/2013

02:46 AM Ruby Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
With 2.0.0-p247 I get:
11.540000 0.010000 11.550000 ( 11.561841)
So apparently whatever the issue was got fixed either in rvm or in Clang or OSX or in the newer patch level of Ruby.
jcole1989 (James Coleman)

03/02/2013

05:34 AM Ruby Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
I don't have a locale set, so I don't think that that could be the problem.
And even so, how would that affect a tight loop?
jcole1989 (James Coleman)

03/01/2013

01:18 PM Ruby Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
The only difference in my CFLAGS is that mine also has "-fno-common".
However, I ran:
ruby -rbenchmark -ve 'puts Benchmark.measure { 50000000.times { Object.new } }'
and was unable to reproduce. However, I can reproduce every single...
jcole1989 (James Coleman)
03:21 AM Ruby Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
naruse (Yui NARUSE) wrote:
> It is not apple gcc 4.2, which is the one usually used on linux, but llvm-gcc.
> ...
I had "apple-gcc42" installed with brew, but I didn't realize that its executable is suffixed with -4.2. I was able to co...
jcole1989 (James Coleman)

02/28/2013

10:18 PM Ruby Bug #7984: Severe speed issues in 2.0.0 compiled with Clang
I have the latest command line tools and Xcode 4.6 installed. The gcc error is known, see: https://bugs.ruby-lang.org/issues/7956 -- the solution was that rvm switched to Clang as the default CC for now.
But all of that still leaves t...
jcole1989 (James Coleman)
01:22 PM Ruby Bug #7984 (Closed): Severe speed issues in 2.0.0 compiled with Clang
I've been comparing Ruby 2.0.0 with 1.9.3-head, both compiled with the same basic set of CFLAGs with Clang on Mac OS 10.8 (Mountain Lion). A decent sized rails app was showing performance degradations, so I looked into the most basic of ... jcole1989 (James Coleman)

Also available in: Atom