Chris Seaton
Chris Seaton
I'd like to use SimpleCov to report coverage for a full application. For example ```ruby require 'simplecov' require_relative 'testb' SimpleCov.start foo ``` ```ruby def foo 14 + 2 end ```...
TruffleRuby as at `4054469bbd985db7dc5c86299004ff86a2835baf`. ```ruby require 'delegate' puts RUBY_DESCRIPTION class Underlying def bar 14 end end def foo(o) o.bar end u = Underlying.new loop do o = SimpleDelegator.new(u) foo(o) end...
For example I use this like this ```ruby def foo 14 end before = RubyVM.stat 10.times do foo end after = RubyVM.stat pp after.map { |k, v| [k, v -...
We need AST sharing in Ruby to be able to be able to use advanced warmup and Native Image features. Most of the text below has been written by @eregon....
```ruby puts RUBY_DESCRIPTION p sprintf('%c', 0xf).bytes p sprintf('%c', 0xff).bytes p sprintf('%c', 0xffff).bytes p sprintf('%c', 0xfffffff).bytes ``` ``` ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-darwin20] [15] [195, 191] [239, 191, 191] Traceback...
``` core/string.rb:354:in `encode!': wrong number of arguments (given 3, expected 0) (ArgumentError) from core/string.rb:431:in `encode' from core/array.rb:589:in `join' from core/posix.rb:132:in `attach_function_eagerly' from core/posix.rb:98:in `getpid' ``` Is it possible to turn...
```ruby def foo(a, b) a % b end loop do foo(rand(10), 1 + rand(10)) end ``` ```s ;Comment 95: 12 stack:28|DWORD = MOVE r11|DWORD moveKind: DWORD 0x128a606ff: mov dword ptr...
After #2454, for this test program ```ruby def foo(time) time.strftime('%m') end loop do foo(Time.now) end ``` We get this load and null guard: But that load is from: ```java @CompilationFinal(dimensions...
```ruby puts RUBY_DESCRIPTION class A end module Rf refine(A) do def foo; :rf; end end end class A Activate = Proc.new { using(Rf) } new.foo rescue nil Activate.call p(new.foo) end...